|
|
|
@ -7,7 +7,7 @@ set incsearch
|
|
|
|
|
set relativenumber
|
|
|
|
|
set number
|
|
|
|
|
set encoding=utf-8
|
|
|
|
|
set colorcolumn=80
|
|
|
|
|
set colorcolumn=81
|
|
|
|
|
highlight ColorColumn ctermbg=lightgrey guibg=lightgrey
|
|
|
|
|
|
|
|
|
|
set noswapfile
|
|
|
|
@ -18,6 +18,8 @@ set undofile
|
|
|
|
|
"Tabbing
|
|
|
|
|
set autoindent tabstop=4 shiftwidth=4
|
|
|
|
|
|
|
|
|
|
"File specific
|
|
|
|
|
|
|
|
|
|
"**************************
|
|
|
|
|
"Commands
|
|
|
|
|
|
|
|
|
@ -39,18 +41,9 @@ nnoremap <Leader>fs :w<cr>
|
|
|
|
|
nnoremap <Leader>fer :source ~/.config/nvim/init.vim<cr>
|
|
|
|
|
nnoremap <Leader>r :<C-u>registers<CR>:normal! "p<Left>
|
|
|
|
|
nnoremap <Leader>p :set paste!<cr>
|
|
|
|
|
|
|
|
|
|
nnoremap <Leader>c "+
|
|
|
|
|
vnoremap <Leader>c "+
|
|
|
|
|
|
|
|
|
|
"Plugins
|
|
|
|
|
|
|
|
|
|
"Telescope
|
|
|
|
|
nnoremap <leader>ff <cmd>Telescope find_files<cr>
|
|
|
|
|
nnoremap <leader>fg <cmd>Telescope live_grep<cr>
|
|
|
|
|
nnoremap <leader>fb <cmd>Telescope buffers<cr>
|
|
|
|
|
nnoremap <leader>fh <cmd>Telescope help_tags<cr>
|
|
|
|
|
|
|
|
|
|
"**************************
|
|
|
|
|
" Bracket completion
|
|
|
|
|
|
|
|
|
@ -73,12 +66,32 @@ Plug 'tpope/vim-commentary'
|
|
|
|
|
Plug 'tpope/vim-fugitive'
|
|
|
|
|
Plug 'jonsmithers/vim-html-template-literals', { 'branch': 'dev' }
|
|
|
|
|
Plug 'godlygeek/tabular'
|
|
|
|
|
"Plug 'neoclide/coc.nvim', { 'branch': 'release' }
|
|
|
|
|
Plug 'plasticboy/vim-markdown'
|
|
|
|
|
Plug 'yuezk/vim-js'
|
|
|
|
|
Plug 'fatih/vim-go'
|
|
|
|
|
" Plug 'ctrlpvim/ctrlp.vim'
|
|
|
|
|
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
|
|
|
|
|
Plug 'neoclide/coc.nvim', { 'branch': 'release' }
|
|
|
|
|
Plug 'nvim-lua/plenary.nvim'
|
|
|
|
|
Plug 'nvim-telescope/telescope.nvim'
|
|
|
|
|
call plug#end()
|
|
|
|
|
|
|
|
|
|
"**************************
|
|
|
|
|
" Plugin Configs
|
|
|
|
|
|
|
|
|
|
"Telescope
|
|
|
|
|
nnoremap <leader>ff <cmd>Telescope find_files<cr>
|
|
|
|
|
nnoremap <leader>fg <cmd>Telescope live_grep<cr>
|
|
|
|
|
nnoremap <leader>fb <cmd>Telescope buffers<cr>
|
|
|
|
|
nnoremap <leader>fh <cmd>Telescope help_tags<cr>
|
|
|
|
|
|
|
|
|
|
"Markdown
|
|
|
|
|
autocmd FileType markdown set colorcolumn=
|
|
|
|
|
|
|
|
|
|
"**************************
|
|
|
|
|
" COC
|
|
|
|
|
nmap <silent> gd <Plug>(coc-definition)
|
|
|
|
|
nmap <silent> gy <Plug>(coc-type-definition)
|
|
|
|
|
nmap <silent> gi <Plug>(coc-implementation)
|
|
|
|
|
nmap <silent> gr <Plug>(coc-references)
|
|
|
|
|
nmap <Leader>rn <Plug>(coc-rename)
|
|
|
|
|
|
|
|
|
|
autocmd BufWritePre *.go :silent call CocAction('runCommand', 'editor.action.organizeImport')
|
|
|
|
|