summaryrefslogtreecommitdiffstats
path: root/.config/nvim/init.vim
blob: 89b12e76019bdccb75fb7420b227adf0799c1828 (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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
" nvim configuration

scriptencoding utf-8

colorscheme solarized-dark

set title
set titleold=st
set cursorline
set noshowmode

set scrolloff=3
set linebreak
set ignorecase
set smartcase

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)
let g:ale_markdown_markdownlint_options = '--disable MD025 --'
let g:ale_tex_chktex_options = '-I -n1 -n3 -n24' " VimTeX does '-n1 -n3 -n8 -n25 -n36'

" ----- QuickTex -----
let g:quicktex_usedefault = 0
let g:quicktex_excludechar = ['\$', '(', ')', '\[', ']', '{', '}', '\.', ',', ':', ';', '-', '+', '*', '"']

" ----- VimTeX -----
nmap <leader>c <Plug>(vimtex-compile)
nmap <leader>v <Plug>(vimtex-view)
let g:vimtex_view_method = 'zathura'
let g:vimtex_quickfix_open_on_warning = 0
let g:vimtex_indent_enabled = 0
let g:vimtex_indent_on_ampersands = 0

" vim: ft=vim