Updating neovim config
This commit is contained in:
parent
1e649ca3ca
commit
36bf8e01c5
3 changed files with 202 additions and 188 deletions
12
nvim/nvim.symlink/UltiSnips/typescript.snippets
Normal file
12
nvim/nvim.symlink/UltiSnips/typescript.snippets
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
snippet mochatest
|
||||||
|
import 'mocha';
|
||||||
|
import { expect } from 'chai';
|
||||||
|
|
||||||
|
import $1 from '$2';
|
||||||
|
|
||||||
|
describe('$3', () => {
|
||||||
|
it('should $4', () => {
|
||||||
|
$0
|
||||||
|
});
|
||||||
|
});
|
||||||
|
endsnippet
|
2
nvim/nvim.symlink/coc-settings.json
Normal file
2
nvim/nvim.symlink/coc-settings.json
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
{
|
||||||
|
}
|
|
@ -1,98 +1,63 @@
|
||||||
" Basic editing config
|
" Let's get the plugins out of the way first, shall we?
|
||||||
|
|
||||||
" colorscheme maxbucknell
|
|
||||||
set termguicolors
|
|
||||||
set updatetime=100
|
|
||||||
|
|
||||||
call plug#begin()
|
call plug#begin()
|
||||||
|
" Pane Navigation (Tmux integration)
|
||||||
|
" Colours
|
||||||
|
Plug 'morhetz/gruvbox'
|
||||||
|
|
||||||
" Pane Navigation (Tmux integration)
|
" Fuzzy finding
|
||||||
Plug 'christoomey/vim-tmux-navigator'
|
Plug '/usr/local/opt/fzf'
|
||||||
|
Plug 'junegunn/fzf.vim'
|
||||||
|
|
||||||
" Colours
|
" Completion
|
||||||
Plug 'morhetz/gruvbox'
|
Plug 'neoclide/coc.nvim', {'do': { -> coc#util#install()}}
|
||||||
|
|
||||||
" Fuzzy finding
|
" Snippets
|
||||||
Plug '/usr/local/opt/fzf'
|
Plug 'SirVer/ultisnips'
|
||||||
|
Plug 'honza/vim-snippets'
|
||||||
|
|
||||||
" Snippets
|
" Surround
|
||||||
Plug 'SirVer/ultisnips'
|
Plug 'tpope/vim-surround'
|
||||||
Plug 'honza/vim-snippets'
|
|
||||||
|
|
||||||
" Git integration
|
" Git integration
|
||||||
Plug 'tpope/vim-fugitive'
|
Plug 'tpope/vim-fugitive'
|
||||||
Plug 'airblade/vim-gitgutter'
|
Plug 'airblade/vim-gitgutter'
|
||||||
|
|
||||||
" Linting
|
" Comments
|
||||||
Plug 'neomake/neomake'
|
Plug 'tpope/vim-commentary'
|
||||||
Plug 'w0rp/ale'
|
|
||||||
|
|
||||||
" Comments
|
" Statusline
|
||||||
Plug 'tpope/vim-commentary'
|
Plug 'vim-airline/vim-airline'
|
||||||
|
|
||||||
" File browsing
|
" TypeScript
|
||||||
Plug 'francoiscabrol/ranger.vim'
|
Plug 'HerringtonDarkholme/yats.vim'
|
||||||
Plug 'rbgrouleff/bclose.vim'
|
|
||||||
|
|
||||||
" Statusline
|
" Go
|
||||||
Plug 'vim-airline/vim-airline'
|
Plug 'fatih/vim-go', { 'do': ':GoInstallBinaries' }
|
||||||
|
|
||||||
" For async completion
|
" Rust
|
||||||
Plug 'Shougo/deoplete.nvim'
|
Plug 'rust-lang/rust.vim'
|
||||||
|
|
||||||
" TypeScript
|
" CSV
|
||||||
Plug 'HerringtonDarkholme/yats.vim'
|
Plug 'chrisbra/csv.vim'
|
||||||
Plug 'mhartington/nvim-typescript', {'do': './install.sh'}
|
|
||||||
|
|
||||||
" Go
|
" CSS Colour previews
|
||||||
Plug 'fatih/vim-go', { 'do': ':GoInstallBinaries' }
|
"
|
||||||
Plug 'deoplete-plugins/deoplete-go', { 'do': 'make'}
|
" Working on changing this, making it use virtual text to render a swatch.
|
||||||
|
Plug 'chrisbra/Colorizer'
|
||||||
" Rust
|
|
||||||
Plug 'rust-lang/rust.vim'
|
|
||||||
Plug 'sebastianmarkow/deoplete-rust'
|
|
||||||
|
|
||||||
" CSV
|
|
||||||
Plug 'chrisbra/csv.vim'
|
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
" Theme configuration
|
" I have a true colour terminal, and I will have true colours in my Vim
|
||||||
let g:gruvbox_italic = 1
|
set termguicolors
|
||||||
colorscheme gruvbox
|
|
||||||
|
|
||||||
" Use ranger instead of netrw
|
" Disable creation of swap files.
|
||||||
let g:ranger_replace_netrw = 1
|
|
||||||
|
|
||||||
" Setting up autocomplete
|
|
||||||
let g:deoplete#enable_at_startup = 1
|
|
||||||
|
|
||||||
" Quick exit insert mode
|
|
||||||
"
|
"
|
||||||
" Escape is at the far corner of my keyboard, and having it so far away
|
" Swap files serve a purpose, but not to me. I write often, and so
|
||||||
" was discouraging me from exiting insert mode. Qwerty users can remap
|
" these just get in the way.
|
||||||
" jk to <esc>, which is a far better solution. The keys are next to each
|
|
||||||
" other, and it makes exiting insert mode a pleasant rolling motion.
|
|
||||||
" Moreover, when in normal mode, jk is a no-op.
|
|
||||||
"
|
"
|
||||||
" As a dvorak user, jk was too cumbersome, but there were no other
|
" I'm toying with the idea of re-enabling these and ignoring them in Git.
|
||||||
" suitable candidates. hh is inferior in that it is not a no-op in
|
set nobackup
|
||||||
" normal mode, but it is just as easy to type. The only caveat is when
|
set nowritebackup
|
||||||
" an edit ends with h, which is why hhh will expand to place an h in
|
set noswapfile
|
||||||
" the buffer before exiting.
|
|
||||||
"
|
|
||||||
" To encourage me to adopt the new style, I disable escape. That one is
|
|
||||||
" sure to mess up someone not familiar with my setup.
|
|
||||||
inoremap hh <esc>
|
|
||||||
inoremap hhh h<esc>
|
|
||||||
" Terminal mode setting
|
|
||||||
tnoremap hh <C-\><C-n>
|
|
||||||
tnoremap hhh h<C-\><C-n>
|
|
||||||
|
|
||||||
" Lead with the biggest button on the motherfucking keyboard
|
|
||||||
let mapleader = "\<space>"
|
|
||||||
|
|
||||||
" FUzzy finding
|
|
||||||
nnoremap <leader>o :FZF<cr>
|
|
||||||
|
|
||||||
" Don't wrap lines
|
" Don't wrap lines
|
||||||
"
|
"
|
||||||
|
@ -137,17 +102,6 @@ set showcmd
|
||||||
" have the memory to spare to keep them around.
|
" have the memory to spare to keep them around.
|
||||||
set hidden
|
set hidden
|
||||||
|
|
||||||
" Enable highlighting for syntax
|
|
||||||
syntax on
|
|
||||||
|
|
||||||
" Enable file type detection.
|
|
||||||
"
|
|
||||||
" Use the default filetype settings, so that mail gets 'tw' set to 72,
|
|
||||||
" 'cindent' is on in C files, etc.
|
|
||||||
" Also load indent files, to automatically do language-dependent
|
|
||||||
" indenting.
|
|
||||||
filetype plugin indent on
|
|
||||||
|
|
||||||
" Insert only one space when joining lines that contain
|
" Insert only one space when joining lines that contain
|
||||||
" sentence-terminating punctuation like `.`.
|
" sentence-terminating punctuation like `.`.
|
||||||
set nojoinspaces
|
set nojoinspaces
|
||||||
|
@ -165,20 +119,13 @@ set listchars=tab:‣\ ,trail:·
|
||||||
" of my text in it, no funny business.
|
" of my text in it, no funny business.
|
||||||
set foldmethod=manual
|
set foldmethod=manual
|
||||||
set nofoldenable
|
set nofoldenable
|
||||||
let g:vim_markdown_folding_disabled=1
|
|
||||||
let g:vimtex_fold_enabled=0
|
|
||||||
|
|
||||||
""""""""""""""""""
|
" Scrolloff, because I'm allergic to the edges of my screen
|
||||||
" Ultisnips, y'all
|
set scrolloff=5
|
||||||
""""""""""""""""""
|
|
||||||
|
|
||||||
let g:UltiSnipsExpandTrigger="<tab>"
|
|
||||||
let g:UltiSnipsJumpForwardTrigger="<tab>"
|
|
||||||
let g:UltiSnipsJumpBackwardTrigger="<S-tab>"
|
|
||||||
|
|
||||||
" Tab config options
|
" Tab config options
|
||||||
"
|
"
|
||||||
" In general, I prefer spaces to tabs, and 2-space indentation. These
|
" In general, I prefer spaces to tabs, and 4-space indentation. These
|
||||||
" settings just make that consistent, so I rarely have to think about
|
" settings just make that consistent, so I rarely have to think about
|
||||||
" it.
|
" it.
|
||||||
set expandtab
|
set expandtab
|
||||||
|
@ -187,7 +134,99 @@ set shiftwidth=4
|
||||||
set softtabstop=4
|
set softtabstop=4
|
||||||
set autoindent
|
set autoindent
|
||||||
|
|
||||||
|
" Enable highlighting for syntax
|
||||||
|
syntax on
|
||||||
|
|
||||||
|
" Enable file type detection.
|
||||||
|
filetype plugin indent on
|
||||||
|
|
||||||
|
" Theme configuration
|
||||||
|
let g:gruvbox_italic = 1
|
||||||
|
colorscheme gruvbox
|
||||||
|
|
||||||
|
" Lead with the biggest button on the motherfucking keyboard
|
||||||
|
let mapleader = "\<space>"
|
||||||
|
let localmapleader = "\\"
|
||||||
|
|
||||||
|
" Quick exit insert mode
|
||||||
|
"
|
||||||
|
" Escape is at the far corner of my keyboard, and having it so far away
|
||||||
|
" was discouraging me from exiting insert mode. Qwerty users can remap
|
||||||
|
" jk to <esc>, which is a far better solution. The keys are next to each
|
||||||
|
" other, and it makes exiting insert mode a pleasant rolling motion.
|
||||||
|
" Moreover, when in normal mode, jk is a no-op.
|
||||||
|
"
|
||||||
|
" As a dvorak user, jk was too cumbersome, but there were no other
|
||||||
|
" suitable candidates. hh is inferior in that it is not a no-op in
|
||||||
|
" normal mode, but it is just as easy to type. The only caveat is when
|
||||||
|
" an edit ends with h, which is why hhh will expand to place an h in
|
||||||
|
" the buffer before exiting.
|
||||||
|
"
|
||||||
|
" To encourage me to adopt the new style, I disable escape. That one is
|
||||||
|
" sure to mess up someone not familiar with my setup.
|
||||||
|
inoremap hh <esc>
|
||||||
|
inoremap hhh h<esc>
|
||||||
|
|
||||||
|
" Terminal mode setting
|
||||||
|
tnoremap hh <C-\><C-n>
|
||||||
|
tnoremap hhh h<C-\><C-n>
|
||||||
|
|
||||||
|
" Visual mode setting
|
||||||
|
vnoremap hh <esc>
|
||||||
|
vnoremap hhh h<esc>
|
||||||
|
|
||||||
|
" Fuzzy finding
|
||||||
|
nnoremap <leader>o :Files<cr>
|
||||||
|
nnoremap <leader>b :Buffers<cr>
|
||||||
|
|
||||||
|
" Go to most recently edited file
|
||||||
|
nnoremap <leader><leader> <c-^>
|
||||||
|
|
||||||
|
" Ultisnips, y'all
|
||||||
|
let g:UltiSnipsExpandTrigger="<tab>"
|
||||||
|
let g:UltiSnipsJumpForwardTrigger="<tab>"
|
||||||
|
let g:UltiSnipsJumpBackwardTrigger="<S-tab>"
|
||||||
|
|
||||||
|
" Remap semi-colon to colon.
|
||||||
|
"
|
||||||
|
" Colon is the starting point of a lot of actions in Vim. And I
|
||||||
|
" shouldn't have to hold a modifier key to access so much
|
||||||
|
" essential functionality.
|
||||||
|
noremap ; :
|
||||||
|
noremap ;; ;
|
||||||
|
|
||||||
|
" Git blame
|
||||||
|
"
|
||||||
|
" I used to do this by just filling in my buffer, but this is nicer.
|
||||||
|
nnoremap <leader>a :Gblame<cr>
|
||||||
|
|
||||||
|
" What the hell is ex mode
|
||||||
|
"
|
||||||
|
" Whatever it is, I don't like it.
|
||||||
|
nnoremap Q <nop>
|
||||||
|
|
||||||
|
" Traversing lines
|
||||||
|
nnoremap - ddp
|
||||||
|
nnoremap _ :-1d<cr>pk
|
||||||
|
|
||||||
|
" Updating Vimrc
|
||||||
|
"
|
||||||
|
" A little mapping to edit my vimrc. I'd like to do this with a function, and
|
||||||
|
" account for a few things:
|
||||||
|
"
|
||||||
|
" + Is a buffer already open and visible?
|
||||||
|
" + Open in a floating window over everything to not disturb my workflow
|
||||||
|
nnoremap <leader>ev :vsp $MYVIMRC<cr>
|
||||||
|
|
||||||
|
" Second part, every time I write to $MYVIMRC, source it for me.
|
||||||
|
augroup updateVimrc
|
||||||
|
autocmd BufWritePost $MYVIMRC :source $MYVIMRC
|
||||||
|
augroup END
|
||||||
|
|
||||||
" Zoom the current split
|
" Zoom the current split
|
||||||
|
"
|
||||||
|
" Tmux has a feature <prefix>-z, that will zoom the current pane. I decided
|
||||||
|
" that this was a useful enough feature to have in Vim as well. Voila.
|
||||||
function! ZoomOrUnzoom()
|
function! ZoomOrUnzoom()
|
||||||
if exists('g:is_zoomed')
|
if exists('g:is_zoomed')
|
||||||
unlet g:is_zoomed
|
unlet g:is_zoomed
|
||||||
|
@ -199,6 +238,11 @@ function! ZoomOrUnzoom()
|
||||||
endif
|
endif
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
" Map it to <space>z
|
||||||
|
nnoremap <leader>z :call ZoomOrUnzoom()<cr>
|
||||||
|
|
||||||
|
" I had this running as an autocommand on resizes, but it was buggy so it's
|
||||||
|
" disabled at the moment.
|
||||||
function! HandleResize()
|
function! HandleResize()
|
||||||
if exists('g:is_zoomed')
|
if exists('g:is_zoomed')
|
||||||
execute "wincmd _"
|
execute "wincmd _"
|
||||||
|
@ -208,16 +252,17 @@ function! HandleResize()
|
||||||
endif
|
endif
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
nnoremap <C-z> :call ZoomOrUnzoom()<cr>
|
" A load of default file runners. These need to be refactored, so that they
|
||||||
|
" are in filetype plugins, and would probably be better served by being bound
|
||||||
|
" to the localleader.
|
||||||
function! RunTypeScript()
|
function! RunTypeScript()
|
||||||
silent !clear
|
silent !clear
|
||||||
execute "!tsc % --outFile /dev/stdout | node"
|
execute "!$(findroot package.json)/node_modules/.bin/mocha -r ts-node/register -R dot %"
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! RunJavaScript()
|
function! RunJavaScript()
|
||||||
silent !clear
|
silent !clear
|
||||||
execute "!node %"
|
execute "!$(findroot package.json)/node_modules/.bin/mocha -R dot %"
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! RunPython()
|
function! RunPython()
|
||||||
|
@ -230,17 +275,27 @@ function! RunRust()
|
||||||
execute "!cargo run"
|
execute "!cargo run"
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
augroup vimrcEx
|
function! OpenInMarked()
|
||||||
" Clear all autocmds in the group
|
silent !clear
|
||||||
|
execute '!open "x-marked://open?file=%:p"'
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
augroup runFiles
|
||||||
autocmd!
|
autocmd!
|
||||||
|
|
||||||
" Language whitespace settings
|
autocmd FileType typescript nnoremap <localleader>r :call RunTypeScript()<cr>
|
||||||
autocmd FileType make setl noet sw=8 sts=8 ts=8
|
autocmd FileType javascript nnoremap <localleader>r :call RunJavaScript()<cr>
|
||||||
|
autocmd FileType python nnoremap <localleader>r :call RunPython()<cr>
|
||||||
|
autocmd FileType rust nnoremap <localleader>r :call RunRust()<cr>
|
||||||
|
autocmd FileType markdown nnoremap <localleader>r :call OpenInMarked()<cr>
|
||||||
|
augroup END
|
||||||
|
|
||||||
autocmd FileType typescript nnoremap <leader>r :call RunTypeScript()<cr>
|
" Text formatting rules for various files.
|
||||||
autocmd FileType javascript nnoremap <leader>r :call RunJavaScript()<cr>
|
augroup textFormatting
|
||||||
autocmd FileType python nnoremap <leader>r :call RunPython()<cr>
|
autocmd!
|
||||||
autocmd FileType rust nnoremap <leader>r :call RunRust()<cr>
|
|
||||||
|
" Make files really need tabs
|
||||||
|
autocmd FileType make setl noet sw=8 sts=8 ts=8
|
||||||
|
|
||||||
" Hard wrap prose
|
" Hard wrap prose
|
||||||
"
|
"
|
||||||
|
@ -250,23 +305,24 @@ augroup vimrcEx
|
||||||
autocmd FileType
|
autocmd FileType
|
||||||
\ markdown,text
|
\ markdown,text
|
||||||
\ setl tw=80 fo=t1
|
\ setl tw=80 fo=t1
|
||||||
|
augroup END
|
||||||
|
|
||||||
|
" I'm not interested in line numbers on terminal buffers. I hardly ever use
|
||||||
|
" terminal buffers anyway, but they are useful in a few cases.
|
||||||
|
"
|
||||||
|
" I never want line numbering.
|
||||||
|
augroup lineNumbering
|
||||||
|
autocmd!
|
||||||
|
|
||||||
|
autocmd TermOpen * setl nonu nornu
|
||||||
|
augroup END
|
||||||
|
|
||||||
|
augroup terminalInsert
|
||||||
" Automatically enter terminal mode when summoning a terminal
|
" Automatically enter terminal mode when summoning a terminal
|
||||||
autocmd TermOpen term://* startinsert
|
autocmd TermOpen term://* startinsert
|
||||||
|
|
||||||
" Lay out splits when Vim gets resized
|
|
||||||
autocmd VimResized * :call HandleResize()<cr>
|
|
||||||
|
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
" Make directories in a filename if they don't exist.
|
" Make directories in a filename if they don't exist.
|
||||||
|
|
||||||
function! AskQuit (msg, options, quit_option)
|
|
||||||
if confirm(a:msg, a:options) == a:quit_option
|
|
||||||
exit
|
|
||||||
endif
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
function! EnsureDirExists ()
|
function! EnsureDirExists ()
|
||||||
let required_dir = expand("%:h")
|
let required_dir = expand("%:h")
|
||||||
if !isdirectory(required_dir)
|
if !isdirectory(required_dir)
|
||||||
|
@ -284,45 +340,20 @@ augroup AutoMkdir
|
||||||
autocmd BufNewFile * :call EnsureDirExists()
|
autocmd BufNewFile * :call EnsureDirExists()
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
" Ale
|
|
||||||
"
|
|
||||||
" An asynchronous linting engine.
|
|
||||||
let g:ale_lint_on_text_changed = 1
|
|
||||||
|
|
||||||
" Hallelujah!
|
|
||||||
let g:ale_set_signs = 1
|
|
||||||
let g:ale_sign_column_always = 1
|
|
||||||
let g:ale_sign_error = '--'
|
|
||||||
let g:ale_sign_warning = '--'
|
|
||||||
|
|
||||||
" Gitgutter
|
" Gitgutter
|
||||||
let g:gitgutter_realtime = 1
|
let g:gitgutter_realtime = 1
|
||||||
let g:gitgutter_eager = 1
|
let g:gitgutter_eager = 1
|
||||||
|
|
||||||
" JSX in mah JavaScript
|
|
||||||
let g:jsx_ext_required = 0
|
|
||||||
|
|
||||||
" Status line stuff
|
" Status line stuff
|
||||||
let g:airline#extensions#ale#enabled = 1
|
let g:airline#extensions#ale#enabled = 1
|
||||||
let g:airline#extensions#tabline#enabled = 1
|
let g:airline#extensions#tabline#enabled = 1
|
||||||
" Input supports patched fonts already \o/
|
" Input supports patched fonts already \o/
|
||||||
let g:airline_powerline_fonts = 1
|
let g:airline_powerline_fonts = 1
|
||||||
|
|
||||||
|
|
||||||
" Go to most recently edited file
|
|
||||||
nnoremap <leader><leader> <c-^>
|
|
||||||
|
|
||||||
" Disable syntax hiding in JSON
|
|
||||||
"
|
|
||||||
" Vim JSON provides a fancy way of viewing, where it hides quotes and
|
|
||||||
" just shows you data. I don't want that.
|
|
||||||
let g:vim_json_syntax_conceal = 0
|
|
||||||
|
|
||||||
" Show syntax highlighting groups for word under cursor
|
" Show syntax highlighting groups for word under cursor
|
||||||
"
|
"
|
||||||
" This is useful for finding rogue elements I forgot in my colour
|
" This is useful for finding rogue elements I forgot in my colour
|
||||||
" scheme.
|
" scheme.
|
||||||
nnoremap <leader>\ :call <SID>SynStack()<CR>
|
|
||||||
function! <SID>SynStack()
|
function! <SID>SynStack()
|
||||||
if !exists("*synstack")
|
if !exists("*synstack")
|
||||||
return
|
return
|
||||||
|
@ -330,35 +361,4 @@ function! <SID>SynStack()
|
||||||
echo map(synstack(line('.'), col('.')), 'synIDattr(v:val,"name")')
|
echo map(synstack(line('.'), col('.')), 'synIDattr(v:val,"name")')
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
" Remap semi-colon to colon.
|
nnoremap <leader>\ :call <SID>SynStack()<CR>
|
||||||
"
|
|
||||||
" Colon is the starting point of a lot of actions in Vim. And I
|
|
||||||
" shouldn't have to hold a modifier key to access so much
|
|
||||||
" essential functionality.
|
|
||||||
noremap ; :
|
|
||||||
noremap ;; ;
|
|
||||||
|
|
||||||
" Commenting aliases, because I hate change.
|
|
||||||
nnoremap <leader>/ :.Commentary<cr>
|
|
||||||
|
|
||||||
" Git blame
|
|
||||||
"
|
|
||||||
" I used to do this by just filling in my buffer, but this is nicer.
|
|
||||||
nnoremap <leader>a :Gblame<cr>
|
|
||||||
|
|
||||||
" Disable creation of swap files.
|
|
||||||
"
|
|
||||||
" Swap files serve a purpose, but not to me. I write often, and so
|
|
||||||
" these just get in the way.
|
|
||||||
set nobackup
|
|
||||||
set nowritebackup
|
|
||||||
set noswapfile
|
|
||||||
|
|
||||||
" What the hell is ex mode
|
|
||||||
"
|
|
||||||
" Whatever it is, I don't like it.
|
|
||||||
nnoremap Q <nop>
|
|
||||||
|
|
||||||
" Summon a terminal
|
|
||||||
nnoremap <leader>k :bot sp term://zsh<cr>
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue