11 lines
304 B
Lua
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,
|
|
}
|