This commit is contained in:
Tobias Reisinger 2021-02-13 23:44:03 +01:00
parent 73fa26e596
commit e9e17ac035
3 changed files with 37 additions and 2 deletions

View file

@ -3,3 +3,8 @@ config.load_autoconfig(False)
c.tabs.show = 'never' c.tabs.show = 'never'
c.statusbar.show = 'never' c.statusbar.show = 'never'
c.auto_save.session = False c.auto_save.session = False
c.url.start_pages = ['https://rustplatz.live/']
config.bind('<Ctrl-Tab>', 'tab-next')
config.bind('<Ctrl-Shift-Tab>', 'tab-prev')

View file

@ -25,9 +25,10 @@ config.bind(',B', 'hint links spawn brave {hint-url}')
config.bind(',j', 'spawn --userscript format_json') config.bind(',j', 'spawn --userscript format_json')
config.bind(',s', 'spawn steam steam://openurl/{url}') config.bind(',g', 'open {url:scheme}://github1s.com{url:path}{url:query}')
config.bind(',rr', 'open {url:scheme}://removeddit.com{url:path}{url:query}') config.bind(',rr', 'open {url:scheme}://removeddit.com{url:path}{url:query}')
config.bind(',rt', 'open {url:scheme}://reddit.tube{url:path}{url:query}') config.bind(',rt', 'open {url:scheme}://reddit.tube{url:path}{url:query}')
config.bind(',s', 'spawn steam steam://openurl/{url}')
PASS_SCRIPT_DEFAULT = 'spawn --userscript qute-pass --no-insert-mode --username-target secret --username-pattern "login: (.+)" ' PASS_SCRIPT_DEFAULT = 'spawn --userscript qute-pass --no-insert-mode --username-target secret --username-pattern "login: (.+)" '
config.bind(',p', PASS_SCRIPT_DEFAULT) config.bind(',p', PASS_SCRIPT_DEFAULT)

View file

@ -1,5 +1,12 @@
set runtimepath+=~/.config/vim,~/.config/vim/after set runtimepath+=~/.config/vim,~/.config/vim/after
if has('nvim')
" Neovim specific commands
set viminfo+=n~/.cache/nviminfo
else
" Standard vim specific commands
set viminfo+=n~/.cache/viminfo set viminfo+=n~/.cache/viminfo
endif
" Plug plugins using VimPlug " Plug plugins using VimPlug
call plug#begin('~/.config/vim/plugged') call plug#begin('~/.config/vim/plugged')
@ -20,6 +27,8 @@ call plug#begin('~/.config/vim/plugged')
Plug 'lervag/vimtex' Plug 'lervag/vimtex'
Plug 'fatih/vim-go' Plug 'fatih/vim-go'
Plug 'machakann/vim-swap' Plug 'machakann/vim-swap'
Plug 'tpope/vim-sleuth'
Plug 'neoclide/coc.nvim', { 'branch': 'release' }
call plug#end() call plug#end()
packadd termdebug packadd termdebug
@ -138,3 +147,23 @@ let g:tex_flavor = 'latex'
let g:vimtex_compiler_latexmk = { let g:vimtex_compiler_latexmk = {
\ 'build_dir': 'latexmk_output' \ 'build_dir': 'latexmk_output'
\} \}
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
inoremap <silent><expr> <C-space> coc#refresh()
"GoTo code navigation
nmap <leader>g <C-o>
nmap <silent> gd <Plug>(coc-definition)
nmap <silent> gt <Plug>(coc-type-definition)
nmap <silent> gi <Plug>(coc-implementation)
nmap <silent> gr <Plug>(coc-references)
nmap <leader>rn <Plug>(coc-rename)
"show all diagnostics.
nnoremap <silent> <leader>d :<C-u>CocList diagnostics<cr>
"manage extensions.
nnoremap <silent> <leader>e :<C-u>CocList extensions<cr>