config/nvim/.config/nvim/init.vim

63 lines
1.5 KiB
VimL

let $FZF_DEFAULT_COMMAND='rg --files --follow --hidden -g "!{node_modules/*,.git/*,.styles/*,static/*}"'
source $HOME/.config/nvim/plug/plug.vim
source $HOME/.config/nvim/plugs.vim
syntax on
filetype plugin indent on
" Nice navigaton shortcuts
map <C-n> :NERDTreeToggle<CR>
map <C-f> :Files<CR>
map <C-g> :Rg<CR>
" Disable mouse input
set mouse=
" Keep context visible
set scrolloff=2
set sidescrolloff=0
" Forgive me for I have searched
set incsearch
set hlsearch
" Make pretty reasonable wrapping
set nowrap
set linebreak " wraps at work boundaries
autocmd FileType markdown set wrap spell
autocmd FileType tex set wrap spell
" If files are modified just reopen them
set autoread
set updatetime=100
au FileChangedShell * checktime
au CursorHold * checktime
au CursorHoldI * checktime
" Line numnbmers are cool
set number
set relativenumber
" Always show the signcolumn, otherwise it would shift the text each time
" diagnostics appear/become resolved.
if has("nvim-0.5.0") || has("patch-8.1.1564")
" Recently vim can merge signcolumn and number column into one
set signcolumn=yes
else
set signcolumn=number
endif
" Turn off polyglot for some langs so they play nice
if exists('g:loaded_polyglot')
let g:polyglot_disabled = ['go', 'rst', 'tla']
endif
au BufRead,BufNewFile *.tla setf tla
" I like pretty things
source $HOME/.config/nvim/colors.vim
" Manually trigger completions
inoremap <silent><expr> <C-k> coc#refresh()
" Conceal markdown syntax
set conceallevel=2