1
0
mirror of https://github.com/DazAh/dotfiles synced 2026-05-21 18:25:46 +01:00

modified: private_dot_config/nvim/init.vim

This commit is contained in:
DazAh
2019-10-19 02:48:27 +01:00
parent 6cc3b2219c
commit 6a7522ca63
+26 -1
View File
@@ -6,11 +6,36 @@ Plug 'ledger/vim-ledger'
Plug 'scrooloose/nerdtree'
Plug 'vim-airline/vim-airline'
Plug 'tpope/vim-fugitive'
" CoC LSP/Intellisense
Plug 'neoclide/coc.nvim', {'branch': 'release'}
" Rust"
Plug 'rust-lang/rust.vim'
Plug 'racer-rust/vim-racer'
Plug 'neoclide/coc-rls'
" Plug 'ycm-core/YouCompleteMe'
call plug#end()
map <C-c> :NERDTreeToggle<CR>
" General
set t_Co=256
set showmatch
set hlsearch
set incsearch
set spell spelllang=en_gb
set spelllang=en_gb
" CoC Highlighting
autocmd FileType json syntax match Comment +\/\/.\+$+
" use <tab> for trigger completion and navigate to the next complete item
function! s:check_back_space() abort
let col = col('.') - 1
return !col || getline('.')[col - 1] =~ '\s'
endfunction
inoremap <silent><expr> <Tab>
\ pumvisible() ? "\<C-n>" :
\ <SID>check_back_space() ? "\<Tab>" :
\ coc#refresh()