Open chaozwn opened 1 week ago
This repo does not have any neovim plugin, to achieve this you should config yourself. See how folke did it in lazyvim/lazyvim
repo
This repo does not have any neovim plugin, to achieve this you should config yourself. See how folke did it in
lazyvim/lazyvim
repo
From my point of view, this is the function that volar should support as an lsp. For example, tsserver can automatically modify other references when rename files are given, and volar should also support when modifying vue files.
this is vtsls server_capabilities.workspace.fileOperations.didRename
this is volar server_capabilities.workspace.fileOperations.didRename
This repo does not have any neovim plugin, to achieve this you should config yourself. See how folke did it in
lazyvim/lazyvim
repo I have found the perfect solution to use vtsls to synchronize vue files when renaming.
vtsls = {
on_attach = function(client, _)
client.server_capabilities = utils.extend_tbl(client.server_capabilities, {
workspace = {
didChangeWatchedFiles = { dynamicRegistration = true },
fileOperations = {
didRename = {
filters = {
{
pattern = {
glob = "**/*.{ts,cts,mts,tsx,js,cjs,mjs,jsx,vue}",
},
},
},
},
},
},
})
end
}
This repo does not have any neovim plugin, to achieve this you should config yourself. See how folke did it in
lazyvim/lazyvim
repo
The renaming problem is solved perfectly.
What problem does this feature solve?
Now I can rename files in vscode and reference files in other vue files to synchronize the name change. However, with the same configuration, my neovim did not work at all.
What does the proposed solution look like?
neovim support workspace/DidRename or workspace/WillRename