summaryrefslogtreecommitdiffstats
path: root/.config/nvim/init.vim
blob: b5f80ca06699682cd18539661c8d0a9bc3124c35 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
" nvim configuration

scriptencoding utf-8

colorscheme solarized-dark

set title
set titleold=st
set cursorline
set noshowmode

set scrolloff=3
set linebreak

set tabstop=2
set shiftwidth=2
set softtabstop=2
set expandtab

" Filter the command history without leaving the home row (PV34)
cnoremap <C-p> <Up>
cnoremap <C-n> <Down>

" Move by display lines (PV47)
nnoremap j gj
nnoremap gj j
nnoremap k gk
nnoremap gk k

set spelllang=en_gb

let mapleader = ' '

autocmd TextYankPost * silent! lua vim.highlight.on_yank {higroup="IncSearch", timeout=250}

" disable matchit plugin
let loaded_matchit = 1

" ----- ALE -----
let g:ale_enabled = 0
nmap <leader>a <Plug>(ale_toggle)
nmap <silent> <C-k> <Plug>(ale_previous_wrap)
nmap <silent> <C-j> <Plug>(ale_next_wrap)

" vim: ft=vim