nvim: small refactor and add little things
la-ninpre leobrekalini@gmail.com
Thu, 03 Jun 2021 01:01:56 +0300
1 files changed,
14 insertions(+),
13 deletions(-)
jump to
M
.config/nvim/init.vim
→
.config/nvim/init.vim
@@ -23,9 +23,10 @@
" more intuitive splits set splitbelow splitright -" don't highlight everything when search and move cursor to the searched word -set nohlsearch incsearch +" search options +set nohlsearch incsearch ignorecase smartcase showmatch +" ruler set rulerformat=%35(%{strftime('%F\ %H:%M')}%=%l/%L%=%c%V%=%p%%\ %) " expand tabs to spaces@@ -70,6 +71,7 @@ Plug 'tpope/vim-surround'
Plug 'mbbill/undotree' Plug 'dense-analysis/ale' Plug 'cespare/vim-toml' +Plug 'https://tildegit.org/sloum/gemini-vim-syntax' call plug#end() filetype plugin indent on@@ -114,10 +116,8 @@ " show or hide unprintable characters
nnoremap <leader>sl :set list<CR> nnoremap <leader>sn :set nolist<CR> -" goyo and limelight +" goyo nnoremap <leader>go :Goyo<CR> -autocmd! User GoyoEnter Limelight -autocmd! User GoyoLeave Limelight! " actually magick! " this moves higlighted block up or down@@ -127,18 +127,19 @@
" alias for capturing group in command mode (for use with regexps) cmap ;( \(\)<Left><Left> +" +" autocommands +" + +" limelight on when goyo +autocmd! User GoyoEnter Limelight +autocmd! User GoyoLeave Limelight! + " fix wrong nvim size when starting in alacritty autocmd VimEnter * :silent exec "!kill -s SIGWINCH $PPID" -" highlight yanked text -" i consider this as transition from visually selecting stuff and yanking it -" to just yank text object without selecting it +" highlight yanked text (needs nvim 0.5.x) augroup highlight_yank autocmd! autocmd TextYankPost * silent! lua require'vim.highlight'.on_yank({timeout = 40}) augroup END - -augroup xmobar_syntax - autocmd! - autocmd BufRead,BufNewFile xmobarrc* set syntax=haskell -augroup END