~yerinalexey/dotfiles

ref: b75055cfb2820b41efd348481e49a2f487355931 dotfiles/nvim/init.vim -rw-r--r-- 1.5 KiB
b75055cf — Alexey Yerin bottom: fix indents 1 year, 2 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
" NeoVim configuration

" General:
" Leader key is space
let mapleader=" "

" Enable line numbers
set number relativenumber

" Show commands
set showcmd

" Display tab as 2 spaces
set shiftwidth=2 tabstop=2 softtabstop=2

" Auto indent
set autoindent smartindent

" Enable progressive search and highlight search result
set incsearch hlsearch

" Partially case-insensitive search
" If query contains a capital letter, search will be case-sensitive
set ignorecase smartcase

" Expand tabs into spaces
set expandtab

" 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

" Highlight the current line
set cursorline

" Load plugins:
runtime plugins.vim

" Appearance:
" Set color scheme
colorscheme onedark

" Make some things bold
hi! MatchParen gui=bold
hi! Function gui=bold
hi! Todo gui=bold

" Hide end-of-buffer lines (~)
let g:onedark_hide_endofbuffer = 1

" Enable truecolor
if has('termguicolors')
  set termguicolors
end

" Whitespace:
let g:better_whitespace_enabled=1

" Strip leading spaces on save
let g:strip_whitespace_on_save = 1

" Highlight extra whitespace with a better color
hi! link ExtraWhitespace DiffDelete

" Search:
" Exclude node_modules, builds and Vim's swap files
set wildignore+=*/node_modules/*,*/target/*,*/dist/*,*/build/*,*.swp

" Other settings
runtime lightline.vim
runtime coc.vim
runtime fern.vim
runtime fzf.vim
runtime git.vim
runtime hooks.vim
runtime mappings.vim
runtime peartree.vim