An open API service indexing awesome lists of open source software.

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

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()")

```