add vimls

This commit is contained in:
sadan 2024-12-06 11:48:06 -05:00
parent 85a053cb92
commit 5c5e7ede8e
No known key found for this signature in database

View file

@ -20,6 +20,30 @@ local root_file = {
"eslint.config.mts",
"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({
settings = {
["rust-analyzer"] = {