A Neovim plugin to show the currently selected node type from lsp and treesitter information.
The demo shows this plugin being used in several ways:
- Using the lualine statusline integration to show the node-type info in the statusline
- Via a key-binding
- Via a call to the plugin api
{
"roobert/node-type.nvim",
config = function()
require("node-type").setup()
end,
}
use({
"roobert/node-type.nvim",
config = function()
require("node-type").setup()
end,
})
The default binding is <leader>n
.
As a lualine statusline component:
require('lualine').setup {
sections = {
lualine_x = { require("node-type").statusline }
}
}
Via the API:
require("node-type").get()