Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/SCJangra/table-nvim
https://github.com/SCJangra/table-nvim
Last synced: 12 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/SCJangra/table-nvim
- Owner: SCJangra
- License: mit
- Created: 2024-06-29T16:24:00.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-09-09T19:56:10.000Z (4 months ago)
- Last Synced: 2024-09-10T00:27:38.785Z (4 months ago)
- Language: Lua
- Size: 60.5 KB
- Stars: 8
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-neovim - SCJangra/table-nvim - A markdown table editor that formats the table as you type. (Programming Languages Support / Markdown and LaTeX)
- trackawesomelist - SCJangra/table-nvim (⭐5) - A markdown table editor that formats the table as you type. (Recently Updated / [Sep 02, 2024](/content/2024/09/02/README.md))
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.
}
}
```