1
0
Fork 0

LSP-specific settings

This commit is contained in:
Jeremy Kaplan 2021-10-28 21:18:15 -07:00
commit 8e135e03ff

View file

@ -343,10 +343,14 @@ local on_attach = function(client, bufno)
vim.api.nvim_command [[autocmd BufWritePre <buffer> lua vim.lsp.buf.formatting_seq_sync()]] vim.api.nvim_command [[autocmd BufWritePre <buffer> lua vim.lsp.buf.formatting_seq_sync()]]
end end
local servers = { 'gopls', 'rust_analyzer' } local servers = {
for _, lsp in ipairs(servers) do gopls = {},
rust_analyzer = {},
}
for lsp, settings in pairs(servers) do
nvim_lsp[lsp].setup { nvim_lsp[lsp].setup {
on_attach = on_attach, on_attach = on_attach,
settings = settings,
} }
end end
LSPCONFIG LSPCONFIG