Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/PaterJason/nvim-treesitter-sexp
- Owner: PaterJason
- License: mit
- Created: 2023-04-19T16:55:42.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-06-07T10:00:05.000Z (5 months ago)
- Last Synced: 2024-07-30T20:56:08.897Z (3 months ago)
- Topics: neovim, neovim-plugin, nvim, nvim-treesitter, tree-sitter
- Language: Lua
- Homepage:
- Size: 68.4 KB
- Stars: 21
- Watchers: 3
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 configurationExample 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 = "