Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/SCJangra/table-nvim


https://github.com/SCJangra/table-nvim

Last synced: 12 days ago
JSON representation

Awesome Lists containing this project

README

        

# A markdown table editor
A simple (for now?) markdown table editor that formats the table as you type.

# Demo
https://github.com/user-attachments/assets/b026dc0b-4f10-48cc-81cb-3edf0f3e7772

# Dependencies
- [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter)
- that's it!

# Install

Using [lazy.nvim](https://github.com/folke/lazy.nvim)
```lua
{
'SCJangra/table-nvim',
ft = 'markdown',
opts = {},
}
```

# Default config
```lua
{
padd_column_separators = true, -- Insert a space around column separators.
mappings = { -- next and prev work in Normal and Insert mode. All other mappings work in Normal mode.
next = '', -- Go to next cell.
prev = '', -- Go to previous cell.
insert_row_up = '', -- Insert a row above the current row.
insert_row_down = '', -- Insert a row below the current row.
move_row_up = '', -- Move the current row up.
move_row_down = '', -- Move the current row down.
insert_column_left = '', -- Insert a column to the left of current column.
insert_column_right = '', -- Insert a column to the right of current column.
move_column_left = '', -- Move the current column to the left.
move_column_right = '', -- Move the current column to the right.
insert_table = '', -- Insert a new table.
insert_table_alt = '', -- Insert a new table that is not surrounded by pipes.
delete_column = '', -- Delete the column under cursor.
}
}
```