This repo holds some functionality that is treesitter or lsp powered
Dislaimer this is an opinionated plugin
Clone the project
git clone https://github.com/koenverburg/static.nvim.gitThen cd into the directory and launch nvim using the following command
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
require('static').setup()-- Folding using Treesitter
normal("<leader>fi", "<cmd>lua require 'static.treesitter'.fold_imports()<cr>")
normal("<leader>fr", "<cmd>lua require('static.treesitter').region()<cr>")