neovim/runtime/plugin/nvim.lua

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
375 B
Lua
Raw Normal View History

vim.api.nvim_create_user_command('Inspect', function(cmd)
if cmd.bang then
vim.print(vim.inspect_pos())
else
vim.show_pos()
end
end, { desc = 'Inspect highlights and extmarks at the cursor', bang = true })
vim.api.nvim_create_user_command('InspectTree', function()
vim.treesitter.inspect_tree()
end, { desc = 'Inspect treesitter language tree for buffer' })