summaryrefslogtreecommitdiff
path: root/nvim/lsp/vimls.lua
diff options
context:
space:
mode:
authoranand <anand.panchdhari@gmail.com>2025-12-17 15:57:55 +0530
committeranand <anand.panchdhari@gmail.com>2025-12-17 15:57:55 +0530
commitb7ef29a8886a57aadb787807a7c6cf74c1f0ed3a (patch)
tree366a68240fbc9da6b1d567bd6c46d1350ad814de /nvim/lsp/vimls.lua
Nixos
Diffstat (limited to 'nvim/lsp/vimls.lua')
-rwxr-xr-xnvim/lsp/vimls.lua27
1 files changed, 27 insertions, 0 deletions
diff --git a/nvim/lsp/vimls.lua b/nvim/lsp/vimls.lua
new file mode 100755
index 0000000..32cf93f
--- /dev/null
+++ b/nvim/lsp/vimls.lua
@@ -0,0 +1,27 @@
+---@brief
+---
+--- https://github.com/iamcco/vim-language-server
+---
+--- You can install vim-language-server via npm:
+--- ```sh
+--- npm install -g vim-language-server
+--- ```
+return {
+ cmd = { 'vim-language-server', '--stdio' },
+ filetypes = { 'vim' },
+ root_markers = { '.git' },
+ init_options = {
+ isNeovim = true,
+ iskeyword = '@,48-57,_,192-255,-#',
+ vimruntime = '',
+ runtimepath = '',
+ diagnostic = { enable = true },
+ indexes = {
+ runtimepath = true,
+ gap = 100,
+ count = 3,
+ projectRootPatterns = { 'runtime', 'nvim', '.git', 'autoload', 'plugin' },
+ },
+ suggest = { fromVimruntime = true, fromRuntimepath = true },
+ },
+}