Compare commits

...

3 Commits

Author SHA1 Message Date
083aa183eb
clipedit.sh: use -c in st invocation 2023-06-12 14:54:54 -04:00
2e2d8ab300
nvim: add trouble plugin 2023-06-10 13:46:16 -04:00
ed92d2b650
ledgerrc: added default commodity 2023-06-10 13:45:40 -04:00
4 changed files with 29 additions and 1 deletions

View File

@ -4,3 +4,6 @@ commodity $
format $1,000.00
nomarket
default
# show everything in dollars
--exchange $

View File

@ -23,3 +23,12 @@ source $XDG_CONFIG_HOME/nvim/vimspector.vim
" bracket closing
Plug 'jiangmiao/auto-pairs'
let g:AutoPairsShortcutToggle = "@@"
" improved error list
Plug 'folke/trouble.nvim'
nnoremap <leader>dxx <cmd>TroubleToggle<cr>
nnoremap <leader>dxw <cmd>TroubleToggle workspace_diagnostics<cr>
nnoremap <leader>dxd <cmd>TroubleToggle document_diagnostics<cr>
nnoremap <leader>dxq <cmd>TroubleToggle quickfix<cr>
nnoremap <leader>dxl <cmd>TroubleToggle loclist<cr>
nnoremap gR <cmd>TroubleToggle lsp_references<cr>

View File

@ -126,3 +126,19 @@ cmp.setup({
{ name = 'buffer' },
})
})
-- improved error list
require('trouble').setup({
icons = false,
fold_open = "v", -- icon used for open folds
fold_closed = ">", -- icon used for closed folds
indent_lines = false, -- add an indent guide below the fold icons
signs = {
-- icons / text used for a diagnostic
error = "error",
warning = "warn",
hint = "hint",
information = "info"
},
use_diagnostic_signs = false -- enabling this will use the signs defined in your lsp client
})

View File

@ -4,7 +4,7 @@
TMPFILE="$(mktemp)"
#xsel -b > "$TMPFILE"
st -g 60x8+0+800 -n popup-bottom-center \
st -g 60x8+0+800 -c popup-bottom-center \
-e nvim -c "set binary noeol" -c "startinsert" "$TMPFILE" -c "highlight Normal ctermbg=016"
cat "$TMPFILE" | xsel -ib
rm "$TMPFILE"