summaryrefslogtreecommitdiffstats
path: root/.config/nvim
diff options
context:
space:
mode:
authorYigit Sever2020-10-29 13:18:20 +0300
committerYigit Sever2020-10-29 13:18:20 +0300
commitf7371037e5c8e1d734737df50c49700852fb57db (patch)
tree3b273196267b8ebb6a9f4a87a42738656cb9dd84 /.config/nvim
parent77cfcbecc6965d719117e392f3ff2ab4730ebef6 (diff)
downloaddotfiles-f7371037e5c8e1d734737df50c49700852fb57db.tar.gz
dotfiles-f7371037e5c8e1d734737df50c49700852fb57db.tar.bz2
dotfiles-f7371037e5c8e1d734737df50c49700852fb57db.zip
comments and config on separate lines
Diffstat (limited to '.config/nvim')
-rwxr-xr-x.config/nvim/init.vim47
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
144Plug 'mhinz/vim-startify' 144Plug 'mhinz/vim-startify'
145Plug 'ryanoasis/vim-devicons' " asks to be placed last, sure 145" asks to be placed last, sure
146call plug#end() " required 146Plug 'ryanoasis/vim-devicons'
147call plug#end()
147 148
148"}}} 149"}}}
149 150
@@ -163,8 +164,7 @@ autocmd FileType markdown,tex setlocal spell
163 164
164autocmd FileType rust let b:dispatch = 'cargo run' 165autocmd FileType rust let b:dispatch = 'cargo run'
165 166
166autocmd FileType vimwiki,latex,tex setlocal formatprg=/home/yigit/bin/sentences 167autocmd 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
237set autoindent 237set autoindent
238set expandtab " Use appropriate number of spaces to insert a <Tab> 238" Use appropriate number of spaces to insert a <Tab>
239set expandtab
239set shiftwidth=4 240set shiftwidth=4
240set softtabstop=4 241set softtabstop=4
241set tabstop=8 242set tabstop=8
@@ -250,21 +251,29 @@ set wildignore=*.o,*.obj,*.class,*.aux,*.lof,*.log,*.lot,*.fls,*.toc,*.fmt,*.fot
250let g:NERDTreeRespectWildIgnore = 1 251let g:NERDTreeRespectWildIgnore = 1
251set nojoinspaces 252set nojoinspaces
252 253
253set scrolloff=4 " Keep n lines above/below cursor 254" Keep n lines above/below cursor while scrolling
254set number " line numbers 255set scrolloff=4
255set foldmethod=marker " folding stuffs 256" line numbers
256set title " set terminal title 257set number
257set linebreak " wrap using 'breakat' character 258" fold manually, when i place markers
258set splitbelow " new split panes will split to below and right 259set foldmethod=marker
260" set terminal title
261set title
262" wrap using 'breakat' character
263set linebreak
264" new split panes will split to below and right
265set splitbelow
259set splitright 266set splitright
260set cursorline " highlight the current line 267" highlight the current line, yoc undoes
261set relativenumber " current line actual number, rest are relative 268set cursorline
262set noshowmode " we are already using airline, don't clobber linter messages 269" current line actual number, rest are relative
263 270set relativenumber
264set showmatch " jump to the matching bracket briefly 271" we are already using airline, don't clobber linter messages
265set hidden " move freely between buffers 272set noshowmode
266 273" jump to the matching bracket briefly
267set thesaurus+=~/.local/share/thesaurus.txt 274set showmatch
275" move freely between buffers
276set hidden
268 277
269" persistent undo 278" persistent undo
270set undodir=~/.vim/undodir 279set undodir=~/.vim/undodir