mirror of
https://github.com/sadan4/nvim.git
synced 2025-01-18 11:13:30 -05:00
add vimls
This commit is contained in:
parent
85a053cb92
commit
5c5e7ede8e
1 changed files with 24 additions and 0 deletions
|
@ -20,6 +20,30 @@ local root_file = {
|
||||||
"eslint.config.mts",
|
"eslint.config.mts",
|
||||||
"eslint.config.cts",
|
"eslint.config.cts",
|
||||||
}
|
}
|
||||||
|
require("lspconfig").vimls.setup({
|
||||||
|
cmd = { "vim-language-server", "--stdio" },
|
||||||
|
filetypes = { "vim" },
|
||||||
|
init_options = {
|
||||||
|
diagnostic = {
|
||||||
|
enable = true,
|
||||||
|
},
|
||||||
|
indexes = {
|
||||||
|
count = 3,
|
||||||
|
gap = 100,
|
||||||
|
projectRootPatterns = { "runtime", "nvim", ".git", "autoload", "plugin" },
|
||||||
|
runtimepath = true,
|
||||||
|
},
|
||||||
|
isNeovim = true,
|
||||||
|
iskeyword = "@,48-57,_,192-255,-#",
|
||||||
|
runtimepath = "",
|
||||||
|
suggest = {
|
||||||
|
fromRuntimepath = true,
|
||||||
|
fromVimruntime = true,
|
||||||
|
},
|
||||||
|
vimruntime = "",
|
||||||
|
},
|
||||||
|
single_file_support = true,
|
||||||
|
})
|
||||||
require("lspconfig").rust_analyzer.setup({
|
require("lspconfig").rust_analyzer.setup({
|
||||||
settings = {
|
settings = {
|
||||||
["rust-analyzer"] = {
|
["rust-analyzer"] = {
|
||||||
|
|
Loading…
Reference in a new issue