https://github.com/roobert/node-type.nvim
🌐 A Neovim plugin to show the currently selected node type from lsp and treesitter information
https://github.com/roobert/node-type.nvim
Last synced: 2 months ago
JSON representation
🌐 A Neovim plugin to show the currently selected node type from lsp and treesitter information
- Host: GitHub
- URL: https://github.com/roobert/node-type.nvim
- Owner: roobert
- Created: 2023-02-05T17:03:12.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-09T10:09:25.000Z (almost 2 years ago)
- Last Synced: 2025-04-25T01:47:58.498Z (2 months ago)
- Language: Lua
- Homepage:
- Size: 7.81 KB
- Stars: 18
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# :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
``` lua
{
"roobert/node-type.nvim",
config = function()
require("node-type").setup()
end,
}
```### Packer
``` lua
use({
"roobert/node-type.nvim",
config = function()
require("node-type").setup()
end,
})
```## Usage
The default binding is `n`.
As a lualine statusline component:
``` lua
require('lualine').setup {
sections = {
lualine_x = { require("node-type").statusline }
}
}
```Via the API:
``` lua
require("node-type").get()
```