nixpkgs/home/programs/neovim/init.vim
Daniel Siepmann 082ad58af1
Migrate neovim setup
I managed my setup manually.
This commit ports the existing setup to home-manager.

The program module is used to install neovim together with plugins.
Custom plugins are now maintained at Gitea / GitHub and loaded via nix as well.
2022-03-12 11:26:32 +01:00

51 lines
1.2 KiB
VimL

set background=dark
set t_Co=256
colorscheme smyckblue
set timeoutlen=1000
set ttimeoutlen=1000
set nonumber
set cursorline
set foldcolumn=0
set foldmethod=indent
set foldlevelstart=1
set laststatus=2
" Don't jump to first line, e.g. on buffer switch
set nostartofline
" Extend completion using spelling if enabled for buffer.
set complete+=kspell
" Allow syntax highlighting and other file / language specific things
syntax enable
" Activate filetype detection and auto indent
filetype plugin indent on
" Show command in bottom of the screen
set showcmd
set showmode
" More useful command-line completion
set wildmenu
" Auto-completion menu
set wildmode=longest,list:full
" Adjust splitting
set splitbelow
set splitright
" Disable wrap of line
set nowrap
" Test line for wrapping: This should be a very long line with many characters and words so I can test whether this Line get's wrapped or not and how other settings like sidescroll are applied.
set sidescrolloff=5
" Show current line in middle of screen
set scrolloff=1000
" Custom highlighting
" Highlight whitespace at end of line as error
" match Error /\s\+$/
match Todo /TODO\|NOTE\|todo\|TASK/
match ERROR /♥/
" match ERROR /!.*!/