Last active
August 14, 2021 02:07
-
-
Save furrycatherder/0457bfc1b2461b107f7c50a362e90977 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
call plug#begin('~/.config/nvim/plug') | |
" style plugins | |
Plug 'vim-airline/vim-airline' | |
Plug 'vim-airline/vim-airline-themes' | |
Plug 'xero/sourcerer.vim' | |
Plug 'folke/tokyonight.nvim' | |
Plug 'deviantfero/wpgtk.vim' | |
" editor plugins | |
Plug 'tpope/vim-vinegar' | |
Plug 'tpope/vim-fugitive' | |
Plug 'mhinz/vim-startify' | |
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } | |
Plug 'junegunn/fzf.vim' | |
Plug 'editorconfig/editorconfig-vim' | |
Plug 'airblade/vim-gitgutter' | |
Plug 'iamcco/markdown-preview.nvim', { 'do': { -> mkdp#util#install() }, 'for': ['markdown', 'vim-plug'] } | |
" language plugins | |
Plug 'neoclide/coc.nvim', {'branch': 'release'} | |
Plug 'sheerun/vim-polyglot' | |
Plug 'jackguo380/vim-lsp-cxx-highlight' | |
" Plug 'LnL7/vim-nix' | |
Plug 'kergoth/vim-bitbake' | |
Plug 'cespare/vim-toml' | |
call plug#end() | |
set mouse=a | |
set termguicolors | |
set updatetime=300 | |
set title | |
set expandtab shiftwidth=4 tabstop=4 | |
colorscheme sourcerer | |
let g:airline_theme = 'term' | |
let g:airline_powerline_fonts = 0 | |
let g:airline#extensions#tabline#enabled = 0 | |
" Remap keys for gotos | |
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 <silent> gl :CocList outline<CR> | |
nmap <silent> <C-j> <Plug>(coc-diagnostic-next) | |
nmap <silent> <C-k> <Plug>(coc-diagnostic-prev) | |
" Highlight symbol under cursor on CursorHold | |
autocmd CursorHold * silent call CocActionAsync('highlight') | |
" Remap for rename current word | |
nmap <leader>rn <Plug>(coc-rename) | |
" Remap for format selected region | |
xmap <silent> <leader>f <Plug>(coc-format-selected) | |
nmap <silent> <leader>f <Plug>(coc-format-selected) | |
" Use <C-l> for trigger snippet expand | |
imap <C-l> <Plug>(coc-snippets-expand) | |
inoremap <expr> <cr> pumvisible() ? "\<C-y>" : "\<C-g>u\<CR>" | |
nmap <silent> <C-p> :Files %:p:h<CR> | |
autocmd User CocJumpPlaceholder call CocActionAsync('showSignatureHelp') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment