Update Neovim config

- cursorline
  - splitbelow and splitright
  - reorganize lua config and mapleader
This commit is contained in:
hoellen 2023-08-17 13:53:07 +02:00
parent 2f81c2a5eb
commit 4d261ef46e

View File

@ -1,5 +1,4 @@
" Load lua config
lua require('config')
let mapleader = "\<space>"
" General editor config
language en_US
@ -8,6 +7,7 @@ set scrolloff=3
set sidescroll=3
set tabstop=4
set shiftwidth=4
set cursorline
set nowrap
set ignorecase
set smartcase
@ -16,9 +16,10 @@ set mouse=a
set showmatch
set undofile
set shortmess=I "disable intro message
set splitbelow
set splitright
" Key mapping
let mapleader = "\<space>"
nnoremap \\ :noh<cr> " Clear higlighting
set listchars=tab:▸\ ,eol:↵,space:.
@ -32,6 +33,8 @@ map <Leader>p "*p
vmap < <gv
vmap > >gv
" jk is escape
inoremap jk <ESC>
@ -46,3 +49,5 @@ fun! TrimWhitespace()
endfun
command! TrimWhitespace call TrimWhitespace()
" Load lua config
lua require('config')