enabled language servers
This commit is contained in:
parent
a48d5688e1
commit
9f3c7fcc96
12
init.lua
12
init.lua
|
@ -720,7 +720,9 @@ require('mason-lspconfig').setup()
|
|||
local servers = {
|
||||
-- clangd = {},
|
||||
gopls = {},
|
||||
-- pyright = {},
|
||||
terraformls = {},
|
||||
sqlls = {},
|
||||
pyright = {},
|
||||
-- rust_analyzer = {},
|
||||
-- tsserver = {},
|
||||
html = { filetypes = { 'html' } },
|
||||
|
@ -760,6 +762,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