From 65a3c1de38e64bdc4e25d09b585c1f2cc32f6faf Mon Sep 17 00:00:00 2001 From: Konstantin Bukley Date: Thu, 23 Sep 2021 16:25:45 +0300 Subject: [PATCH] vim: treesitter --- vim/.vimrc | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/vim/.vimrc b/vim/.vimrc index cc0989c..eadd787 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -35,7 +35,7 @@ call plug#begin('~/.vim/plugged') " ======== Languages / Textobjects ======================= -Plug 'sheerun/vim-polyglot' +" Plug 'sheerun/vim-polyglot' Plug 'kana/vim-textobj-user' Plug 'nelstrom/vim-textobj-rubyblock' Plug 'austintaylor/vim-indentobject' @@ -75,7 +75,7 @@ Plug 'arcticicestudio/nord-vim' " ======== tpope <3 ==================================== -Plug 'tpope/vim-endwise' +" Plug 'tpope/vim-endwise' Plug 'tpope/vim-fugitive' Plug 'tpope/vim-rails', { 'for': 'ruby' } Plug 'tpope/vim-surround' @@ -92,6 +92,8 @@ Plug 'nvim-lua/popup.nvim' Plug 'nvim-lua/plenary.nvim' Plug 'nvim-telescope/telescope.nvim' +Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} + call plug#end() @@ -477,7 +479,7 @@ nnoremap l nnoremap ,, -nnoremap f (expand('%') =~ 'NERD_tree' ? "\\" : '').":Files\" +nnoremap ff (expand('%') =~ 'NERD_tree' ? "\\" : '').":Files\" nnoremap b (expand('%') =~ 'NERD_tree' ? "\\" : '').":Buffers\" nnoremap gl (expand('%') =~ 'NERD_tree' ? "\\" : '').":Commits\" @@ -552,6 +554,21 @@ nnoremap E :e ~/Tmp/ nnoremap o (expand('%') =~ 'NERD_tree' ? "\\" : '').":Files ~/Library/Mobile\ Documents/iCloud~md~obsidian/Documents/Personal\" nnoremap O :e ~/Library/Mobile\ Documents/iCloud~md~obsidian/Documents/Personal +" EXPERIMENTAL STUFF +nnoremap ft Telescope find_files +" nmap ft Telescope live_grep -" nnoremap f Telescope find_files -" nmap Telescope live_grep +" undo break points +inoremap , ,u +inoremap . .u +inoremap ! !u +inoremap ? ?u + +lua <