mirror of
https://github.com/neovim/neovim.git
synced 2026-01-03 18:06:29 +10:00
refactor(treesitter): rename "preview" => "edit" #25161
"Edit" more closely describes the generic application than "Preview", though the buffer contents don't (yet) map to an actual file on disk. https://github.com/neovim/neovim/pull/24703#discussion_r1321719133
This commit is contained in:
committed by
GitHub
parent
2d9e7a33f4
commit
28233bcb49
@@ -19,6 +19,6 @@ vim.api.nvim_create_user_command('InspectTree', function(cmd)
|
||||
end
|
||||
end, { desc = 'Inspect treesitter language tree for buffer', count = true })
|
||||
|
||||
vim.api.nvim_create_user_command('PreviewQuery', function()
|
||||
vim.treesitter.preview_query()
|
||||
end, { desc = 'Preview treesitter query' })
|
||||
vim.api.nvim_create_user_command('EditQuery', function()
|
||||
vim.treesitter.query.edit()
|
||||
end, { desc = 'Edit treesitter query' })
|
||||
|
||||
Reference in New Issue
Block a user