mirror of
https://github.com/mentos1386/dotfiles.git
synced 2024-11-29 02:21:17 +00:00
feat: code signing etc
This commit is contained in:
parent
92bde3bcde
commit
51726d4b59
4 changed files with 18 additions and 7 deletions
|
@ -1,10 +1,10 @@
|
||||||
[user]
|
[user]
|
||||||
name = Tine Jozelj
|
name = Tine Jozelj
|
||||||
email = tine@tjo.space
|
email = tine@tjo.space
|
||||||
#signingkey = 3818B74E3830D7CF
|
signingkey = ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICXAlzwziqfUUb2qmFwNF/nrBYc5MNT1MMOx81ohBmB+
|
||||||
|
|
||||||
[commit]
|
[commit]
|
||||||
#gpgsign = true
|
gpgsign = true
|
||||||
|
|
||||||
[init]
|
[init]
|
||||||
defaultBranch = main
|
defaultBranch = main
|
||||||
|
@ -20,3 +20,9 @@
|
||||||
|
|
||||||
[pull]
|
[pull]
|
||||||
ff = only
|
ff = only
|
||||||
|
|
||||||
|
[gpg]
|
||||||
|
format = ssh
|
||||||
|
|
||||||
|
[gpg "ssh"]
|
||||||
|
allowedSignersFile = /home/tine/.ssh/allowed_signers
|
||||||
|
|
|
@ -30,7 +30,8 @@
|
||||||
"graphql",
|
"graphql",
|
||||||
"prisma",
|
"prisma",
|
||||||
"terraform",
|
"terraform",
|
||||||
"jsonc"
|
"jsonc",
|
||||||
|
"rust"
|
||||||
],
|
],
|
||||||
"tsserver.formatOnType": true,
|
"tsserver.formatOnType": true,
|
||||||
"coc.preferences.formatOnType": true,
|
"coc.preferences.formatOnType": true,
|
||||||
|
|
|
@ -50,6 +50,7 @@ let g:coc_global_extensions = [
|
||||||
\ 'coc-html',
|
\ 'coc-html',
|
||||||
\ 'coc-sql',
|
\ 'coc-sql',
|
||||||
\ 'coc-toml',
|
\ 'coc-toml',
|
||||||
|
\ 'coc-rust-analyzer',
|
||||||
\ ]
|
\ ]
|
||||||
if isdirectory('./node_modules') && isdirectory('./node_modules/prettier')
|
if isdirectory('./node_modules') && isdirectory('./node_modules/prettier')
|
||||||
let g:coc_global_extensions += ['coc-prettier']
|
let g:coc_global_extensions += ['coc-prettier']
|
||||||
|
@ -63,10 +64,12 @@ endif
|
||||||
inoremap <silent><expr> <CR> coc#pum#visible() ? coc#pum#confirm()
|
inoremap <silent><expr> <CR> coc#pum#visible() ? coc#pum#confirm()
|
||||||
\: "\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>"
|
\: "\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>"
|
||||||
|
|
||||||
|
" Find symbol of current document.
|
||||||
|
nnoremap <silent><nowait> <space>o :<C-u>CocList outline<cr>
|
||||||
" Diagnostic list
|
" Diagnostic list
|
||||||
nnoremap <silent> <space>d :<C-u>CocList diagnostics<cr>
|
nnoremap <silent><nowait> <space>d :<C-u>CocList diagnostics<cr>
|
||||||
" Symbols list
|
" Symbols list
|
||||||
nnoremap <silent> <space>s :<C-u>CocList -I symbols<cr>
|
nnoremap <silent><nowait> <space>s :<C-u>CocList -I symbols<cr>
|
||||||
" Code actions
|
" Code actions
|
||||||
nmap <leader>do <Plug>(coc-codeaction)
|
nmap <leader>do <Plug>(coc-codeaction)
|
||||||
" Rename current world
|
" Rename current world
|
||||||
|
@ -140,7 +143,8 @@ require'nvim-treesitter.configs'.setup {
|
||||||
"rust",
|
"rust",
|
||||||
"typescript",
|
"typescript",
|
||||||
"vim",
|
"vim",
|
||||||
"yaml"
|
"yaml",
|
||||||
|
"glsl"
|
||||||
},
|
},
|
||||||
-- Install languages synchronously (only applied to `ensure_installed`)
|
-- Install languages synchronously (only applied to `ensure_installed`)
|
||||||
sync_install = false,
|
sync_install = false,
|
||||||
|
|
|
@ -42,7 +42,7 @@ bindkey -M vicmd "?" history-incremental-search-backward
|
||||||
bindkey -M vicmd "/" history-incremental-search-forward
|
bindkey -M vicmd "/" history-incremental-search-forward
|
||||||
|
|
||||||
# Aliases
|
# Aliases
|
||||||
alias gicm="git checkout main && git pull"
|
alias gicm="git checkout main && git pull || git checkout master && git pull"
|
||||||
alias gic="git checkout"
|
alias gic="git checkout"
|
||||||
|
|
||||||
alias difft="difftastic"
|
alias difft="difftastic"
|
||||||
|
|
Loading…
Reference in a new issue