mostly git stuff

master
Dustin Swan 3 years ago
parent 219022c60a
commit a0490a5843
Signed by: dustinswan
GPG Key ID: AB49BD6B2B3A6377

@ -4,8 +4,8 @@ let
secrets = import ./secrets.nix; secrets = import ./secrets.nix;
in in
{ {
home.packages = with pkgs; [ # deno home.packages = with pkgs; [ # pastel magic-wormhole
ripgrep fd wget nodejs yarn cargo mosh w3m nnn urlview gnupg hexyl httpie cacert catimg tealdeer du-dust duplicati bitwarden-cli rage sd bottom magic-wormhole eva glow restic tig gitui pastel spotify-tui manix weechat amfora ghc ocaml ripgrep fd wget nodejs yarn cargo mosh w3m nnn urlview gnupg hexyl httpie cacert catimg tealdeer du-dust duplicati bitwarden-cli rage sd eva glow restic tig gitui spotify-tui manix amfora ghc ocaml weechat deno duf procs
ispell aspell aspellDicts.en aspellDicts.en-computers aspellDicts.en-science aspellDicts.fr aspellDicts.de aspellDicts.eo aspellDicts.es ispell aspell aspellDicts.en aspellDicts.en-computers aspellDicts.en-science aspellDicts.fr aspellDicts.de aspellDicts.eo aspellDicts.es
]; ];
@ -59,6 +59,11 @@ in
enableZshIntegration = true; enableZshIntegration = true;
}; };
# programs.atuin = {
# enable = true;
# enableZshIntegration = true;
# };
programs.zsh = { programs.zsh = {
enable = true; enable = true;
enableAutosuggestions = true; enableAutosuggestions = true;
@ -145,8 +150,17 @@ in
vimdiffAlias = true; vimdiffAlias = true;
withNodeJs = true; withNodeJs = true;
withPython3 = true; withPython3 = true;
plugins = with pkgs.vimPlugins; [ coc = {
vim-repeat ale vim-snippets vim-signify vim-orgmode vim-devicons vim-startify vim-highlightedyank enable = true;
settings = ''
{
"tsserver.formatOnType": true,
"coc.preferences.formatOnType": true
}
'';
};
plugins = with pkgs.vimPlugins; [ # ale
vim-repeat vim-snippets vim-signify vim-orgmode vim-devicons vim-startify vim-highlightedyank
emmet-vim # <ctrl-y>, emmet-vim # <ctrl-y>,
vim-signature # marks in the gutter; mx (add), dmx (delete), m, (place next available), m. (next available if empty), m- (delete all on line), m<space> (delete all) vim-signature # marks in the gutter; mx (add), dmx (delete), m, (place next available), m. (next available if empty), m- (delete all on line), m<space> (delete all)
vim-expand-region # + / - to select increasingly larger / smaller regions∑ vim-expand-region # + / - to select increasingly larger / smaller regions∑
@ -158,7 +172,7 @@ in
splitjoin-vim # gS / gJ to turn single-line code into multi, etc. splitjoin-vim # gS / gJ to turn single-line code into multi, etc.
MatchTagAlways # highlights the matching & surrounding tags MatchTagAlways # highlights the matching & surrounding tags
vim-visual-multi # ctrl-n on word, n/N to select next/prev, [/] to switch cursors, q to skip, Q to remove current vim-visual-multi # ctrl-n on word, n/N to select next/prev, [/] to switch cursors, q to skip, Q to remove current
vim-endwise # automatically add end block keyword or symbol # vim-endwise # automatically add end block keyword or symbol
vim-fugitive # Git, Gdiff, Gblame, Gstatus, Gcommit vim-fugitive # Git, Gdiff, Gblame, Gstatus, Gcommit
vim-speeddating # ctrl-a & ctrl-x on dates vim-speeddating # ctrl-a & ctrl-x on dates
jdaddy-vim # cij: change inner json. gqaj: pretty print json jdaddy-vim # cij: change inner json. gqaj: pretty print json
@ -170,7 +184,14 @@ in
tabular # :Tabularize /, :Tabu (shortcut & guess the right thing) tabular # :Tabularize /, :Tabu (shortcut & guess the right thing)
vim-markdown # zr, zR, zm, zM, za, zA, zc, zC for folding vim-markdown # zr, zR, zm, zM, za, zA, zc, zC for folding
vim-gnupg vim-gnupg
vim-floaterm # <leader>T
undotree # <leader>u
vim-which-key
coc-nvim coc-css coc-html coc-eslint coc-tsserver coc-json coc-fzf coc-snippets coc-nvim coc-css coc-html coc-eslint coc-tsserver coc-json coc-fzf coc-snippets
{
plugin = chadtree; # nvim-tree-lua
config = "let g:chadtree_settings = { 'xdg': v:true }";
}
{ {
plugin = vim-easy-align; # gaip= -> align inner paragraph on first =, gaip*= -> align aroud all = plugin = vim-easy-align; # gaip= -> align inner paragraph on first =, gaip*= -> align aroud all =
config = '' config = ''
@ -186,14 +207,6 @@ in
plugin = nerdcommenter; # toggle: <leader>c<space>, comment: <leader>cc plugin = nerdcommenter; # toggle: <leader>c<space>, comment: <leader>cc
config = "let g:NERDSpaceDelims = 1"; config = "let g:NERDSpaceDelims = 1";
} }
{
plugin = vim-floaterm;
config = "nnoremap <silent> <leader>T :FloatermNew<CR>";
}
{
plugin = vim-which-key;
config = "nnoremap <silent> <leader> :WhichKey '<Space>'<CR>";
}
{ {
plugin = vim-airline; plugin = vim-airline;
config = '' config = ''
@ -211,10 +224,6 @@ in
let g:nord_underline = 1 let g:nord_underline = 1
''; '';
} }
{
plugin = undotree;
config = "nnoremap <leader>u :UndotreeToggle<cr>";
}
]; ];
extraConfig = '' extraConfig = ''
" set expandtab " insert spaces when tab is pressed " set expandtab " insert spaces when tab is pressed
@ -232,11 +241,52 @@ in
let mapleader="\<Space>" let mapleader="\<Space>"
let maplocalleader="\\" let maplocalleader="\\"
let g:coc_snippet_next = '<tab>'
let g:coc_snippet_prev = '<S-Tab>'
let g:org_indent = 1 let g:org_indent = 1
nnoremap <silent> <leader> :WhichKey '<Space>'<CR>
nnoremap <silent> <leader>t :CHADopen<CR>
nnoremap <silent> <leader>T :FloatermNew<CR>
nnoremap <silent> <leader>u :UndotreeToggle<cr>
" let g:coc_snippet_next = '<tab>'
" let g:coc_snippet_prev = '<S-Tab>'
" CoC
" Use tab for trigger completion with characters ahead and navigate.
inoremap <silent><expr> <TAB> pumvisible() ? "\<C-n>" : <SID>check_back_space() ? "\<TAB>" : coc#refresh()
inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>"
" Make <CR> auto-select the first completion item and notify coc.nvim to
" format on enter, <cr> could be remapped by other vim plugin
inoremap <silent><expr> <CR> pumvisible() ? coc#_select_confirm() : "\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>"
function! s:check_back_space() abort
let col = col('.') - 1
return !col || getline('.')[col - 1] =~# '\s'
endfunction
" GoTo code navigation.
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)
" Use K to show documentation in preview window.
nnoremap <silent> K :call <SID>show_documentation()<CR>
function! s:show_documentation()
if (index(['vim','help'], &filetype) >= 0)
execute 'h '.expand('<cword>')
elseif (coc#rpc#ready())
call CocActionAsync('doHover')
else
execute '!' . &keywordprg . " " . expand('<cword>')
endif
endfunction
" Highlight the symbol and its references when holding the cursor.
autocmd CursorHold * silent call CocActionAsync('highlight')
nnoremap <silent><leader>/ :noh<cr> nnoremap <silent><leader>/ :noh<cr>
nnoremap <leader>v <c-w>v<c-w>l nnoremap <leader>v <c-w>v<c-w>l
nnoremap <leader>s <c-w>s<c-w>j nnoremap <leader>s <c-w>s<c-w>j
@ -276,6 +326,7 @@ in
programs.mpv.enable = true; programs.mpv.enable = true;
programs.jq.enable = true; programs.jq.enable = true;
programs.noti.enable = true; programs.noti.enable = true;
programs.bottom.enable = true;
programs.keychain = { programs.keychain = {
enable = true; enable = true;
@ -287,11 +338,18 @@ in
programs.newsboat = { programs.newsboat = {
enable = true; enable = true;
# extraConfig = ''
# urls-source "ttrss"
# ttrss-url "https://tt-rss.dustinswan.com/"
# ttrss-login "dustinswan"
# ttrss-passwordeval "gpg -dq ~/.dustinswan@tt-rss.dustinswan.com.gpg"
# '';
extraConfig = '' extraConfig = ''
urls-source "ttrss" urls-source "inoreader"
ttrss-url "https://tt-rss.dustinswan.com/" inoreader-app-id "999997602"
ttrss-login "dustinswan" inoreader-app-key "INSERT_KEY_HERE"
ttrss-passwordeval "gpg -dq ~/.dustinswan@tt-rss.dustinswan.com.gpg" inoreader-login "dustin@dustinswan.com"
inoreader-passwordeval "gpg --decrypt ~/.inoreader-password.gpg"
''; '';
}; };
} }

Loading…
Cancel
Save