1
0
Fork 0
dotfiles/nvim/init.vim
2026-02-22 12:19:27 +01:00

53 lines
844 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>
map g# :b#<cr>
" Close the completion preview window (docstring) automatically
autocmd CompleteDone * pclose
" LSP config
lua <<EOF
require("config.lazy")
vim.diagnostic.config({
virtual_text = true,
severity_sort = true,
})
EOF