added 4 new language servers
This commit is contained in:
parent
d6dbae2c02
commit
6b7f8c264f
5 changed files with 30 additions and 0 deletions
|
@ -18,3 +18,7 @@ lspconfig.util.default_config = vim.tbl_extend("force", lspconfig.util.default_c
|
||||||
require("user.lsp.settings.sumneko_lua")
|
require("user.lsp.settings.sumneko_lua")
|
||||||
require("user.lsp.settings.jsonls")
|
require("user.lsp.settings.jsonls")
|
||||||
require("user.lsp.settings.tsserver")
|
require("user.lsp.settings.tsserver")
|
||||||
|
require("user.lsp.settings.yamlls")
|
||||||
|
require("user.lsp.settings.volar")
|
||||||
|
require("user.lsp.settings.dockerls")
|
||||||
|
require("user.lsp.settings.rnix")
|
||||||
|
|
6
lua/user/lsp/settings/dockerls.lua
Normal file
6
lua/user/lsp/settings/dockerls.lua
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
local status_ok, lspconfig = pcall(require, "lspconfig")
|
||||||
|
if not status_ok then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
lspconfig.dockerls.setup({})
|
6
lua/user/lsp/settings/rnix.lua
Normal file
6
lua/user/lsp/settings/rnix.lua
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
local status_ok, lspconfig = pcall(require, "lspconfig")
|
||||||
|
if not status_ok then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
lspconfig.rnix.setup({})
|
8
lua/user/lsp/settings/volar.lua
Normal file
8
lua/user/lsp/settings/volar.lua
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
local status_ok, lspconfig = pcall(require, "lspconfig")
|
||||||
|
if not status_ok then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
lspconfig.volar.setup({
|
||||||
|
filetypes = { "typescript", "javascript", "javascriptreact", "typescriptreact", "vue", "json" },
|
||||||
|
})
|
6
lua/user/lsp/settings/yamlls.lua
Normal file
6
lua/user/lsp/settings/yamlls.lua
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
local status_ok, lspconfig = pcall(require, "lspconfig")
|
||||||
|
if not status_ok then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
lspconfig.yamlls.setup({})
|
Reference in a new issue