From 11ed03d80c55e2c213118adf97fc18c55d2249a3 Mon Sep 17 00:00:00 2001 From: "Julian T." Date: Wed, 1 Nov 2023 15:46:43 +0100 Subject: Rework nvim setup --- vim-core/.config/nvim/init.vim | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'vim-core') diff --git a/vim-core/.config/nvim/init.vim b/vim-core/.config/nvim/init.vim index fc5f2e5..9e52109 100644 --- a/vim-core/.config/nvim/init.vim +++ b/vim-core/.config/nvim/init.vim @@ -1,9 +1,8 @@ set nocompatible -filetype plugin on +filetype plugin indent on set shellslash -let mapleader="," - +let mapleader=" " runtime extra.vim filetype plugin indent on " required @@ -30,7 +29,6 @@ filetype plugin indent on " required set softtabstop=2 set autoindent - set smartindent " Show 5 lines above and below cursor set scrolloff=3 @@ -60,6 +58,8 @@ filetype plugin indent on " required set autoread + set cino=J1,j1,L0,:0,=0,l1,h0 + " Exit insert mode on inactivity " au CursorHoldI * stopinsert}}} @@ -87,6 +87,7 @@ filetype plugin indent on " required " Fuzzy like menu set path+=** set wildmenu + set wildignore+=**/node_modules/** let g:netrw_liststyle=2"}}} @@ -99,14 +100,16 @@ filetype plugin indent on " required nnoremap j (v:count > 1 ? "m'" . v:count : '' ) . 'j' nnoremap k (v:count > 1 ? "m'" . v:count : '' ) . 'k' - nnoremap p :echo "Leader virker" + " Leader stuff + nnoremap t echo "Yeah det virker" " Enforcing filetypes{{{ autocmd BufRead,BufNewFile *.ino set filetype=c autocmd BufRead,BufNewFile *.asc set filetype=asciidoc autocmd BufRead,BufNewFile *.nix set filetype=nix - autocmd BufRead,BufNewFile *.tsx set filetype=typescript"}}} + autocmd BufRead,BufNewFile *.tsx set filetype=typescriptreact + "}}} " Highlightning And colors{{{ set termguicolors -- cgit v1.2.3