This commit is contained in:
Myzel394 2023-10-08 22:07:54 +02:00
commit ad4931c48c

View File

@ -27,7 +27,24 @@ Using [packer](https://github.com/wbthomason/packer.nvim):
use "Myzel394/easytables.nvim" use "Myzel394/easytables.nvim"
``` ```
### Setup ### Tutorial
#### Inserting a new table
Go to the place where you want to insert your table and either call:
* `:EasyTablesCreateNew <width>x<height>` - Creates a new table with `<width>` columns and `<height>` rows
* `:EasyTablesCreateNew <width>` - Creates a square table with the size of `<width>` (eg. `:EasyTablesCreateNew 5` -> Creates a `5x5` table)
* `:EasyTablesCreateNew <width>x` - Creates a table with `<width>` columns and **one** row
* `:EasyTablesCreateNew x<height>` - Creates a table with **one** column and `<height>` rows
#### Editing an existing table
Go to your table (doesn't matter where, can be at a border or inside a cell) and type:
`:EasyTablesImportThisTable`
### Custom Setup
**Make sure to call the `setup` function!** **Make sure to call the `setup` function!**
@ -215,6 +232,10 @@ This is the default configuration:
} }
``` ```
## Limitations
* This plugin currently does not work well with big tables
## This project is stupid, the code is awful, go away ## This project is stupid, the code is awful, go away
I know that the code is probably not the best, it's my first ever written neovim plugin. I know that the code is probably not the best, it's my first ever written neovim plugin.