dotfiles/.config/nvim/lua/after/lsp/svelte.lua
2025-10-25 21:53:20 +02:00

11 lines
304 B
Lua

return {
on_attach = function(client)
vim.api.nvim_create_autocmd('BufWritePost', {
pattern = { '*.js', '*.ts' },
callback = function(ctx)
-- Here use ctx.match instead of ctx.file
client.notify('$/onDidChangeTsOrJsFile', { uri = ctx.match })
end,
})
end,
}