From 82e986a45e583ba7ece35ecec9b2c47a9c9e8d6e Mon Sep 17 00:00:00 2001 From: Nulo Date: Thu, 18 Nov 2021 13:56:45 -0300 Subject: [PATCH] nvim: Svelte --- .config/nvim/init.vim | 2 +- .config/nvim/pack/plugins/start/vim-svelte | 1 + .gitmodules | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) create mode 160000 .config/nvim/pack/plugins/start/vim-svelte diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 52bb08b..4a3bed9 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -44,7 +44,7 @@ local on_attach = function(client, bufnr) buf_set_keymap('n', 'q', 'lua vim.lsp.diagnostic.set_loclist()', opts) end -local servers = { 'zls', 'gopls', 'tsserver' } +local servers = { 'zls', 'gopls', 'tsserver', 'svelte' } for _, lsp in ipairs(servers) do nvim_lsp[lsp].setup { on_attach = on_attach, diff --git a/.config/nvim/pack/plugins/start/vim-svelte b/.config/nvim/pack/plugins/start/vim-svelte new file mode 160000 index 0000000..5f88e5a --- /dev/null +++ b/.config/nvim/pack/plugins/start/vim-svelte @@ -0,0 +1 @@ +Subproject commit 5f88e5a0fe7dcece0008dae3453edbd99153a042 diff --git a/.gitmodules b/.gitmodules index 68c30af..b1685d8 100644 --- a/.gitmodules +++ b/.gitmodules @@ -25,3 +25,6 @@ [submodule ".config/nvim/pack/plugins/start/formatter.nvim"] path = .config/nvim/pack/plugins/start/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