Files
neovim/runtime/plugin/nvim.lua
2023-03-02 18:03:11 +01:00

12 lines
382 B
Lua

vim.api.nvim_create_user_command('Inspect', function(cmd)
if cmd.bang then
vim.pretty_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' })