47 lines
734 B
VimL
47 lines
734 B
VimL
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
|