diff options
author | Urbain Vaes <urbain@vaes.uk> | 2021-09-30 20:48:21 +0200 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2021-09-30 20:48:21 +0200 |
commit | ee07f3a792cb0a09fcd87dd31eb8ea596b8365a3 (patch) | |
tree | b130fb4be747885e1baec50557141607e7716ca7 /vim/.vimrc | |
parent | 179918a8892a78c428774e35afecfc3df875d3c7 (diff) |
Minor changes
Diffstat (limited to 'vim/.vimrc')
-rw-r--r-- | vim/.vimrc | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -64,8 +64,8 @@ endif if has("nvim") && hostname() != "peuplier" Plug '~/dotfiles/plugins/nvim-i3scratchpad' Plug 'neovim/nvim-lspconfig' - Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} - Plug 'nvim-treesitter/playground' + " Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} + " Plug 'nvim-treesitter/playground' endif " Colors @@ -212,7 +212,9 @@ let g:tex_conceal= '' let g:tex_flavor='latex' augroup latex + autocmd! autocmd FileType tex let b:surround_124 = "\\lvert \r \\rvert" + autocmd FileType tex let b:surround_110 = "\\lVert \r \\rVert" augroup END "" Vim options {{{1 @@ -393,7 +395,7 @@ if has("nvim") nnoremap <Leader>t :b term \| norm A<cr> endif -if has("nvim") +if has("nvim") && &runtimepath =~ 'treesitter' lua <<EOF require'nvim-treesitter.configs'.setup { highlight = { enable = true }, @@ -434,3 +436,6 @@ let g:ripple_repls = { \ }, \ "r": "radian" \ } + +" Vim sensible fix +inoremap <c-w> <c-w> |