From 431c63a54ef0e79d964b186f44abba27a7685e9a Mon Sep 17 00:00:00 2001 From: Rafael Marçalo Date: Wed, 21 Jun 2023 21:22:30 +0100 Subject: Updated nvim configs --- neovim/.config/nvim/confs/keybinds.vim | 30 +++++++++++++++--------------- neovim/.config/nvim/init.vim | 3 ++- 2 files changed, 17 insertions(+), 16 deletions(-) diff --git a/neovim/.config/nvim/confs/keybinds.vim b/neovim/.config/nvim/confs/keybinds.vim index 376a337..f5c1161 100755 --- a/neovim/.config/nvim/confs/keybinds.vim +++ b/neovim/.config/nvim/confs/keybinds.vim @@ -3,28 +3,28 @@ let mapleader=" " " Limiter Column Color " https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=bdc48fa11e46f867ea4d75fa59ee87a7f48be144 -map cc :set colorcolumn=100 +nnoremap cc :set colorcolumn=100 " Move between splits -map h -map j -map k -map l +nnoremap h +nnoremap j +nnoremap k +nnoremap l " Auto Indent -map gg=G +nnoremap gg=G " Check Spelling -map lp :set spell spelllang=pt_pt -map le :set spell spelllang=en_us -map ls :set nospell +nnoremap lp :set spell spelllang=pt_pt +nnoremap le :set spell spelllang=en_us +nnoremap ls :set nospell " Custom Scripts -map :!compiler '%' $(pwd) -map :!clear && shellcheck % +nnoremap :!compiler '%' $(pwd) +nnoremap :!clear && shellcheck % " Git Hunk Preview -map c :Gitsigns preview_hunk_inline +nnoremap c :Gitsigns preview_hunk_inline " NvimTree nnoremap f :NvimTreeToggle @@ -34,9 +34,9 @@ nnoremap r :NvimTreeRefresh nnoremap t Telescope find_files " Move between buffers -map :bnext -map :bprev -map :bdel +nnoremap :bnext +nnoremap :bprev +nnoremap :bdel lua << EOF -- Documentation view on hover diff --git a/neovim/.config/nvim/init.vim b/neovim/.config/nvim/init.vim index 990af56..110fe4a 100755 --- a/neovim/.config/nvim/init.vim +++ b/neovim/.config/nvim/init.vim @@ -29,6 +29,7 @@ Plug 'akinsho/bufferline.nvim', { 'tag': '*' } call plug#end() " Configurations -for f in split(glob('~/.config/nvim/confs/*.vim'), '\n') +for f in split(glob('confs/*.vim'), '\n') exe 'source' f endfor + -- cgit v1.2.3