Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/PaterJason/nvim-treesitter-sexp


https://github.com/PaterJason/nvim-treesitter-sexp

neovim neovim-plugin nvim nvim-treesitter tree-sitter

Last synced: 18 days ago
JSON representation

Awesome Lists containing this project

README

        

# nvim-treesitter-sexp

A plugin for [Neovim](https://github.com/neovim/neovim) for editing code by
manipulating the Treesitter AST. Basically a reimplementation of
[vim-sexp](https://github.com/guns/vim-sexp) using treesitter queries. This is
particularly useful for editing Lisps and manipulating data structures

## Requirements
- Neovim 0.9.1 or later
- [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter) with
the relevant language parsers installed

## Configuration

Calling setup is not required to use nvim-treesitter-sexp, it is only needed
for configuration

Example with default config values:

```lua
require("treesitter-sexp").setup {
-- Enable/disable
enabled = true,
-- Move cursor when applying commands
set_cursor = true,
-- Set to false to disable all keymaps
keymaps = {
-- Set to false to disable keymap type
commands = {
-- Set to false to disable individual keymaps
swap_prev_elem = "