aboutsummaryrefslogtreecommitdiffstats
path: root/lsp/svelte.lua
diff options
context:
space:
mode:
authorIgor Lacerda <igorlfs@ufmg.br>2025-07-19 14:42:35 -0300
committerGitHub <noreply@github.com>2025-07-19 10:42:35 -0700
commitf47cd681d7cb6048876a2e908b6d8ba1e530d152 (patch)
tree6dcac2998d6b3de7efef54c5f097b648f120a4b5 /lsp/svelte.lua
parentdocs: how to create a config (diff)
downloadnvim-lspconfig-f47cd681d7cb6048876a2e908b6d8ba1e530d152.tar
nvim-lspconfig-f47cd681d7cb6048876a2e908b6d8ba1e530d152.tar.gz
nvim-lspconfig-f47cd681d7cb6048876a2e908b6d8ba1e530d152.tar.bz2
nvim-lspconfig-f47cd681d7cb6048876a2e908b6d8ba1e530d152.tar.lz
nvim-lspconfig-f47cd681d7cb6048876a2e908b6d8ba1e530d152.tar.xz
nvim-lspconfig-f47cd681d7cb6048876a2e908b6d8ba1e530d152.tar.zst
nvim-lspconfig-f47cd681d7cb6048876a2e908b6d8ba1e530d152.zip
fix(svelte): use augroup to avoid creating multiple autocmds #3964
Diffstat (limited to 'lsp/svelte.lua')
-rw-r--r--lsp/svelte.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lsp/svelte.lua b/lsp/svelte.lua
index 7b7b6e35..f18baf1d 100644
--- a/lsp/svelte.lua
+++ b/lsp/svelte.lua
@@ -25,7 +25,7 @@ return {
-- See https://github.com/sveltejs/language-tools/issues/2008
vim.api.nvim_create_autocmd('BufWritePost', {
pattern = { '*.js', '*.ts' },
- buffer = bufnr,
+ group = vim.api.nvim_create_augroup('svelte_js_ts_file_watch', {}),
callback = function(ctx)
-- internal API to sync changes that have not yet been saved to the file system
client:notify('$/onDidChangeTsOrJsFile', { uri = ctx.match })