~yerinalexey/dotfiles

ref: 144a38b0aa0a39003633d53b77fe4e3ca29c054b dotfiles/nvim/init.vim -rw-r--r-- 1.3 KiB
144a38b0Alexey Yerin river,update-volume: fix old wob crashes 5 months ago
                                                                                
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
62
63
64
65
66
67
" NeoVim configuration

" General:
" Leader key for user bindings
let mapleader="\\"

" Enable line numbers
set number relativenumber

" Show commands
set showcmd

" Tab thing
set tabstop=2 softtabstop=2 shiftwidth=0

" Auto indent
set autoindent smartindent

" Sometimes gets annoying when having another window open on the side
set nowrap

" Progressivly search and highlight search result
set incsearch hlsearch

" Place new splits below or on the right. It feels more natural
set splitbelow splitright

" Hide the current buffer instead of throwing an error when you try to
" replace it
set hidden

" Wrap at 72 characters
set colorcolumn=-1
set tw=72

" - Wrap (as-you-type) only in comments
" - Automatically continue comments (when pressing Enter, not with o/O)
" - Force wrap if using gq{object}
" - Remove comment leader when joining lines
" - Don't break lines at single spaces or periods
set formatoptions=crqtjp

" Spell checking
set spelllang=en,ru

" Load plugins:
runtime plugins.vim

" No autoformat please
let g:zig_fmt_autosave = 0

set signcolumn=yes

" Do not change cursor shape
set guicursor=

" Search:
set wildignore+=*/node_modules/*,*/target/*,*/dist/*,*/build/*,*.swp

" Other settings
runtime colors.vim
runtime fzf.vim
runtime git.vim
runtime hooks.vim
runtime lightline.vim
runtime lsp.vim
runtime mappings.vim