mirror of
https://github.com/arnaucube/configs.git
synced 2026-02-10 04:26:41 +01:00
backup nixos config, nvim: add gitlink-vim
add also a script to copy the nixos config files to the repo
This commit is contained in:
11
init.vim
11
init.vim
@@ -35,6 +35,8 @@ Plug 'luochen1990/rainbow'
|
||||
|
||||
" git
|
||||
Plug 'tpope/vim-fugitive'
|
||||
" gitlink
|
||||
Plug 'mazubieta/gitlink-vim'
|
||||
|
||||
" go
|
||||
Plug 'fatih/vim-go' " Amazing combination of features.
|
||||
@@ -227,6 +229,15 @@ syntax enable
|
||||
" viewer method:
|
||||
let g:vimtex_view_method = 'zathura'
|
||||
|
||||
"" gitlink
|
||||
function! CopyGitLink(...) range
|
||||
redir @+
|
||||
silent echo gitlink#GitLink(get(a:, 1, 0))
|
||||
redir END
|
||||
endfunction
|
||||
nmap <leader>gl :call CopyGitLink()<CR>
|
||||
vmap <leader>gl :call CopyGitLink(1)<CR>
|
||||
|
||||
"" sage syntax
|
||||
augroup filetypedetect
|
||||
au! BufRead,BufNewFile *.sage,*.spyx,*.pyx setfiletype python
|
||||
|
||||
Reference in New Issue
Block a user