diff options
Diffstat (limited to '.config')
-rwxr-xr-x | .config/nvim/init.vim | 47 |
1 files changed, 28 insertions, 19 deletions
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 136da45..60f443a 100755 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim | |||
@@ -142,8 +142,9 @@ Plug 'tpope/vim-obsession' | |||
142 | 142 | ||
143 | " fancy start screen | 143 | " fancy start screen |
144 | Plug 'mhinz/vim-startify' | 144 | Plug 'mhinz/vim-startify' |
145 | Plug 'ryanoasis/vim-devicons' " asks to be placed last, sure | 145 | " asks to be placed last, sure |
146 | call plug#end() " required | 146 | Plug 'ryanoasis/vim-devicons' |
147 | call plug#end() | ||
147 | 148 | ||
148 | "}}} | 149 | "}}} |
149 | 150 | ||
@@ -163,8 +164,7 @@ autocmd FileType markdown,tex setlocal spell | |||
163 | 164 | ||
164 | autocmd FileType rust let b:dispatch = 'cargo run' | 165 | autocmd FileType rust let b:dispatch = 'cargo run' |
165 | 166 | ||
166 | autocmd FileType vimwiki,latex,tex setlocal formatprg=/home/yigit/bin/sentences | 167 | autocmd FileType vimwiki,latex,tex setlocal formatprg=/home/yigit/.local/bin/sentences |
167 | |||
168 | 168 | ||
169 | " TODO: this will get supported on nvim 0.5.0 | 169 | " TODO: this will get supported on nvim 0.5.0 |
170 | " TODO: this too https://www.reddit.com/r/neovim/comments/gxcbui/in_built_lsp_is_amazing/ | 170 | " TODO: this too https://www.reddit.com/r/neovim/comments/gxcbui/in_built_lsp_is_amazing/ |
@@ -235,7 +235,8 @@ let g:yoinkIncludeDeleteOperations = 1 | |||
235 | 235 | ||
236 | " Tab stuff | 236 | " Tab stuff |
237 | set autoindent | 237 | set autoindent |
238 | set expandtab " Use appropriate number of spaces to insert a <Tab> | 238 | " Use appropriate number of spaces to insert a <Tab> |
239 | set expandtab | ||
239 | set shiftwidth=4 | 240 | set shiftwidth=4 |
240 | set softtabstop=4 | 241 | set softtabstop=4 |
241 | set tabstop=8 | 242 | set tabstop=8 |
@@ -250,21 +251,29 @@ set wildignore=*.o,*.obj,*.class,*.aux,*.lof,*.log,*.lot,*.fls,*.toc,*.fmt,*.fot | |||
250 | let g:NERDTreeRespectWildIgnore = 1 | 251 | let g:NERDTreeRespectWildIgnore = 1 |
251 | set nojoinspaces | 252 | set nojoinspaces |
252 | 253 | ||
253 | set scrolloff=4 " Keep n lines above/below cursor | 254 | " Keep n lines above/below cursor while scrolling |
254 | set number " line numbers | 255 | set scrolloff=4 |
255 | set foldmethod=marker " folding stuffs | 256 | " line numbers |
256 | set title " set terminal title | 257 | set number |
257 | set linebreak " wrap using 'breakat' character | 258 | " fold manually, when i place markers |
258 | set splitbelow " new split panes will split to below and right | 259 | set foldmethod=marker |
260 | " set terminal title | ||
261 | set title | ||
262 | " wrap using 'breakat' character | ||
263 | set linebreak | ||
264 | " new split panes will split to below and right | ||
265 | set splitbelow | ||
259 | set splitright | 266 | set splitright |
260 | set cursorline " highlight the current line | 267 | " highlight the current line, yoc undoes |
261 | set relativenumber " current line actual number, rest are relative | 268 | set cursorline |
262 | set noshowmode " we are already using airline, don't clobber linter messages | 269 | " current line actual number, rest are relative |
263 | 270 | set relativenumber | |
264 | set showmatch " jump to the matching bracket briefly | 271 | " we are already using airline, don't clobber linter messages |
265 | set hidden " move freely between buffers | 272 | set noshowmode |
266 | 273 | " jump to the matching bracket briefly | |
267 | set thesaurus+=~/.local/share/thesaurus.txt | 274 | set showmatch |
275 | " move freely between buffers | ||
276 | set hidden | ||
268 | 277 | ||
269 | " persistent undo | 278 | " persistent undo |
270 | set undodir=~/.vim/undodir | 279 | set undodir=~/.vim/undodir |