nixpkgs/home/programs/neovim/init.vim
Daniel Siepmann 02437cefba
Configure Neovim completion
Still use menu like default.
Do not show preview as in default.
Do not insert as in default.
Do not select as in default.

This allows me to see suggestions but continue typing to narrow down.
Also allows me to manually select a result.

That way completion is out of my way but there to support me.
2022-03-16 16:25:06 +01:00

52 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
set completeopt=menu,noinsert,noselect
" 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 /!.*!/