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