diff options
author | rebuilt <[email protected]> | 2021-04-27 07:00:21 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2021-04-27 01:00:21 -0400 |
commit | f4f7a96496076e50bc462ffc356c1ec855e61d24 (patch) | |
tree | 3bbdf91e3e7e1dc37a2add1e7f1d76a64ea0c437 | |
parent | 1eb8339a477f194813729c3711a11cd5e23cfccd (diff) |
adds vue language server support (#303)
-rw-r--r-- | init.lua | 2 | ||||
-rw-r--r-- | lua/lsp/efm-general-ls.lua | 2 | ||||
-rw-r--r-- | lua/lsp/vue-ls.lua | 5 |
3 files changed, 7 insertions, 2 deletions
@@ -48,4 +48,4 @@ require('lsp.svelte-ls') require('lsp.tailwindcss-ls') require('lsp.ruby-ls') require('lsp.kotlin-ls') - +require('lsp.lua-ls') diff --git a/lua/lsp/efm-general-ls.lua b/lua/lsp/efm-general-ls.lua index 16f30375..9488afec 100644 --- a/lua/lsp/efm-general-ls.lua +++ b/lua/lsp/efm-general-ls.lua @@ -92,7 +92,7 @@ require"lspconfig".efm.setup { -- init_options = {initializationOptions}, cmd = {DATA_PATH .. "/lspinstall/efm/efm-langserver"}, init_options = {documentFormatting = true, codeAction = false}, - filetypes = {"lua", "python", "javascriptreact", "javascript", "sh", "html", "css", "json", "yaml", "markdown"}, + filetypes = {"lua", "python", "javascriptreact", "javascript", "sh", "html", "css", "json", "yaml", "markdown", "vue"}, settings = { rootMarkers = {".git/"}, languages = { diff --git a/lua/lsp/vue-ls.lua b/lua/lsp/vue-ls.lua new file mode 100644 index 00000000..0f258880 --- /dev/null +++ b/lua/lsp/vue-ls.lua @@ -0,0 +1,5 @@ + +local lsp = require'lspconfig' +lsp.vuels.setup{ +root_dir = lsp.util.root_pattern(".git",".") +} |