nvim: Svelte

This commit is contained in:
Cat /dev/Nulo 2021-11-18 13:56:45 -03:00
parent 6ae0878d41
commit 82e986a45e
3 changed files with 5 additions and 1 deletions

View file

@ -44,7 +44,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', 'tsserver' } local servers = { 'zls', 'gopls', 'tsserver', 'svelte' }
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,

@ -0,0 +1 @@
Subproject commit 5f88e5a0fe7dcece0008dae3453edbd99153a042

3
.gitmodules vendored
View file

@ -25,3 +25,6 @@
[submodule ".config/nvim/pack/plugins/start/formatter.nvim"] [submodule ".config/nvim/pack/plugins/start/formatter.nvim"]
path = .config/nvim/pack/plugins/start/formatter.nvim path = .config/nvim/pack/plugins/start/formatter.nvim
url = https://github.com/mhartington/formatter.nvim url = https://github.com/mhartington/formatter.nvim
[submodule ".config/nvim/pack/plugins/start/vim-svelte"]
path = .config/nvim/pack/plugins/start/vim-svelte
url = https://github.com/evanleck/vim-svelte