Remove vim and add nvim config
This commit is contained in:
parent
92b6c017d1
commit
e06ce1a49a
26 changed files with 665 additions and 66 deletions
47
nvim/init.vim
Normal file
47
nvim/init.vim
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
filetype plugin on
|
||||
syntax on
|
||||
set number
|
||||
set nowrap
|
||||
set wildmode=longest,list
|
||||
set colorcolumn=120
|
||||
let $NVIM_TUI_ENABLE_TRUE_COLOR=1
|
||||
let g:gruvbox_contrast_dark='hard'
|
||||
let g:gruvbox_hls_cursor='red'
|
||||
set tabpagemax=500
|
||||
|
||||
" Indentation
|
||||
set smartindent
|
||||
set tabstop=4
|
||||
set softtabstop=4
|
||||
set shiftwidth=4
|
||||
set expandtab
|
||||
set cursorcolumn
|
||||
set cursorline
|
||||
|
||||
" Search
|
||||
set incsearch
|
||||
set hlsearch
|
||||
set ignorecase
|
||||
set smartcase
|
||||
|
||||
" Whitespaces
|
||||
set listchars=tab:>-,trail:·
|
||||
set list
|
||||
|
||||
" Terminal mode
|
||||
:tnoremap <Esc> <C-\><C-n>
|
||||
|
||||
" File handling
|
||||
set hidden
|
||||
|
||||
" Custom shortcuts
|
||||
map gb :bn<cr>
|
||||
map gB :bp<cr>
|
||||
|
||||
" Close the completion preview window (docstring) automatically
|
||||
autocmd CompleteDone * pclose
|
||||
|
||||
" LSP config
|
||||
lua <<EOF
|
||||
require("config.lazy")
|
||||
EOF
|
||||
Loading…
Add table
Add a link
Reference in a new issue