Awesome
:globe_with_meridians: node-type.nvim
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
Installation
Lazy
{
"roobert/node-type.nvim",
config = function()
require("node-type").setup()
end,
}
Packer
use({
"roobert/node-type.nvim",
config = function()
require("node-type").setup()
end,
})
Usage
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()