updated config

This commit is contained in:
MasterGordon 2023-08-03 01:18:21 +02:00
parent e10c17f2d4
commit 5e6c7840fc
7 changed files with 139 additions and 21 deletions

View File

@ -77,7 +77,8 @@ return require("packer").startup(
"onsails/lspkind-nvim", "onsails/lspkind-nvim",
"ray-x/lsp_signature.nvim", "ray-x/lsp_signature.nvim",
"jose-elias-alvarez/typescript.nvim", "jose-elias-alvarez/typescript.nvim",
"hood/popui.nvim" "hood/popui.nvim",
"OmniSharp/omnisharp-vim"
} }
} }
use { use {
@ -116,6 +117,7 @@ return require("packer").startup(
end end
} }
use "editorconfig/editorconfig-vim" use "editorconfig/editorconfig-vim"
use {"L3MON4D3/LuaSnip"}
use { use {
"hrsh7th/nvim-cmp", "hrsh7th/nvim-cmp",
config = function() config = function()
@ -166,7 +168,8 @@ return require("packer").startup(
end, end,
requires = { requires = {
"kyazdani42/nvim-web-devicons", "kyazdani42/nvim-web-devicons",
"nvim-treesitter/nvim-treesitter" "nvim-treesitter/nvim-treesitter",
"j-hui/fidget.nvim"
}, },
after = { after = {
"monokai.nvim", "monokai.nvim",

View File

@ -64,6 +64,11 @@ options = {
ghost_text = true, ghost_text = true,
native_menu = false native_menu = false
}, },
snippet = {
expand = function(args)
require "luasnip".lsp_expand(args.body)
end
},
formatting = { formatting = {
kind_icons = cmp_kinds, kind_icons = cmp_kinds,
source_names = { source_names = {

View File

@ -12,6 +12,7 @@ require("formatter").setup(
filetype = { filetype = {
typescriptreact = {prettierd}, typescriptreact = {prettierd},
json = {prettierd}, json = {prettierd},
jsonc = {prettierd},
css = {prettierd}, css = {prettierd},
scss = {prettierd}, scss = {prettierd},
markdown = {prettierd}, markdown = {prettierd},
@ -72,7 +73,7 @@ vim.api.nvim_exec(
[[ [[
augroup FormatAutogroup augroup FormatAutogroup
autocmd! autocmd!
autocmd BufWritePost *.h,*.cpp,*.rs,*.lua,*.tsx,*.ts,*.js,*.jsx,*.json FormatWrite autocmd BufWritePost *.h,*.cpp,*.rs,*.lua,*.tsx,*.ts,*.js,*.jsx,*.json,*.jsonc FormatWrite
augroup END augroup END
]], ]],
true true

View File

@ -278,6 +278,19 @@ local WorkDir = {
hl = {fg = colors.blue, bold = true, bg = colors.bg} hl = {fg = colors.blue, bold = true, bg = colors.bg}
} }
require("fidget").setup(
{
window = {
blend = 0
},
sources = {
["null-ls"] = {
ignore = true
}
}
}
)
local TerminalName = { local TerminalName = {
-- we could add a condition to check that buftype == 'terminal' -- we could add a condition to check that buftype == 'terminal'
-- or we could do that later (see #conditional-statuslines below) -- or we could do that later (see #conditional-statuslines below)

View File

@ -167,7 +167,83 @@ nvim_lsp.omnisharp.setup {
enable_editorconfig_support = true, enable_editorconfig_support = true,
enable_roslyn_analyzers = true, enable_roslyn_analyzers = true,
enable_import_completion = true, enable_import_completion = true,
on_attach = on_attach, on_attach = function(client, bufnr)
client.server_capabilities.semanticTokensProvider = {
full = vim.empty_dict(),
legend = {
tokenModifiers = {"static_symbol"},
tokenTypes = {
"comment",
"excluded_code",
"identifier",
"keyword",
"keyword_control",
"number",
"operator",
"operator_overloaded",
"preprocessor_keyword",
"string",
"whitespace",
"text",
"static_symbol",
"preprocessor_text",
"punctuation",
"string_verbatim",
"string_escape_character",
"class_name",
"delegate_name",
"enum_name",
"interface_name",
"module_name",
"struct_name",
"type_parameter_name",
"field_name",
"enum_member_name",
"constant_name",
"local_name",
"parameter_name",
"method_name",
"extension_method_name",
"property_name",
"event_name",
"namespace_name",
"label_name",
"xml_doc_comment_attribute_name",
"xml_doc_comment_attribute_quotes",
"xml_doc_comment_attribute_value",
"xml_doc_comment_cdata_section",
"xml_doc_comment_comment",
"xml_doc_comment_delimiter",
"xml_doc_comment_entity_reference",
"xml_doc_comment_name",
"xml_doc_comment_processing_instruction",
"xml_doc_comment_text",
"xml_literal_attribute_name",
"xml_literal_attribute_quotes",
"xml_literal_attribute_value",
"xml_literal_cdata_section",
"xml_literal_comment",
"xml_literal_delimiter",
"xml_literal_embedded_expression",
"xml_literal_entity_reference",
"xml_literal_name",
"xml_literal_processing_instruction",
"xml_literal_text",
"regex_comment",
"regex_character_class",
"regex_anchor",
"regex_quantifier",
"regex_grouping",
"regex_alternation",
"regex_text",
"regex_self_escaped_character",
"regex_other_escape"
}
},
range = true
}
on_attach(client, bufnr)
end,
flags = { flags = {
debounce_text_changes = 150 debounce_text_changes = 150
}, },

View File

@ -1,5 +1,6 @@
vim.cmd([[ let g:neo_tree_remove_legacy_commands = 1 ]]) vim.cmd([[ let g:neo_tree_remove_legacy_commands = 1 ]])
vim.api.nvim_set_keymap("", "<TAB>", ":Neotree reveal<CR>", {silent = true}) vim.api.nvim_set_keymap("", "<TAB>", ":Neotree reveal<CR>", {silent = true})
-- require "window-picker".setup()
require "window-picker".setup( require "window-picker".setup(
{ {
autoselect_one = true, autoselect_one = true,
@ -14,7 +15,25 @@ require "window-picker".setup(
} }
}, },
selection_chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ", selection_chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ",
other_win_hl_color = "#519aba" highlights = {
statusline = {
focused = {
bg = "#519aba"
},
unfocused = {
bg = "#519aba"
}
},
winbar = {
focused = {
bg = "#519aba"
},
unfocused = {
bg = "#519aba"
}
}
}
-- other_win_hl_color = "#519aba"
} }
) )
@ -153,7 +172,7 @@ require("neo-tree").setup(
["m"] = { ["m"] = {
"move", "move",
config = { config = {
show_path = "absoulte" show_path = "absolute"
} }
}, },
["q"] = "close_window", ["q"] = "close_window",

View File

@ -1,19 +1,20 @@
[ -e ~/.local/share/nvim/site/pack/packer/start/packer.nvim ] || git clone https://github.com/wbthomason/packer.nvim ~/.local/share/nvim/site/pack/packer/start/packer.nvim [ -e ~/.local/share/nvim/site/pack/packer/start/packer.nvim ] || git clone https://github.com/wbthomason/packer.nvim ~/.local/share/nvim/site/pack/packer/start/packer.nvim
npm i -g @fsouza/prettierd \ npm i -g @fsouza/prettierd@latest \
diagnostic-languageserver \ diagnostic-languageserver@latest \
eslint_d \ eslint_d@latest \
lua-fmt \ lua-fmt@latest \
typescript-language-server \ typescript-language-server@latest \
typescript \ typescript@latest \
vim-language-server \ vim-language-server@latest \
vscode-css-languageserver-bin \ vscode-css-languageserver-bin@latest \
vscode-html-languageserver-bin \ vscode-html-languageserver-bin@latest \
vscode-json-languageserver \ vscode-json-languageserver@latest \
vscode-langservers-extracted \ vscode-langservers-extracted@latest \
bash-language-server \ bash-language-server@latest \
@prisma/language-server \ @prisma/language-server@latest \
cspell \ cspell@latest \
@cspell/dict-de-de @cspell/dict-de-de@latest \
tsx@latest
cspell link add @cspell/dict-de-de cspell link add @cspell/dict-de-de
dotnet tool install --global csharp-ls dotnet tool install --global csharp-ls