aboutsummaryrefslogtreecommitdiffstats
path: root/lsp/vimls.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lsp/vimls.lua')
-rw-r--r--lsp/vimls.lua27
1 files changed, 27 insertions, 0 deletions
diff --git a/lsp/vimls.lua b/lsp/vimls.lua
new file mode 100644
index 00000000..51f0c6f5
--- /dev/null
+++ b/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 },
+ },
+}