enabled language servers
This commit is contained in:
parent
c5f34d0b62
commit
390e75fc7b
12
init.lua
12
init.lua
|
@ -639,7 +639,9 @@ require('mason-lspconfig').setup()
|
|||
local servers = {
|
||||
-- clangd = {},
|
||||
gopls = {},
|
||||
-- pyright = {},
|
||||
terraformls = {},
|
||||
sqlls = {},
|
||||
pyright = {},
|
||||
-- rust_analyzer = {},
|
||||
-- tsserver = {},
|
||||
html = { filetypes = { 'html' } },
|
||||
|
@ -679,6 +681,14 @@ mason_lspconfig.setup_handlers {
|
|||
end,
|
||||
}
|
||||
|
||||
-- format on save (terraform)
|
||||
vim.api.nvim_create_autocmd({ "BufWritePre" }, {
|
||||
pattern = { "*.tf", "*.tfvars" },
|
||||
callback = function()
|
||||
vim.lsp.buf.format()
|
||||
end
|
||||
})
|
||||
|
||||
-- [[ Configure nvim-cmp ]]
|
||||
-- See `:help cmp`
|
||||
local cmp = require 'cmp'
|
||||
|
|
Loading…
Reference in New Issue