https://github.com/koenverburg/static.nvim
Static info provided by treesitter or lsp
https://github.com/koenverburg/static.nvim
lsp neovim-lsp neovim-plugin treesitter
Last synced: 3 months ago
JSON representation
Static info provided by treesitter or lsp
- Host: GitHub
- URL: https://github.com/koenverburg/static.nvim
- Owner: koenverburg
- Created: 2023-10-11T09:18:06.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-21T12:37:25.000Z (12 months ago)
- Last Synced: 2025-01-06T08:27:37.804Z (9 months ago)
- Topics: lsp, neovim-lsp, neovim-plugin, treesitter
- Language: Lua
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Static.nvim
> This repo holds some functionality that is treesitter or lsp powered
**Dislaimer this is an opinionated plugin**
## Getting started
Clone the project
```bash
git clone https://github.com/koenverburg/static.nvim.git
```Then cd into the directory and launch nvim using the following command
```bash
nvim --cmd "set rtp+=$(pwd)"
```After this you can call the plugin with the following command
This will setup start the following treesitter based actions
- Early exit
- Highlight named imports
- Highlight default exports```lua
require('static').setup()
``````lua
-- Folding using Treesitter
normal("fi", "lua require 'static.treesitter'.fold_imports()")
normal("fr", "lua require('static.treesitter').region()")```