init.vim: tsserver

This commit is contained in:
Cat /dev/Nulo 2021-11-17 12:13:07 -03:00
parent 2642c9dc40
commit 74c1739c23

View file

@ -61,7 +61,7 @@ local on_attach = function(client, bufnr)
buf_set_keymap('n', '<space>q', '<cmd>lua vim.lsp.diagnostic.set_loclist()<CR>', opts) buf_set_keymap('n', '<space>q', '<cmd>lua vim.lsp.diagnostic.set_loclist()<CR>', opts)
end end
local servers = { 'zls', 'gopls' } local servers = { 'zls', 'gopls', 'tsserver' }
for _, lsp in ipairs(servers) do for _, lsp in ipairs(servers) do
nvim_lsp[lsp].setup { nvim_lsp[lsp].setup {
on_attach = on_attach, on_attach = on_attach,