dotfiles/nvim/lua/lsp_config.lua

36 lines
737 B
Lua
Raw Normal View History

2022-05-24 08:56:38 +02:00
local capabilites = require('cmp_nvim_lsp').update_capabilities(vim.lsp.protocol.make_client_capabilities())
2022-08-23 16:02:27 +02:00
2022-05-24 08:56:38 +02:00
require'lspconfig'.tsserver.setup{
capabilites = capabilites
}
2022-08-23 16:02:27 +02:00
require'lspconfig'.jsonls.setup{
capabilites = capabilites
}
2022-05-24 08:56:38 +02:00
require'lspconfig'.dockerls.setup{
capabilites = capabilites
}
require'lspconfig'.eslint.setup{
2022-08-23 16:02:27 +02:00
capabilites = capabilites,
settings= {
run = "onSave"
}
2022-05-24 08:56:38 +02:00
}
require'lspconfig'.gdscript.setup{
capabilites = capabilites
}
require'lspconfig'.gopls.setup{
capabilites = capabilites
}
require'lspconfig'.rust_analyzer.setup{
capabilites = capabilites
}
2022-06-28 12:12:47 +02:00
require'lspconfig'.cssls.setup{
capabilites = capabilites
}
require'lspconfig'.bashls.setup{
capabilites = capabilites
}
2022-05-24 08:56:38 +02:00
require'fzf_lsp'.setup()