From 950d4f9687bc9e198256d3303cd484e975742b41 Mon Sep 17 00:00:00 2001 From: Wiktor Zykubek Date: Wed, 8 Jul 2020 09:57:04 +0200 Subject: [PATCH] Update NeoVim configuration --- .config/nvim/bindings.vim | 16 +++++++++++++--- .config/nvim/colors/biual.vim | 16 ++++++++-------- .config/nvim/plugins.vim | 16 +++++++++++++--- 3 files changed, 34 insertions(+), 14 deletions(-) diff --git a/.config/nvim/bindings.vim b/.config/nvim/bindings.vim index f8271f7..372d669 100644 --- a/.config/nvim/bindings.vim +++ b/.config/nvim/bindings.vim @@ -5,11 +5,18 @@ let mapleader = "\" let g:move_key_modifier = 'A' +" Enable/disable autopairs +nmap ap :CloseTagToggleBuffer:call AutoPairsToggle():echo "Auto closing tags toggled." + +" Enable/disable deoplete +map d :call deoplete#toggle():echo "Deoplete toggled." + "~~~~~~~~~~~~~~~~~ " File Management "~~~~~~~~~~~~~~~~~ " fzf nmap f :Files +nmap F :Files ~ "~~~~~~~~~ " Linters @@ -17,9 +24,6 @@ nmap f :Files " Deletes all trailing whitespaces noremap c :%s/\s\+$//e -" Enable/disable deoplete -map d :call deoplete#toggle() - " ALE map fw :FixWhitespace map af :ALEFix @@ -48,6 +52,12 @@ noremap :split term://zsh:resize 10 " Exit from terminal mode tnoremap +" Split management +nnoremap +nnoremap +nnoremap +nnoremap + "~~~~~~~ " Other "~~~~~~~ diff --git a/.config/nvim/colors/biual.vim b/.config/nvim/colors/biual.vim index 8e14179..1369716 100644 --- a/.config/nvim/colors/biual.vim +++ b/.config/nvim/colors/biual.vim @@ -60,8 +60,8 @@ hi MyStatuslineFiletype ctermfg=9 ctermbg=none cterm=italic hi MyStatuslineLineCol ctermfg=1 ctermbg=none cterm=none hi MyStatuslineLinePerc ctermfg=2 ctermbg=none cterm=none -hi CursorLine ctermbg=8 cterm=NONE -hi CursorColumn ctermbg=8 cterm=NONE +" hi CursorLine ctermfg=none ctermbg=none cterm=none +" hi CursorColumn ctermbg=8 cterm=NONE " ALE hi ALEWarning cterm=undercurl @@ -75,12 +75,12 @@ hi LspHintText ctermfg=3 ctermbg=none cterm=none hi LspErrorLine ctermfg=red cterm=undercurl hi LspErrorText ctermfg=red ctermbg=none -" Cursorline highlight -augroup CursorLine - au! - au VimEnter,WinEnter,BufWinEnter * setlocal cursorline - au WinLeave * setlocal nocursorline -augroup END +" " Cursorline highlight +" augroup CursorLine +" au! +" au VimEnter,WinEnter,BufWinEnter * setlocal cursorline +" au WinLeave * setlocal nocursorline +" augroup END " Files hi Win ctermfg=white ctermbg=none cterm=none diff --git a/.config/nvim/plugins.vim b/.config/nvim/plugins.vim index 245ec92..a56badf 100644 --- a/.config/nvim/plugins.vim +++ b/.config/nvim/plugins.vim @@ -29,15 +29,15 @@ call plug#begin('~/.config/nvim/bundle') Plug 'ryanolsonx/vim-lsp-javascript' Plug 'ervandew/supertab' - Plug 'honza/vim-snippets' Plug 'Shougo/neosnippet.vim' - Plug 'Shougo/neosnippet-snippets' + Plug 'samedamci/snippets' Plug 'mattn/emmet-vim' Plug 'tpope/vim-surround' Plug 'tpope/vim-commentary' Plug 'jiangmiao/auto-pairs' + Plug 'alvan/vim-closetag' Plug 'sheerun/vim-polyglot' Plug 'luochen1990/rainbow' @@ -119,7 +119,7 @@ let g:user_emmet_install_global = 0 autocmd FileType html,css EmmetInstall " deoplete -let g:deoplete#enable_at_startup = 1 +let g:deoplete#enable_at_startup = 0 let g:deoplete#enable_ignore_case = 1 set completeopt-=preview @@ -168,6 +168,16 @@ let g:lsp_highlight_references_enabled = 1 " autopairs let g:AutoPairs={'(':')', '[':']', '{':'}', "'":"'", '"':'"', "`":"`", '```':'```', '"""':'"""', "'''":"'''"} "'<':'>', +" let b:AutoPairs={} + +" vim-closetag +let g:closetag_filenames = '*.html,*.xhtml,*.phtml' +let g:closetag_xhtml_filenames = '*.xhtml,*.jsx' +let g:closetag_filetypes = 'html,xhtml,phtml' +let g:closetag_xhtml_filetypes = 'xhtml,jsx' +let g:closetag_emptyTags_caseSensitive = 1 +let g:closetag_shortcut = '>' +let g:closetag_close_shortcut = '>' " LaTeX let g:livepreview_previewer = 'zathura'