Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 3 days 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 (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-09T10:09:25.000Z (about 1 year ago)
- Last Synced: 2024-08-02T13:32:43.474Z (3 months ago)
- Language: Lua
- Homepage:
- Size: 7.81 KB
- Stars: 20
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# :globe_with_meridians: node-type.nvim
![node-type screenshot](https://user-images.githubusercontent.com/226654/216843214-50cace9a-a6dc-4654-aa36-bffc4aba1856.gif)
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()
```