Cuando no puedo dormir, retoco mi configuración.
Bueno, hice varios cambios a una serie de cosas, pero en general todo sigue funcionando de la misma manera. Neovim: saque un par de plugins en esa batalla eterna por usar menos de ellos y mas maneras nativas de hacer las cosas, esto trajo aparejado que algunos archivos no existen mas. Tambien logre reducir algunos un poco, y reacomodar ciertas cosas, como el statusline y algunas configuraciones especificas de archivos. Igual ya se me ocurrieron un par de ideas para cambiar un par de cuestiones mas, que seguro estaran en el proximo commit. Neomutt: Varios cambios a la configuracion general para una mejor experiencia y uso. Tambien hubo cambios por cuenta pero eso creo que va a quedar en un repo privado en algun momento. Git: mejor integracion con otras herramientas como delta y fzf. Scripts: Ediciones de estilo mas que nada. Y como siempre modificaciones pequeñas aqui y alla.
This commit is contained in:
parent
bde35e4033
commit
dc1ca55fdf
|
@ -15,15 +15,15 @@ scrolling:
|
||||||
# Font configuration
|
# Font configuration
|
||||||
font:
|
font:
|
||||||
normal:
|
normal:
|
||||||
family: PragmataPro Mono Liga
|
family: PragmataPro Mono
|
||||||
style: Regular
|
style: Regular
|
||||||
|
|
||||||
italic:
|
italic:
|
||||||
family: PragmataPro Mono Liga
|
family: PragmataPro Mono
|
||||||
style: Italic
|
style: Italic
|
||||||
|
|
||||||
bold:
|
bold:
|
||||||
family: PragmataPro Mono Liga
|
family: PragmataPro Mono
|
||||||
style: Bold
|
style: Bold
|
||||||
|
|
||||||
# Point size
|
# Point size
|
||||||
|
|
|
@ -2,4 +2,4 @@
|
||||||
--italic-text=always
|
--italic-text=always
|
||||||
--style="numbers,changes,header"
|
--style="numbers,changes,header"
|
||||||
--color=always
|
--color=always
|
||||||
--terminal-width=-10
|
--terminal-width=120
|
||||||
|
|
|
@ -2,14 +2,8 @@
|
||||||
|
|
||||||
bspmonis &
|
bspmonis &
|
||||||
|
|
||||||
bspc rule -r "*"
|
|
||||||
|
|
||||||
bspc config border_width 2
|
bspc config border_width 2
|
||||||
bspc config window_gap 6
|
bspc config window_gap 6
|
||||||
bspc config top_padding 3
|
|
||||||
bspc config left_padding 0
|
|
||||||
bspc config right_padding 0
|
|
||||||
bspc config bottom_padding 23
|
|
||||||
bspc config split_ratio 0.5
|
bspc config split_ratio 0.5
|
||||||
|
|
||||||
# Opciones
|
# Opciones
|
||||||
|
@ -17,8 +11,6 @@ bspc config gapless_monocle true
|
||||||
bspc config ignore_ewmh_focus true
|
bspc config ignore_ewmh_focus true
|
||||||
bspc config pointer_follows_focus true
|
bspc config pointer_follows_focus true
|
||||||
bspc config removal_adjustment true
|
bspc config removal_adjustment true
|
||||||
bspc config remove_unplugged_monitors false
|
|
||||||
bspc config remove_disabled_monitors false
|
|
||||||
bspc config honor_size_hints false
|
bspc config honor_size_hints false
|
||||||
bspc config directional_focus_tightness low
|
bspc config directional_focus_tightness low
|
||||||
bspc config automatic_scheme longest_side
|
bspc config automatic_scheme longest_side
|
||||||
|
@ -45,7 +37,7 @@ bspc rule -a QjackCtl state=floating
|
||||||
bspc rule -a mpv state=floating
|
bspc rule -a mpv state=floating
|
||||||
bspc rule -a Alacritty:flota state=floating
|
bspc rule -a Alacritty:flota state=floating
|
||||||
bspc rule -a Sxiv:flota state=floating
|
bspc rule -a Sxiv:flota state=floating
|
||||||
bspc rule -a Firefox state=floating
|
bspc rule -a Firefox:Browser state=floating
|
||||||
bspc rule -a Zathura state=tiled
|
bspc rule -a Zathura state=tiled
|
||||||
bspc rule -a gzdoom state=fullscreen
|
bspc rule -a gzdoom state=fullscreen
|
||||||
|
|
||||||
|
|
|
@ -92,13 +92,4 @@
|
||||||
foreground = "#e0d0c3"
|
foreground = "#e0d0c3"
|
||||||
frame_color = "#e53935"
|
frame_color = "#e53935"
|
||||||
timeout = 60
|
timeout = 60
|
||||||
|
|
||||||
[mail]
|
|
||||||
appname = neomutt
|
|
||||||
new_icon = "/home/deadguy/img/.icn/correo.png"
|
|
||||||
|
|
||||||
[rss]
|
|
||||||
appname = newsboat
|
|
||||||
new_icon = "/home/deadguy/img/.icn/rss.png"
|
|
||||||
|
|
||||||
# vim: ft=cfg
|
# vim: ft=cfg
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
<alias>
|
<alias>
|
||||||
<family>monospace</family>
|
<family>monospace</family>
|
||||||
<prefer>
|
<prefer>
|
||||||
<family>NotoSansMono Nerd Font</family>
|
<family>PragmataPro Mono</family>
|
||||||
<family>Noto Color Emoji</family>
|
<family>Noto Color Emoji</family>
|
||||||
</prefer>
|
</prefer>
|
||||||
</alias>
|
</alias>
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
[alias]
|
[alias]
|
||||||
st = status
|
st = status
|
||||||
|
co = checkout
|
||||||
fx = commit --fixup=HEAD
|
fx = commit --fixup=HEAD
|
||||||
ci = commit -v
|
ci = commit -v
|
||||||
cm = commit -m
|
cm = commit -m
|
||||||
|
@ -9,8 +10,9 @@
|
||||||
amend = commit --amend -v
|
amend = commit --amend -v
|
||||||
full = show --format=fuller
|
full = show --format=fuller
|
||||||
noed = commit --amend --no-edit
|
noed = commit --amend --no-edit
|
||||||
tr = log --graph --date-order --date=short --pretty=format:'%C(cyan)%h %C(blue)%ar%C(auto)%d%C(yellow)%s%+b %C(black)%ae'
|
tr = log --graph --date-order --date=short --pretty=format:'%C(cyan)%h %C(blue)%ar%C(auto)%d %C(yellow)%s%+b %C(black)%ae'
|
||||||
fz = !sha=$( git -c color.ui=always log --oneline -n 1000 | fzf +s --no-multi --prompt 'Fixup> ' ) && git commit --fixup "${sha%% *}"
|
fz = !sha=$( git -c color.ui=always log --oneline -n 1000 | fzf +s --no-multi --prompt 'Fixup> ' ) && git commit --fixup "${sha%% *}"
|
||||||
|
fr = !sha=$( git -c color.ui=always log --oneline -n 1000 | fzf +s --no-multi --prompt 'Revert> ' ) && git revert "${sha%% *}"
|
||||||
wd = "!f() { git --paginate diff --dirstat=cumulative,files,0 ${1:-HEAD} | awk '{print $2}' | cut -d / -f1-${2:-4} | sort | uniq; }; f"
|
wd = "!f() { git --paginate diff --dirstat=cumulative,files,0 ${1:-HEAD} | awk '{print $2}' | cut -d / -f1-${2:-4} | sort | uniq; }; f"
|
||||||
|
|
||||||
[http]
|
[http]
|
||||||
|
@ -21,29 +23,60 @@
|
||||||
autocrlf = input
|
autocrlf = input
|
||||||
whitespace = warn
|
whitespace = warn
|
||||||
excludesfile = /home/deadguy/.config/git/gitignore
|
excludesfile = /home/deadguy/.config/git/gitignore
|
||||||
pager = delta
|
pager = "{ \
|
||||||
|
COLUMNS=$(tput cols); \
|
||||||
|
if [ $COLUMNS -ge 80 ] && [ -z $FZF_PREVIEW_COLUMNS ]; then \
|
||||||
|
delta --side-by-side -w $COLUMNS; \
|
||||||
|
elif [ $COLUMNS -ge 160 ] && [ ! -z $FZF_PREVIEW_COLUMNS ]; then \
|
||||||
|
delta --side-by-side -w $FZF_PREVIEW_COLUMNS; \
|
||||||
|
else \
|
||||||
|
delta; \
|
||||||
|
fi \
|
||||||
|
}"
|
||||||
|
|
||||||
[interactive]
|
[interactive]
|
||||||
diffFilter = delta --color-only
|
diffFilter = delta --color-only
|
||||||
|
|
||||||
[delta]
|
[delta]
|
||||||
features = side-by-side line-numbers decorations
|
side-by-side = false
|
||||||
syntax-theme = zenburn
|
line-numbers = true
|
||||||
plus-style = syntax "#003800"
|
syntax-theme = gruvbox
|
||||||
minus-style = syntax "#3f0001"
|
hunk-header-style = omit
|
||||||
whitespace-error-style = 22 reverse
|
file-style = blue
|
||||||
|
file-decoration-style = blue ul ol
|
||||||
|
zero-style = dim syntax
|
||||||
|
minus-non-emph-style = dim red
|
||||||
|
minus-emph-style = bold red 52
|
||||||
|
minus-empty-line-marker-style = normal "#3f0001"
|
||||||
|
plus-non-emph-style = dim green
|
||||||
|
plus-emph-style = bold green 22
|
||||||
|
plus-empty-line-marker-style = normal "#002800"
|
||||||
|
whitespace-error-style = reverse white
|
||||||
|
file-added-label = [+]
|
||||||
|
file-copied-label = [C]
|
||||||
|
file-modified-label = [M]
|
||||||
|
file-removed-label = [-]
|
||||||
|
file-renamed-label = [R]
|
||||||
|
line-numbers-left-format = "{nm:>1} "
|
||||||
|
line-numbers-right-format = "{np:>1} "
|
||||||
|
line-numbers-minus-style = red italic
|
||||||
|
line-numbers-plus-style = green italic
|
||||||
|
|
||||||
[delta "decorations"]
|
[delta "flashy"]
|
||||||
commit-decoration-style = yellow ul ol
|
side-by-side = true
|
||||||
file-style = yellow ul
|
line-numbers = true
|
||||||
file-decoration-style = none
|
decorations = true
|
||||||
hunk-header-decoration-style = cyan box
|
syntax-theme = dracula
|
||||||
|
plus-style = syntax "#003800"
|
||||||
[delta "line-numbers"]
|
minus-style = syntax "#3f0001"
|
||||||
line-numbers-left-style = cyan
|
commit-decoration-style = bold yellow box ul
|
||||||
line-numbers-right-style = cyan
|
file-style = bold yellow ul
|
||||||
line-numbers-minus-style = 124
|
file-decoration-style = none
|
||||||
line-numbers-plus-style = 28
|
hunk-header-decoration-style = cyan box ul
|
||||||
|
line-numbers-left-style = cyan
|
||||||
|
line-numbers-right-style = cyan
|
||||||
|
line-numbers-minus-style = 124
|
||||||
|
line-numbers-plus-style = 28
|
||||||
|
|
||||||
[web]
|
[web]
|
||||||
browser = firefox
|
browser = firefox
|
||||||
|
|
|
@ -3,29 +3,32 @@ source neomuttrc.d/gpg.rc
|
||||||
source neomuttrc.d/bindings.neomuttrc
|
source neomuttrc.d/bindings.neomuttrc
|
||||||
source neomuttrc.d/colors.neomuttrc
|
source neomuttrc.d/colors.neomuttrc
|
||||||
source neomuttrc.d/powerline.neomuttrc
|
source neomuttrc.d/powerline.neomuttrc
|
||||||
|
source neomuttrc.d/news.neomuttrc
|
||||||
|
|
||||||
unset help
|
unset help
|
||||||
set mailcap_path = ~/.config/neomutt/mailcap
|
unset signature
|
||||||
set mime_type_query_command = "file --mime-type -b %s"
|
set mime_type_query_command = "file --mime-type -b %s"
|
||||||
|
set mailcap_path = ~/.config/neomutt/mailcap
|
||||||
set sort = threads
|
set sort = threads
|
||||||
set sort_aux = reverse-last-date-received
|
set sort_aux = reverse-last-date-received
|
||||||
set strict_threads
|
set strict_threads
|
||||||
set smtp_authenticators = 'gssapi:login'
|
set smtp_authenticators = 'gssapi:login'
|
||||||
set attribution = "En %{!%F a las %R}, %n escribió:"
|
set attribution = "En %{!%F a las %R}, %n escribió:"
|
||||||
set date_format = "%F %R"
|
set date_format = "%F %R"
|
||||||
set quote_regexp = "^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+"
|
set quote_regex = "^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+"
|
||||||
set reply_regexp = "^(([Rr][Ee]?(\[[0-9]+\])?: *)?(\[[^]]+\] *)?)*"
|
set reply_regex = "^(([Rr][Ee]?(\[[0-9]+\])?: *)?(\[[^]]+\] *)?)*"
|
||||||
set send_charset = "utf-8"
|
set send_charset = "utf-8"
|
||||||
set forward_format = "Fwd: %s" # Format of subject when forwarding
|
set forward_format = "Fwd: %s" # Format of subject when forwarding
|
||||||
|
set timeout = 2
|
||||||
set sleep_time = 0 # Pause 0 seconds for informational messages
|
set sleep_time = 0 # Pause 0 seconds for informational messages
|
||||||
set mail_check = 60 # To avoid lags using IMAP
|
set mail_check = 60 # To avoid lags using IMAP
|
||||||
set wrap = 100
|
set use_envelope_from = yes
|
||||||
|
set edit_headers = yes
|
||||||
set rfc2047_parameters = yes
|
set rfc2047_parameters = yes
|
||||||
set smart_wrap = yes
|
|
||||||
set reverse_realname = yes # Use any real name provided when replying
|
|
||||||
set mime_forward = yes # Attachments are forwarded with mail
|
set mime_forward = yes # Attachments are forwarded with mail
|
||||||
set auto_tag = yes # Automatically apply actions to all tagged messages
|
set auto_tag = yes # Automatically apply actions to all tagged messages
|
||||||
set delete = yes # Don't ask, do.
|
set delete = yes # Don't ask, do.
|
||||||
|
set edit_headers = yes # Allow editing fields
|
||||||
set sidebar_visible = no # Not needed
|
set sidebar_visible = no # Not needed
|
||||||
set markers = no # Disables the `+` displayed at line wraps
|
set markers = no # Disables the `+` displayed at line wraps
|
||||||
set mark_old = no # Unread mail stay unread until read
|
set mark_old = no # Unread mail stay unread until read
|
||||||
|
@ -35,14 +38,11 @@ set fast_reply # skip to compose when replying
|
||||||
set fcc_attach # save attachments with the body
|
set fcc_attach # save attachments with the body
|
||||||
set forward_quote # include message in forwards
|
set forward_quote # include message in forwards
|
||||||
set reverse_name # reply as whomever it was to
|
set reverse_name # reply as whomever it was to
|
||||||
set include # include message in replies
|
|
||||||
set menu_scroll # scroll in menus
|
set menu_scroll # scroll in menus
|
||||||
set autoedit
|
|
||||||
set edit_headers
|
|
||||||
set sort_re
|
|
||||||
set arrow_cursor
|
set arrow_cursor
|
||||||
|
set pipe_decode
|
||||||
|
|
||||||
set pager_index_lines = 13
|
set pager_index_lines = 10
|
||||||
set pager_context = 3
|
set pager_context = 3
|
||||||
set pager_stop
|
set pager_stop
|
||||||
|
|
||||||
|
@ -55,6 +55,9 @@ auto_view text/x-patch
|
||||||
auto_view application/ics
|
auto_view application/ics
|
||||||
auto_view application/pgp-encrypted
|
auto_view application/pgp-encrypted
|
||||||
|
|
||||||
|
set print_command = "nvim -R -c 'set ft=mail background=dark \
|
||||||
|
popt=header:0' -c 'ha' -c 'q' -"
|
||||||
|
|
||||||
# neomutt doesn't have this yet :(
|
# neomutt doesn't have this yet :(
|
||||||
# set editor = "carta.sh `echo $EDITOR`"
|
# set editor = "carta.sh `echo $EDITOR`"
|
||||||
# set background_edit = `[ -n "$TMUX" ] && echo 'yes' || echo 'no'`
|
# set background_edit = `[ -n "$TMUX" ] && echo 'yes' || echo 'no'`
|
||||||
|
@ -62,8 +65,8 @@ auto_view application/pgp-encrypted
|
||||||
# Header Options
|
# Header Options
|
||||||
ignore *
|
ignore *
|
||||||
unhdr_order *
|
unhdr_order *
|
||||||
unignore from subject to cc date x-mailer x-url user-agent
|
unignore from subject to cc bcc date x-mailer x-url user-agent
|
||||||
hdr_order date from to cc subject
|
hdr_order date from to cc bcc subject
|
||||||
|
|
||||||
# Warns if replying to multiple recipt email
|
# Warns if replying to multiple recipt email
|
||||||
reply-hook "~C 2" "set sleep_time=10\;echo 'Warning, original message has multiple recipients!'\;set sleep_time=1"
|
reply-hook "~C 2" "set sleep_time=10\;echo 'Warning, original message has multiple recipients!'\;set sleep_time=1"
|
||||||
|
|
|
@ -43,6 +43,20 @@ bind pager,attach h exit
|
||||||
bind index,pager,browser d half-down
|
bind index,pager,browser d half-down
|
||||||
bind index,pager,browser u half-up
|
bind index,pager,browser u half-up
|
||||||
|
|
||||||
|
# View an attachment in the GUI browser
|
||||||
|
macro attach \cv "\
|
||||||
|
<enter-command> set my_pipe_decode=\$pipe_decode pipe_decode<Enter>\
|
||||||
|
<pipe-message> attachview<Enter>\
|
||||||
|
<enter-command> set pipe_decode=\$my_pipe_decode; unset my_pipe_decode<Enter>" \
|
||||||
|
"Open attachment in GUI browser"
|
||||||
|
|
||||||
|
# twtxt
|
||||||
|
macro index,pager,attach,compose <esc>T "\
|
||||||
|
<enter-command> set my_pipe_decode=\$pipe_decode nopipe_decode<Enter>\
|
||||||
|
<pipe-message> twt-reply<Enter>\
|
||||||
|
<enter-command> set pipe_decode=\$my_pipe_decode; unset my_pipe_decode<Enter>" \
|
||||||
|
"Reply to current twt"
|
||||||
|
|
||||||
macro index \Cr "T~U<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" "mark all messages as read"
|
macro index \Cr "T~U<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" "mark all messages as read"
|
||||||
macro index O "<shell-escape>mbsync -c ~/.config/isync/mbsyncrc -a<enter>" "run mbsync to sync all mail"
|
macro index O "<shell-escape>mbsync -c ~/.config/isync/mbsyncrc -a<enter>" "run mbsync to sync all mail"
|
||||||
macro index \Cf "<enter-command>unset wait_key<enter><shell-escape>read -p 'Enter a search term to find with notmuch: ' x; echo \$x >~/.cache/mutt_terms<enter><limit>~i \"\`notmuch search --output=messages \$(cat ~/.cache/mutt_terms) | head -n 600 | perl -le '@a=<>;s/\^id:// for@a;$,=\"|\";print@a' | perl -le '@a=<>; chomp@a; s/\\+/\\\\+/ for@a;print@a' \`\"<enter>" "show only messages matching a notmuch pattern"
|
macro index \Cf "<enter-command>unset wait_key<enter><shell-escape>read -p 'Enter a search term to find with notmuch: ' x; echo \$x >~/.cache/mutt_terms<enter><limit>~i \"\`notmuch search --output=messages \$(cat ~/.cache/mutt_terms) | head -n 600 | perl -le '@a=<>;s/\^id:// for@a;$,=\"|\";print@a' | perl -le '@a=<>; chomp@a; s/\\+/\\\\+/ for@a;print@a' \`\"<enter>" "show only messages matching a notmuch pattern"
|
||||||
|
@ -51,8 +65,7 @@ macro index A "<limit>all\n" "show all messages (undo limit)"
|
||||||
macro browser h '<change-dir><kill-line>..<enter>' "Go to parent folder"
|
macro browser h '<change-dir><kill-line>..<enter>' "Go to parent folder"
|
||||||
|
|
||||||
macro index,pager <f1> '<sync-mailbox><enter-command>source /home/deadguy/.config/neomutt/accounts/6-dgy@fuckup.club.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to dgy@fuckup.club" # mw-autogenerated
|
macro index,pager <f1> '<sync-mailbox><enter-command>source /home/deadguy/.config/neomutt/accounts/6-dgy@fuckup.club.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to dgy@fuckup.club" # mw-autogenerated
|
||||||
macro index,pager <f2> '<sync-mailbox><enter-command>source ~/.config/neomutt/accounts/1-alex.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to vidaar@gmail.com"
|
macro index,pager <f2> '<sync-mailbox><enter-command>source ~/.config/neomutt/accounts/3-dgy@texto-plano.xyz.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to adeadgit@gmail.com"
|
||||||
macro index,pager <f3> '<sync-mailbox><enter-command>source ~/.config/neomutt/accounts/2-alejo.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to alejo.jardon@gmail.com"
|
macro index,pager <f3> '<sync-mailbox><enter-command>source ~/.config/neomutt/accounts/1-vidaar@gmail.com.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to vidaar@gmail.com"
|
||||||
macro index,pager <f4> '<sync-mailbox><enter-command>source ~/.config/neomutt/accounts/4-iamz@airmail.cc.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to iamz@airmail.cc"
|
macro index,pager <f4> '<sync-mailbox><enter-command>source ~/.config/neomutt/accounts/2-alejo.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to alejo.jardon@gmail.com"
|
||||||
macro index,pager <f5> '<sync-mailbox><enter-command>source ~/.config/neomutt/accounts/3-git.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to adeadgit@gmail.com"
|
macro index,pager <f5> '<sync-mailbox><enter-command>source ~/.config/neomutt/accounts/4-iamz@airmail.cc.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to iamz@airmail.cc"
|
||||||
macro index,pager a "<enter-command>set my_pipe_decode=\$pipe_decode pipe_decode<return><pipe-message>abook --add-email<return><enter-command>set pipe_decode=\$my_pipe_decode; unset my_pipe_decode<return>" "add the sender address to abook"
|
|
||||||
|
|
|
@ -2,28 +2,27 @@
|
||||||
|
|
||||||
# Powerline / nerdfont
|
# Powerline / nerdfont
|
||||||
# This is a bit "hackish" due to neomutt limitations
|
# This is a bit "hackish" due to neomutt limitations
|
||||||
#
|
|
||||||
# Author: Sheoak https://github.com/sheoak/neomutt-powerline-nerdfonts
|
# Author: Sheoak https://github.com/sheoak/neomutt-powerline-nerdfonts
|
||||||
|
# Modified by Deadguy
|
||||||
|
|
||||||
set index_format=" %zs %zc %zt %<[y?%<[m?%<[d?%[%R ]&%[%a %d]>&%[%b %d]>&%[%F ]> %-28.28L %?M?(%1M)& ? %?X?& ? %s"
|
set index_format=" %zs %zc %zt %<[y?%<[m?%<[d?%[%R ]&%[%a %d]>&%[%b %d]>&%[%F ]> %-28.28L %?K?%15.14K& ? %?M?(%1M)& ? %?X? & ? %s %> %?g?%g?"
|
||||||
|
|
||||||
set pager_format="\n %n %T %s%* %{!%F · %R} %?X? %X?%P \n \n"
|
set pager_format="\n%n %T %s%* %{!%F · %R} %?X? %X? %P\n \n"
|
||||||
set status_format = " %f %?r? %m ?%?n? %n ?%?d? %d ?%?t? %t ?%?F? %F ?%?p? %p? \n \n"
|
set status_format = " %f %?r? %m ?%?n? %n ?%?d? %d ?%?t? %t ?%?F? %F ?%?p? %p? %> %P\n \n"
|
||||||
set vfolder_format = " %N %?n?%3n& ? %8m · %f"
|
set vfolder_format = " %N %?n?%3n& ? %8m · %f"
|
||||||
set attach_format = "%u%D %T%-75.75d %?T?%& ? %5s · %m/%M"
|
set attach_format = "%u%D %T%-75.75d %?T?%& ? %5s · %m/%M"
|
||||||
|
|
||||||
# no addressed to me, to me, group, cc, sent by me, mailing list
|
# not addressed to me, to me, not only recipient, cc, sent by me, mailing list, reply-to
|
||||||
set to_chars=""
|
set to_chars=" "
|
||||||
# unchanged mailbox, changed, read only, attach mode
|
# unchanged mailbox, changed, read only, attach mode
|
||||||
set status_chars = " "
|
set status_chars = " "
|
||||||
ifdef crypt_chars set crypt_chars = " "
|
ifdef crypt_chars set crypt_chars = " "
|
||||||
set flag_chars = " "
|
set flag_chars = " "
|
||||||
|
|
||||||
set hidden_tags = "unread,draft,flagged,passed,replied,attachment,signed,encrypted"
|
tag-transforms "replied" " " \
|
||||||
tag-transforms "replied" "↻ " \
|
"encrytpted" " " \
|
||||||
"encrytpted" "" \
|
"signed" " " \
|
||||||
"signed" "" \
|
"attachment" " " \
|
||||||
"attachment" "" \
|
|
||||||
|
|
||||||
# The formats must start with 'G' and the entire sequence is case sensitive.
|
# The formats must start with 'G' and the entire sequence is case sensitive.
|
||||||
tag-formats "replied" "GR" \
|
tag-formats "replied" "GR" \
|
||||||
|
@ -38,8 +37,8 @@ color status color12 default '(\s)([a-zA-Z0-9])'
|
||||||
color status color12 default '( )'
|
color status color12 default '( )'
|
||||||
color status color12 default '(\S)'
|
color status color12 default '(\S)'
|
||||||
color status color0 default '(|)'
|
color status color0 default '(|)'
|
||||||
color status green default ''
|
color status green default ' '
|
||||||
color status white default ''
|
color status white default ' '
|
||||||
color status yellow default ''
|
color status yellow default ' '
|
||||||
color status red default ''
|
color status red default ' '
|
||||||
color tree color15 default
|
color tree color15 default
|
||||||
|
|
|
@ -78,6 +78,6 @@ save-path ~/.config/newsboat/saved
|
||||||
macro , open-in-browser
|
macro , open-in-browser
|
||||||
macro d set browser "ytdl"; open-in-browser ; set browser linkhandler
|
macro d set browser "ytdl"; open-in-browser ; set browser linkhandler
|
||||||
macro v set browser "setsid nohup mpv"; open-in-browser ; set browser linkhandler
|
macro v set browser "setsid nohup mpv"; open-in-browser ; set browser linkhandler
|
||||||
macro w set browser "tmux split-window -hp 60 && tmux send-keys '$lynx %u && tmux kill-pane\n'"; open-in-browser ; set browser linkhandler
|
macro w set browser "tmux split-window -hp 60 && tmux send-keys 'lynx %u && tmux kill-pane\n'"; open-in-browser ; set browser linkhandler
|
||||||
|
|
||||||
# vim: ft=conf cms=#%s
|
# vim: ft=conf cms=#%s
|
||||||
|
|
|
@ -3,14 +3,18 @@ setlocal shiftwidth=4
|
||||||
setlocal tabstop=4
|
setlocal tabstop=4
|
||||||
setlocal foldmethod=syntax
|
setlocal foldmethod=syntax
|
||||||
|
|
||||||
|
let g:go_textobj_include_function_doc = 1
|
||||||
let g:go_autodetect_gopath = 1
|
let g:go_autodetect_gopath = 1
|
||||||
let g:go_imports_autosave = 1
|
let g:go_imports_autosave = 1
|
||||||
let g:go_doc_popup_window = 1
|
let g:go_doc_popup_window = 1
|
||||||
let g:go_gopls_enabled = 1
|
let g:go_gopls_enabled = 1
|
||||||
|
let g:go_metalinter_autosave = 1
|
||||||
let g:go_fmt_command = "goimports"
|
let g:go_fmt_command = "goimports"
|
||||||
let g:go_list_type = "quickfix"
|
let g:go_list_type = "quickfix"
|
||||||
|
|
||||||
" Go syntax highlighting
|
" Go syntax highlighting
|
||||||
|
let g:go_highlight_types = 1
|
||||||
|
let g:go_highlight_build_constraints = 1
|
||||||
let g:go_highlight_fields = 1
|
let g:go_highlight_fields = 1
|
||||||
let g:go_highlight_functions = 1
|
let g:go_highlight_functions = 1
|
||||||
let g:go_highlight_function_calls = 1
|
let g:go_highlight_function_calls = 1
|
||||||
|
@ -23,14 +27,12 @@ let g:go_auto_type_info = 1
|
||||||
" Add the failing test name to the output of :GoTest
|
" Add the failing test name to the output of :GoTest
|
||||||
let g:go_test_show_name = 1
|
let g:go_test_show_name = 1
|
||||||
|
|
||||||
let b:ale_linters = ['gopls']
|
|
||||||
|
|
||||||
inoremap <buffer> . .<C-x><C-o>
|
inoremap <buffer> . .<C-x><C-o>
|
||||||
nmap <buffer><localleader>t :GoTest!<CR>
|
nmap <buffer><leader>t :GoTest!<CR>
|
||||||
nmap <buffer><localleader>v :GoVet!<CR>
|
nmap <buffer><leader>b :GoBuild!<CR>
|
||||||
nmap <buffer><localleader>b :GoBuild!<CR>
|
nmap <buffer><leader>i :GoInstall!<CR>
|
||||||
nmap <buffer><localleader>i :GoInstall!<CR>
|
nmap <buffer><leader>R :GoRun %<CR>
|
||||||
nmap <buffer><localleader>l :GoMetaLinter!<CR>
|
nmap <buffer><leader>x :GoDebugStart!<CR>
|
||||||
nmap <buffer><localleader>r :GoRun %<CR>
|
|
||||||
nmap <buffer><localleader>d :GoDebugStart!<CR>
|
|
||||||
nmap <buffer><leader>r :GoRun!<CR>
|
nmap <buffer><leader>r :GoRun!<CR>
|
||||||
|
nmap <buffer><leader>d :GoDoc<CR>
|
||||||
|
nmap <buffer><leader>D :GoDocBrowser<CR>
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
let b:ale_linters = ['prettier_standard']
|
|
||||||
let b:ale_fixers = ['prettier_standard']
|
|
||||||
setlocal path=.,**
|
setlocal path=.,**
|
||||||
setlocal path-=/usr/include
|
setlocal path-=/usr/include
|
||||||
setlocal suffixesadd+=.js
|
setlocal suffixesadd+=.js
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
let b:ale_linters = ['prettier']
|
|
||||||
let b:ale_fixers = ['prettier']
|
|
|
@ -1,2 +0,0 @@
|
||||||
let b:ale_linters = ['prettier_standard']
|
|
||||||
let b:ale_fixers = ['prettier_standard']
|
|
|
@ -2,10 +2,25 @@ setlocal nonumber norelativenumber laststatus=0 showmode
|
||||||
setlocal signcolumn=no textwidth=80 wrap sw=2
|
setlocal signcolumn=no textwidth=80 wrap sw=2
|
||||||
setlocal tabstop=2 noexpandtab softtabstop=0 linebreak
|
setlocal tabstop=2 noexpandtab softtabstop=0 linebreak
|
||||||
setlocal autoindent ruler colorcolumn=80
|
setlocal autoindent ruler colorcolumn=80
|
||||||
|
setlocal complete+=kspell
|
||||||
setlocal spell spelllang=es,en_us,cjk
|
setlocal spell spelllang=es,en_us,cjk
|
||||||
setlocal formatoptions&
|
setlocal formatoptions=1tqnw
|
||||||
setlocal formatoptions+=tqnw
|
setlocal comments=n:>
|
||||||
setlocal formatlistpat=^\\s*\\(\\d\\+\\\|[a-z]\\)[\\].)]\\s*
|
setlocal formatlistpat=^\\s* " Optional leading whitespace
|
||||||
|
setlocal formatlistpat+=[ " Start character class
|
||||||
|
setlocal formatlistpat+=\\[({]\\? " | Optionally match opening punctuation
|
||||||
|
setlocal formatlistpat+=\\( " | Start group
|
||||||
|
setlocal formatlistpat+=[0-9]\\+ " | | Numbers
|
||||||
|
setlocal formatlistpat+=\\\| " | | or
|
||||||
|
setlocal formatlistpat+=[a-zA-Z]\\+ " | | Letters
|
||||||
|
setlocal formatlistpat+=\\) " | End group
|
||||||
|
setlocal formatlistpat+=[\\]:.)} " | Closing punctuation
|
||||||
|
setlocal formatlistpat+=] " End character class
|
||||||
|
setlocal formatlistpat+=\\s\\+ " One or more spaces
|
||||||
|
setlocal formatlistpat+=\\\| " or
|
||||||
|
setlocal formatlistpat+=^\\s*[-+*]\\s\\+ " Bullet points
|
||||||
|
setlocal comments=b:*,b:-
|
||||||
|
setlocal commentstring=<!--%s-->
|
||||||
|
|
||||||
" Spellcheck
|
" Spellcheck
|
||||||
nnoremap <buffer> <silent> <F7> [s
|
nnoremap <buffer> <silent> <F7> [s
|
||||||
|
@ -24,6 +39,3 @@ inoremap <buffer> <silent> <C-d> <esc>:.s/\[\]/\[x\]<Enter>
|
||||||
" Markdown jump to next heading
|
" Markdown jump to next heading
|
||||||
nnoremap <buffer> <silent> ]] :<C-u>call <SID>dead#functions#JumpToNextHeading("down", v:count1)<CR>
|
nnoremap <buffer> <silent> ]] :<C-u>call <SID>dead#functions#JumpToNextHeading("down", v:count1)<CR>
|
||||||
nnoremap <buffer> <silent> [[ :<C-u>call <SID>dead#functions#JumpToNextHeading("up", v:count1)<CR>
|
nnoremap <buffer> <silent> [[ :<C-u>call <SID>dead#functions#JumpToNextHeading("up", v:count1)<CR>
|
||||||
|
|
||||||
let b:ale_linters = ['prettier']
|
|
||||||
let b:ale_fixers = ['prettier']
|
|
||||||
|
|
|
@ -3,8 +3,9 @@ setlocal nospell
|
||||||
setlocal nolist
|
setlocal nolist
|
||||||
|
|
||||||
" Close with q
|
" Close with q
|
||||||
nnoremap <buffer> q :<C-u>close<CR>
|
nnoremap <silent><buffer> q :<C-u>close<CR>
|
||||||
|
|
||||||
|
nnoremap <silent><buffer> dd :call qf#delitem()<Cr>
|
||||||
nnoremap <buffer><silent> <C-j> :<C-u>call <SID>older()<CR>
|
nnoremap <buffer><silent> <C-j> :<C-u>call <SID>older()<CR>
|
||||||
nnoremap <buffer><silent> <C-k> :<C-u>call <SID>newer()<CR>
|
nnoremap <buffer><silent> <C-k> :<C-u>call <SID>newer()<CR>
|
||||||
|
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
let b:ale_linters = ['stylelint']
|
|
||||||
let b:ale_fixers = ['stylelint']
|
|
|
@ -4,5 +4,12 @@ endif
|
||||||
|
|
||||||
let b:sh_indent_options['continuation-line'] = 2
|
let b:sh_indent_options['continuation-line'] = 2
|
||||||
|
|
||||||
let b:ale_linters = ['shellcheck']
|
" command! -buffer -bang Lint compiler shfmt | lmake<bang>
|
||||||
let b:ale_fixers = ['shfmt']
|
" command! -buffer -bang Compile compiler shellcheck | make<bang>
|
||||||
|
|
||||||
|
" augroup linty
|
||||||
|
" au! * <buffer>
|
||||||
|
" au BufWritePre <buffer=abuf> Lint
|
||||||
|
" au BufWritePost <buffer=abuf> :silent Compile
|
||||||
|
" au QuickFixCmdPost make cwindow
|
||||||
|
" augroup END
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
let b:ale_linters = ['tsserver', 'eslint']
|
|
||||||
let b:ale_linters = ['prettier_standard']
|
|
|
@ -1 +0,0 @@
|
||||||
" let b:ale_linters = ['vint']
|
|
|
@ -1 +0,0 @@
|
||||||
let b:ale_linters = ['prettier']
|
|
|
@ -1 +1,9 @@
|
||||||
setlocal shiftwidth=2
|
setlocal shiftwidth=2
|
||||||
|
|
||||||
|
command! -buffer -bang Compile compiler zsh | make<bang>
|
||||||
|
|
||||||
|
augroup linty
|
||||||
|
au! * <buffer>
|
||||||
|
au BufWritePost <buffer=abuf> Compile
|
||||||
|
au QuickFixCmdPost make cwindow
|
||||||
|
augroup END
|
||||||
|
|
|
@ -1,30 +1,26 @@
|
||||||
if exists('b:coc_enabled=1')
|
" if exists('b:coc_enabled=1')
|
||||||
set completeopt-=preview
|
set completeopt-=preview
|
||||||
|
|
||||||
nnoremap <silent><F6> :vsplit<CR><Bar>:CocConfig<CR>
|
nnoremap <silent><F6> :vsplit<CR><Bar>:CocConfig<CR>
|
||||||
|
|
||||||
let g:coc_global_extensions = ['coc-highlight', 'coc-snippets', 'coc-tsserver', 'coc-css', 'coc-html', 'coc-json', 'coc-emmet']
|
let g:coc_global_extensions = ['coc-diagnostic', 'coc-prettier', 'coc-highlight', 'coc-snippets', 'coc-tsserver', 'coc-css', 'coc-html', 'coc-json', 'coc-emmet']
|
||||||
|
|
||||||
inoremap <buffer><silent><expr> <TAB>
|
|
||||||
\ pumvisible() ? "\<C-n>" :
|
|
||||||
\ coc#expandableOrJumpable() ?
|
|
||||||
\ "\<C-r>=coc#rpc#request('doKeymap', ['snippets-expand-jump',''])\<CR>" :
|
|
||||||
\ <SID>check_back_space() ? "\<TAB>" :
|
|
||||||
\ coc#refresh()
|
|
||||||
|
|
||||||
function! s:check_back_space() abort
|
|
||||||
let col = col('.') - 1
|
|
||||||
return !col || getline('.')[col - 1] =~# '\s'
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
inoremap <buffer><silent><expr> <C-space> coc#refresh()
|
|
||||||
|
|
||||||
|
" Use <cr> to confirm completion, `<C-g>u` means break undo chain at current
|
||||||
|
" position. Coc only does snippet and additional edit on confirm.
|
||||||
if exists('*complete_info')
|
if exists('*complete_info')
|
||||||
inoremap <buffer><expr> <cr> complete_info()["selected"] != "-1" ? "\<C-y>" : "\<C-g>u\<CR>"
|
inoremap <expr> <cr> complete_info()["selected"] != "-1" ? "\<C-y>" : "\<C-g>u\<CR>"
|
||||||
else
|
else
|
||||||
inoremap <buffer><expr> <cr> pumvisible() ? "\<C-y>" : "\<C-g>u\<CR>"
|
imap <expr> <cr> pumvisible() ? "\<C-y>" : "\<C-g>u\<CR>"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
" use <c-@>for trigger completion
|
||||||
|
inoremap <silent><expr> <c-@> coc#refresh()
|
||||||
|
|
||||||
|
" Navigate diagnostics
|
||||||
|
nnoremap <silent> <F7> :<C-u>CocList diagnostics<CR>
|
||||||
|
nmap <silent> <F8> <Plug>(coc-diagnostic-prev)
|
||||||
|
nmap <silent> <F9> <Plug>(coc-diagnostic-next)
|
||||||
|
|
||||||
" GoTo code navigation.
|
" GoTo code navigation.
|
||||||
nnoremap <buffer><silent> gd <Plug>(coc-definition)
|
nnoremap <buffer><silent> gd <Plug>(coc-definition)
|
||||||
nnoremap <buffer><silent> gr <Plug>(coc-references)
|
nnoremap <buffer><silent> gr <Plug>(coc-references)
|
||||||
|
@ -44,18 +40,16 @@ if exists('b:coc_enabled=1')
|
||||||
nnoremap <buffer><leader>rn <Plug>(coc-rename)
|
nnoremap <buffer><leader>rn <Plug>(coc-rename)
|
||||||
|
|
||||||
aug Cursor
|
aug Cursor
|
||||||
au!
|
au!
|
||||||
au CursorHold * silent call CocActionAsync('highlight')
|
" au CursorHold * silent call CocActionAsync('highlight')
|
||||||
au User CocJumpPlaceholder call CocActionAsync('showSignatureHelp')
|
au User CocJumpPlaceholder call CocActionAsync('showSignatureHelp')
|
||||||
aug END
|
aug END
|
||||||
else
|
" else
|
||||||
set omnifunc=syntaxcomplete#Complete
|
" set omnifunc=syntaxcomplete#Complete
|
||||||
" open omni completion menu closing previous if open and opening new menu without changing the text
|
" " open omni completion menu closing previous if open and opening new menu without changing the text
|
||||||
inoremap <silent> <expr> <C-Space> (pumvisible() ? (col('.') > 1 ? '<Esc>i<Right>' : '<Esc>i') : '') .
|
" inoremap <silent> <expr> <C-Space> (pumvisible() ? (col('.') > 1 ? '<Esc>i<Right>' : '<Esc>i') : '') .
|
||||||
\ '<C-x><C-o><C-r>=pumvisible() ? "\<lt>C-n>\<lt>C-p>\<lt>Down>" : ""<CR>'
|
" \ '<C-x><C-o><C-r>=pumvisible() ? "\<lt>C-n>\<lt>C-p>\<lt>Down>" : ""<CR>'
|
||||||
" open user completion menu closing previous if open and opening new menu without changing the text
|
" " open user completion menu closing previous if open and opening new menu without changing the text
|
||||||
inoremap <silent> <expr> <M-Space> (pumvisible() ? (col('.') > 1 ? '<Esc>i<Right>' : '<Esc>i') : '') .
|
" inoremap <silent> <expr> <M-Space> (pumvisible() ? (col('.') > 1 ? '<Esc>i<Right>' : '<Esc>i') : '') .
|
||||||
\ '<C-x><C-u><C-r>=pumvisible() ? "\<lt>C-n>\<lt>C-p>\<lt>Down>" : ""<CR>'
|
" \ '<C-x><C-u><C-r>=pumvisible() ? "\<lt>C-n>\<lt>C-p>\<lt>Down>" : ""<CR>'
|
||||||
|
" endif
|
||||||
packadd AutoComplPop
|
|
||||||
endif
|
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
" Stop the vim-jsx plug-in from aggressively blowing away our ftdetection.
|
" Stop the vim-jsx plug-in from aggressively blowing away our ftdetection.
|
||||||
"
|
"
|
||||||
" Without something like this, our ftdetect/{jest,jsx}.vim config will
|
" Without something like this, our ftdetect/{jest,jsx}.vim config will
|
||||||
" set the filetype in test files to "javascript.jest" or
|
" set the filetype in test files to javascript.jest or
|
||||||
" "javascript.jest.jsx", but then vim-jsx will come along and unconditionally
|
" javascript.jest.jsx, but then vim-jsx will come along and unconditionally
|
||||||
" set it to "javascript.jsx", which isn't helpful. Currently I'm not working in
|
" set it to javascript.jsx, which isn't helpful. Currently I'm not working in
|
||||||
" any projects that use a ".jsx" extension so this workaround is viable
|
" any projects that use a .jsx extension so this workaround is viable
|
||||||
" (unfortunately, there's no other mechanism for disabling this functionality in
|
" (unfortunately, there's no other mechanism for disabling this functionality in
|
||||||
" vim-jsx).
|
" vim-jsx).
|
||||||
let g:jsx_ext_required=1
|
let g:jsx_ext_required=1
|
||||||
|
|
|
@ -1,47 +1,26 @@
|
||||||
function! dead#colores#MyHighlights() abort
|
|
||||||
highlight Trail ctermbg=red guibg=red
|
|
||||||
call matchadd('Trail', '\s\+$', 100)
|
|
||||||
highlight ColorColumn ctermbg=magenta
|
|
||||||
call matchadd('ColorColumn', '\%81v', 100)
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
function! dead#colores#Maquillaje() abort
|
function! dead#colores#Maquillaje() abort
|
||||||
highlight! Normal guibg=NONE
|
highlight! RedrawDebugClear guibg=#080808
|
||||||
highlight! VertSplit ctermbg=NONE ctermfg=0 cterm=NONE guibg=NONE guifg=#080808 gui=NONE
|
highlight! NvimInternalError guifg=#080808
|
||||||
highlight! TabLineFill ctermbg=NONE ctermfg=NONE cterm=NONE guibg=NONE guifg=#ef2f27 gui=NONE
|
highlight! SpellBad ctermfg=203 cterm=underline guifg=#ff5f5f
|
||||||
highlight! TablineSel ctermbg=NONE ctermfg=234 guibg=NONE guifg=#008bbd
|
|
||||||
highlight! ALEWarningSignLineNr ctermfg=4 cterm=undercurl guifg=#c4ab39 gui=undercurl
|
|
||||||
highlight! ALEErrorSignLineNr ctermfg=red cterm=undercurl guifg=#c4384b gui=undercurl
|
|
||||||
highlight! CocUnderline cterm=undercurl gui=undercurl
|
|
||||||
highlight! PmenuSel guibg=#111111 guifg=#6699cc
|
|
||||||
highlight! RedrawDebugClear guibg=#080808
|
|
||||||
highlight! NvimInternalError guifg=#080808
|
|
||||||
highlight! DiffAdded guifg=#333333
|
|
||||||
highlight! PmenuThumb guifg=#333333
|
|
||||||
|
|
||||||
highlight! SpellBad ctermfg=203 cterm=underline guifg=#ff5f5f
|
|
||||||
highlight! link SpellLocal SpellBad
|
highlight! link SpellLocal SpellBad
|
||||||
highlight! link SpellRare SpellBad
|
highlight! link SpellRare SpellBad
|
||||||
highlight! link SpellCap SpellBad
|
highlight! link SpellCap SpellBad
|
||||||
|
|
||||||
highlight! link Folded Comment
|
highlight! link Folded Comment
|
||||||
highlight! link NonText VertSplit
|
highlight! link NonText VertSplit
|
||||||
|
|
||||||
if &diff
|
highlight GitGutterAdd ctermfg=2 guifg=#009900 gui=bold
|
||||||
highlight! link DiffText MatchParen
|
highlight GitGutterChange ctermfg=3 guifg=#bbbb00 gui=bold
|
||||||
highlight! DiffAdd guibg=#0f111a guifg=#43a047
|
highlight GitGutterDelete ctermfg=1 guifg=#ff2222 gui=bold
|
||||||
highlight! DiffChange guibg=#0f111a guifg=#fdd835
|
|
||||||
highlight! DiffRemoved guibg=#0f111a guifg=#e53935
|
|
||||||
endif
|
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! dead#colores#Barra() abort
|
function! dead#colores#Barra() abort
|
||||||
highlight User1 ctermfg=251 ctermbg=NONE guibg=NONE guifg=#666666 cterm=none
|
highlight User1 ctermbg=NONE ctermfg=251 cterm=none guibg=NONE guifg=#333333
|
||||||
highlight User2 ctermfg=234 ctermbg=NONE guibg=NONE guifg=#f74782 cterm=none gui=bold
|
highlight User2 ctermbg=NONE ctermfg=234 cterm=none guibg=NONE guifg=#c4384b gui=bold
|
||||||
highlight User3 ctermfg=234 ctermbg=4 guibg=NONE guifg=#008bb4 cterm=none gui=bold
|
highlight User3 ctermbg=4 ctermfg=234 cterm=none guibg=NONE guifg=#008bb4 gui=bold
|
||||||
highlight User4 ctermfg=234 ctermbg=251 guibg=NONE guifg=#c6c6c6 cterm=none gui=bold
|
highlight User4 ctermbg=251 ctermfg=234 cterm=none guibg=NONE guifg=#C0C0C0 gui=bold
|
||||||
highlight User5 ctermfg=234 ctermbg=4 guibg=NONE guifg=#e64eff cterm=none gui=bold
|
highlight User5 ctermbg=4 ctermfg=234 cterm=none guibg=NONE guifg=#e64eff gui=bold
|
||||||
highlight User6 ctermfg=234 ctermbg=9 guibg=NONE guifg=#fbad34 cterm=none gui=bold
|
highlight User6 ctermbg=9 ctermfg=234 cterm=none guibg=NONE guifg=#fbad34 gui=bold
|
||||||
highlight User7 ctermfg=234 ctermbg=251 guibg=NONE guifg=#407e4a cterm=none gui=bold
|
highlight User7 ctermbg=251 ctermfg=234 cterm=none guibg=NONE guifg=#407e4a gui=bold
|
||||||
highlight User8 ctermfg=NONE ctermbg=NONE guibg=NONE guifg=NONE cterm=NONE
|
highlight User8 ctermbg=NONE ctermfg=NONE cterm=NONE guibg=NONE guifg=#c4ab39
|
||||||
|
highlight User9 ctermbg=NONE ctermfg=251 cterm=NONE guibg=NONE guifg=#666666
|
||||||
endfunction
|
endfunction
|
||||||
|
|
|
@ -11,12 +11,12 @@ function! dead#functions#Relativize(v) abort
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! dead#functions#JumpToNextHeading(direction, count)
|
function! dead#functions#JumpToNextHeading(direction, count)
|
||||||
let col = col(".")
|
let col = col('.')
|
||||||
silent execute a:direction == "up" ? '?^#' : '/^#'
|
silent execute a:direction ==? 'up' ? '?^#' : '/^#'
|
||||||
if a:count > 1
|
if a:count > 1
|
||||||
silent execute "normal! " . repeat("n", a:direction == "up" && col != 1 ? a:count : a:count - 1)
|
silent execute 'normal! ' . repeat('n', a:direction ==? 'up' && col != 1 ? a:count : a:count - 1)
|
||||||
endif
|
endif
|
||||||
silent execute "normal! " . col . "|"
|
silent execute 'normal! ' . col . '|'
|
||||||
unlet col
|
unlet col
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
@ -27,3 +27,20 @@ function! dead#functions#NewMail()
|
||||||
0r ~/.config/nvim/templates/correo.skeleton | w | $
|
0r ~/.config/nvim/templates/correo.skeleton | w | $
|
||||||
endfunction
|
endfunction
|
||||||
command! Mail call dead#functions#NewMail()
|
command! Mail call dead#functions#NewMail()
|
||||||
|
|
||||||
|
" Ripgrep advanced
|
||||||
|
function! dead#functions#RipgrepFzf(query, fullscreen)
|
||||||
|
let command_fmt = 'rg --column --line-number --no-heading --color=always --smart-case %s || true'
|
||||||
|
let initial_command = printf(command_fmt, shellescape(a:query))
|
||||||
|
let reload_command = printf(command_fmt, '{q}')
|
||||||
|
let spec = {'options': ['--phony', '--query', a:query, '--bind', 'change:reload:'.reload_command]}
|
||||||
|
call fzf#vim#grep(initial_command, 1, fzf#vim#with_preview(spec), a:fullscreen)
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
command! -nargs=* -bang RG call dead#functions#RipgrepFzf(<q-args>, <bang>0)
|
||||||
|
|
||||||
|
" Git grep
|
||||||
|
command! -bang -nargs=* GGrep
|
||||||
|
\ call fzf#vim#grep(
|
||||||
|
\ 'git grep --line-number '.shellescape(<q-args>), 0,
|
||||||
|
\ fzf#vim#with_preview({'dir': systemlist('git rev-parse --show-toplevel')[0]}), <bang>0)
|
||||||
|
|
|
@ -8,12 +8,12 @@ endfunction
|
||||||
|
|
||||||
function! dead#statusline#StatusLine() abort
|
function! dead#statusline#StatusLine() abort
|
||||||
let l:statusline=''
|
let l:statusline=''
|
||||||
let l:statusline.='%#TabLineFill#%{dead#statusline#LinterStatus()} '
|
let l:statusline.='%#User9#%f %m'
|
||||||
let l:statusline.='%#User6#%{fugitive#head()} '
|
let l:statusline.=' %#User8#%{fugitive#head()} '
|
||||||
let l:statusline.='%#User1#%{GitStatus()} '
|
let l:statusline.='%#User7#%{GitStatus()}'
|
||||||
let l:statusline.='%{dead#statusline#LinePasteMode()}'
|
let l:statusline.='%{dead#statusline#LinePasteMode()}'
|
||||||
let l:statusline.='%= '
|
let l:statusline.='%= '
|
||||||
let l:statusline.='%#User1#%p%% %l:%c '
|
let l:statusline.='%#User9#%p%% ☰ %l:%c '
|
||||||
let l:statusline.=dead#statusline#ModeColor()
|
let l:statusline.=dead#statusline#ModeColor()
|
||||||
let l:statusline.=dead#statusline#CurrentMode()
|
let l:statusline.=dead#statusline#CurrentMode()
|
||||||
return l:statusline
|
return l:statusline
|
||||||
|
@ -22,26 +22,21 @@ endfunction
|
||||||
function! dead#statusline#StatusLineNC() abort
|
function! dead#statusline#StatusLineNC() abort
|
||||||
let l:statusline=''
|
let l:statusline=''
|
||||||
let l:statusline.='%#User1#'
|
let l:statusline.='%#User1#'
|
||||||
let l:statusline.='%= '
|
let l:statusline.='%m'
|
||||||
let l:statusline.='%f '
|
let l:statusline.='%='
|
||||||
|
let l:statusline.='%F'
|
||||||
return l:statusline
|
return l:statusline
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! dead#statusline#HelpStatusLine() abort
|
function! dead#statusline#HelpStatusLine() abort
|
||||||
let l:statusline=''
|
let l:statusline=''
|
||||||
let l:statusline.='%= '
|
let l:statusline.='%#User1#'
|
||||||
|
let l:statusline.='%f'
|
||||||
|
let l:statusline.='%='
|
||||||
let l:statusline.='%h'
|
let l:statusline.='%h'
|
||||||
return l:statusline
|
return l:statusline
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! dead#statusline#FMStatusLine() abort
|
|
||||||
let l:statusline=''
|
|
||||||
let l:statusline.='%#User8#'
|
|
||||||
let l:statusline.='%= '
|
|
||||||
let l:statusline.='% '
|
|
||||||
return l:statusline
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
function! dead#statusline#UpdateInactiveWindows()
|
function! dead#statusline#UpdateInactiveWindows()
|
||||||
for winnum in range(1, winnr('$'))
|
for winnum in range(1, winnr('$'))
|
||||||
if winnum != winnr()
|
if winnum != winnr()
|
||||||
|
@ -60,7 +55,7 @@ function! dead#statusline#LinePasteMode() abort
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! dead#statusline#RefreshStatusLine(mode)
|
function! dead#statusline#RefreshStatusLine(mode)
|
||||||
if (a:mode == "active" && &filetype !=? 'help')
|
if (a:mode ==? 'active' && &filetype !=? 'help')
|
||||||
setlocal statusline=%!dead#statusline#StatusLine()
|
setlocal statusline=%!dead#statusline#StatusLine()
|
||||||
else
|
else
|
||||||
setlocal statusline=%!dead#statusline#StatusLineNC()
|
setlocal statusline=%!dead#statusline#StatusLineNC()
|
||||||
|
@ -68,20 +63,6 @@ function! dead#statusline#RefreshStatusLine(mode)
|
||||||
if &filetype ==? 'help'
|
if &filetype ==? 'help'
|
||||||
setlocal statusline=%!dead#statusline#HelpStatusLine()
|
setlocal statusline=%!dead#statusline#HelpStatusLine()
|
||||||
endif
|
endif
|
||||||
if &filetype ==? 'Defx'
|
|
||||||
setlocal statusline=%!dead#statusline#FMStatusLine()
|
|
||||||
endif
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
function! dead#statusline#LinterStatus() abort
|
|
||||||
let l:counts = ale#statusline#Count(bufnr(''))
|
|
||||||
let l:all_errors = l:counts.error + l:counts.style_error
|
|
||||||
let l:all_non_errors = l:counts.total - l:all_errors
|
|
||||||
return l:counts.total == 0 ? '' : printf(
|
|
||||||
\ ' :%d :%d',
|
|
||||||
\ l:all_non_errors,
|
|
||||||
\ l:all_errors
|
|
||||||
\)
|
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! GitStatus() abort
|
function! GitStatus() abort
|
||||||
|
@ -91,3 +72,25 @@ function! GitStatus() abort
|
||||||
let [ l:added, l:modified, l:removed ] = GitGutterGetHunkSummary()
|
let [ l:added, l:modified, l:removed ] = GitGutterGetHunkSummary()
|
||||||
return printf('+%d ~%d -%d', l:added, l:modified, l:removed)
|
return printf('+%d ~%d -%d', l:added, l:modified, l:removed)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
let g:modes={
|
||||||
|
\ 'n' : ['%3*','NORMAL'],
|
||||||
|
\ 'no' : ['%3*','OPERATOR PENDING'],
|
||||||
|
\ 'v' : ['%5*','VISUAL'],
|
||||||
|
\ 'V' : ['%5*','V·LINE'],
|
||||||
|
\ '' : ['%5*','V·BLOCK'],
|
||||||
|
\ 's' : ['%7*','SELECT'],
|
||||||
|
\ 'S' : ['%7*','S·LINE'],
|
||||||
|
\ '' : ['%7*','S·BLOCK'],
|
||||||
|
\ 'i' : ['%4*','INSERT'],
|
||||||
|
\ 'R' : ['%2*','REPLACE'],
|
||||||
|
\ 'Rv' : ['%2*','V·REPLACE'],
|
||||||
|
\ 'c' : ['%6*','COMMAND'],
|
||||||
|
\ 'cv' : ['%6*','VIM EX'],
|
||||||
|
\ 'ce' : ['%6*','EX'],
|
||||||
|
\ 'r' : ['%1*','PROMPT'],
|
||||||
|
\ 'rm' : ['%1*','MORE'],
|
||||||
|
\ 'r?' : ['%1*','CONFIRM'],
|
||||||
|
\ '!' : ['%*1','SHELL'],
|
||||||
|
\ 't' : ['%*1','TERMINAL'],
|
||||||
|
\}
|
||||||
|
|
|
@ -1,32 +0,0 @@
|
||||||
scriptencoding utf-8
|
|
||||||
|
|
||||||
function! dead#tabline#Tabline() abort
|
|
||||||
let s = ''
|
|
||||||
for i in range(tabpagenr('$'))
|
|
||||||
let tab = i + 1
|
|
||||||
let winnr = tabpagewinnr(tab)
|
|
||||||
let buflist = tabpagebuflist(tab)
|
|
||||||
let bufnr = buflist[winnr - 1]
|
|
||||||
let bufname = bufname(bufnr)
|
|
||||||
let bufmodified = getbufvar(bufnr, '&mod')
|
|
||||||
|
|
||||||
let s .= '%' . tab . 'T'
|
|
||||||
let s .= (tab == tabpagenr() ? '%#TabLineSel#' : '%#TabLine#')
|
|
||||||
let s .= ' ' . tab .' '
|
|
||||||
let s .= (bufname !=? '' ? fnamemodify(bufname, ':f') . ' ' : '[Untitled] ')
|
|
||||||
|
|
||||||
if bufmodified
|
|
||||||
let s .= ' + '
|
|
||||||
endif
|
|
||||||
endfor
|
|
||||||
|
|
||||||
if &filetype ==? 'Defx'
|
|
||||||
let s = ''
|
|
||||||
endif
|
|
||||||
|
|
||||||
let s .= '%#TabLineFill#'
|
|
||||||
if (exists('g:tablineclosebutton'))
|
|
||||||
let s .= '%=%999XX'
|
|
||||||
endif
|
|
||||||
return s
|
|
||||||
endfunction
|
|
|
@ -1,17 +1,52 @@
|
||||||
{
|
{
|
||||||
"coc.preferences.hoverTarget": "float",
|
"coc.preferences.formatOnSaveFiletypes": [
|
||||||
"coc.preferences.useQuickfixForLocations": true,
|
"javascript",
|
||||||
"coc.preferences.bracketEnterImprove": false,
|
"html",
|
||||||
"diagnostic.displayByAle": true,
|
"css",
|
||||||
|
"json",
|
||||||
|
"jsonc",
|
||||||
|
"sh"
|
||||||
|
],
|
||||||
|
"codeLens.enable": true,
|
||||||
|
"diagnostic.errorSign": "𝐗",
|
||||||
|
"diagnostic.warningSign": "➤",
|
||||||
|
"diagnostic.infoSign": "●",
|
||||||
|
"diagnostic-languageserver.mergeConfig": true,
|
||||||
|
"diagnostic-languageserver.filetypes": {
|
||||||
|
// lint `sh` (includes `bash`) files
|
||||||
|
"sh": "shellcheck",
|
||||||
|
"html": "prettier",
|
||||||
|
"vim": "vint"
|
||||||
|
},
|
||||||
|
"diagnostic-languageserver.formatFiletypes": {
|
||||||
|
// format `sh` (includes `bash`) files using formatter defined below
|
||||||
|
"sh": "shfmt"
|
||||||
|
},
|
||||||
|
"diagnostic-languageserver.formatters": {
|
||||||
|
// define our formatter so that we can reference it from
|
||||||
|
// `diagnostic-languageserver.formatFiletypes`
|
||||||
|
"shfmt": {
|
||||||
|
"command": "shfmt",
|
||||||
|
// all the below args are entirely optional
|
||||||
|
// primarily listed here to call out that flags which take an
|
||||||
|
// argument (such as `-i <num-spaces>` for specifying indentation)
|
||||||
|
// should be split into two strings, the flag and then the value
|
||||||
|
"args": ["-p", "-ci", "-sr"]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"list.alignColumns": true,
|
||||||
"suggest.echodocSupport": true,
|
"suggest.echodocSupport": true,
|
||||||
"suggest.maxPreviewWidth": 100,
|
"suggest.maxPreviewWidth": 100,
|
||||||
"suggest.noselect": false,
|
"snippets.ultisnips.enable": true,
|
||||||
"suggest.removeDuplicateItems": true,
|
"snippets.loadFromExtensions": true,
|
||||||
"session.saveOnVimLeave": false,
|
|
||||||
"snippets.extends": {
|
"snippets.extends": {
|
||||||
"javascriptreact": ["javascript"],
|
"javascriptreact": ["javascript"],
|
||||||
"typescript": ["javascript"]
|
"typescript": ["javascript"]
|
||||||
},
|
},
|
||||||
|
"tailwindCSS.enable": true,
|
||||||
|
"tailwindCSS.validate": true,
|
||||||
|
"tailwindCSS.emmetCompletions": true,
|
||||||
|
"tailwindCSS.lint.cssConflict": "warning",
|
||||||
"tsserver.npm": "/home/deadguy/.config/yarn/bin/yarn",
|
"tsserver.npm": "/home/deadguy/.config/yarn/bin/yarn",
|
||||||
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": true,
|
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": true,
|
||||||
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": true,
|
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": true,
|
||||||
|
|
|
@ -42,7 +42,7 @@ let s:bright_white = ['#FCE8C3', 15]
|
||||||
" xterm colors.
|
" xterm colors.
|
||||||
let s:orange = ['#FF5F00', 202]
|
let s:orange = ['#FF5F00', 202]
|
||||||
let s:bright_orange = ['#FF8700', 208]
|
let s:bright_orange = ['#FF8700', 208]
|
||||||
let s:hard_black = ['#121212', 233]
|
let s:hard_black = ['#080808', 233]
|
||||||
let s:xgray1 = ['#262626', 235]
|
let s:xgray1 = ['#262626', 235]
|
||||||
let s:xgray2 = ['#303030', 236]
|
let s:xgray2 = ['#303030', 236]
|
||||||
let s:xgray3 = ['#3A3A3A', 237]
|
let s:xgray3 = ['#3A3A3A', 237]
|
||||||
|
@ -79,6 +79,10 @@ if !exists('g:srcery_underline')
|
||||||
let g:srcery_underline=1
|
let g:srcery_underline=1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if !exists('g:srcery_underline_match_paren')
|
||||||
|
let g:srcery_underline_match_paren=1
|
||||||
|
endif
|
||||||
|
|
||||||
if !exists('g:srcery_inverse')
|
if !exists('g:srcery_inverse')
|
||||||
let g:srcery_inverse=1
|
let g:srcery_inverse=1
|
||||||
endif
|
endif
|
||||||
|
@ -173,11 +177,15 @@ call s:HL('SrceryCyan', s:cyan)
|
||||||
call s:HL('SrceryBlack', s:black)
|
call s:HL('SrceryBlack', s:black)
|
||||||
|
|
||||||
call s:HL('SrceryRedBold', s:red, s:none, s:bold)
|
call s:HL('SrceryRedBold', s:red, s:none, s:bold)
|
||||||
|
call s:HL('SrceryRedItalic', s:red, s:none, s:italic)
|
||||||
call s:HL('SrceryGreenBold', s:green, s:none, s:bold)
|
call s:HL('SrceryGreenBold', s:green, s:none, s:bold)
|
||||||
call s:HL('SrceryYellowBold', s:yellow, s:none, s:bold)
|
call s:HL('SrceryYellowBold', s:yellow, s:none, s:bold)
|
||||||
call s:HL('SrceryBlueBold', s:blue, s:none, s:bold)
|
call s:HL('SrceryBlueBold', s:blue, s:none, s:bold)
|
||||||
call s:HL('SrceryMagentaBold', s:magenta, s:none, s:bold)
|
call s:HL('SrceryMagentaBold', s:magenta, s:none, s:bold)
|
||||||
call s:HL('SrceryCyanBold', s:cyan, s:none, s:bold)
|
call s:HL('SrceryCyanBold', s:cyan, s:none, s:bold)
|
||||||
|
call s:HL('SrceryCyanItalic', s:cyan, s:none, s:italic)
|
||||||
|
call s:HL('SrceryBrightMagenta', s:bright_magenta, s:none, s:italic)
|
||||||
|
call s:HL('SrceryBrightBlue', s:bright_blue, s:none, s:italic)
|
||||||
|
|
||||||
call s:HL('SrceryBrightRed', s:bright_red, s:none)
|
call s:HL('SrceryBrightRed', s:bright_red, s:none)
|
||||||
call s:HL('SrceryBrightGreen', s:bright_green, s:none)
|
call s:HL('SrceryBrightGreen', s:bright_green, s:none)
|
||||||
|
@ -192,7 +200,9 @@ call s:HL('SrceryBrightWhite', s:bright_white)
|
||||||
call s:HL('SrceryOrange', s:orange)
|
call s:HL('SrceryOrange', s:orange)
|
||||||
call s:HL('SrceryBrightOrange', s:bright_orange)
|
call s:HL('SrceryBrightOrange', s:bright_orange)
|
||||||
call s:HL('SrceryOrangeBold', s:orange, s:none, s:bold)
|
call s:HL('SrceryOrangeBold', s:orange, s:none, s:bold)
|
||||||
|
call s:HL('SrceryOrangeItalic', s:orange, s:none, s:italic)
|
||||||
call s:HL('SrceryHardBlack', s:hard_black)
|
call s:HL('SrceryHardBlack', s:hard_black)
|
||||||
|
call s:HL('SrceryXgray4Italic', s:xgray4, s:none, s:italic)
|
||||||
call s:HL('SrceryXgray1', s:xgray1)
|
call s:HL('SrceryXgray1', s:xgray1)
|
||||||
call s:HL('SrceryXgray2', s:xgray2)
|
call s:HL('SrceryXgray2', s:xgray2)
|
||||||
call s:HL('SrceryXgray3', s:xgray3)
|
call s:HL('SrceryXgray3', s:xgray3)
|
||||||
|
@ -302,6 +312,10 @@ if v:version >= 700
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if g:srcery_underline_match_paren == 1
|
||||||
|
call s:HL('MatchParen', s:bright_magenta, s:none, s:underline)
|
||||||
|
endif
|
||||||
|
|
||||||
if v:version >= 703
|
if v:version >= 703
|
||||||
" Highlighted screen columns
|
" Highlighted screen columns
|
||||||
call s:HL('ColorColumn', s:none, s:xgray2)
|
call s:HL('ColorColumn', s:none, s:xgray2)
|
||||||
|
@ -311,7 +325,7 @@ if v:version >= 703
|
||||||
|
|
||||||
" Line number of CursorLine
|
" Line number of CursorLine
|
||||||
if g:srcery_transparent_background == 1 && !has('gui_running')
|
if g:srcery_transparent_background == 1 && !has('gui_running')
|
||||||
call s:HL('CursorLineNr', s:yellow, s:none)
|
call s:HL('CursorLineNr', s:yellow, s:none, s:bold)
|
||||||
else
|
else
|
||||||
call s:HL('CursorLineNr', s:yellow, s:black)
|
call s:HL('CursorLineNr', s:yellow, s:black)
|
||||||
endif
|
endif
|
||||||
|
@ -345,7 +359,7 @@ if g:srcery_transparent_background == 1 && !has('gui_running')
|
||||||
call s:HL('StatusLineNC', s:bright_black, s:none, s:underline)
|
call s:HL('StatusLineNC', s:bright_black, s:none, s:underline)
|
||||||
|
|
||||||
" The column separating vertically split windows
|
" The column separating vertically split windows
|
||||||
call s:HL('VertSplit', s:bright_white, s:none)
|
call s:HL('VertSplit', s:hard_black, s:none)
|
||||||
|
|
||||||
" Current match in wildmenu completion
|
" Current match in wildmenu completion
|
||||||
call s:HL('WildMenu', s:blue, s:none, s:bold)
|
call s:HL('WildMenu', s:blue, s:none, s:bold)
|
||||||
|
@ -376,7 +390,7 @@ hi! link WarningMsg SrceryRedBold
|
||||||
" Gutter: {{{
|
" Gutter: {{{
|
||||||
|
|
||||||
" Line number for :number and :# commands
|
" Line number for :number and :# commands
|
||||||
call s:HL('LineNr', s:bright_black)
|
call s:HL('LineNr', s:xgray2)
|
||||||
|
|
||||||
if g:srcery_transparent_background == 1 && !has('gui_running')
|
if g:srcery_transparent_background == 1 && !has('gui_running')
|
||||||
" Column where signs are displayed
|
" Column where signs are displayed
|
||||||
|
@ -438,7 +452,7 @@ hi! link Operator Normal
|
||||||
hi! link Keyword SrceryRed
|
hi! link Keyword SrceryRed
|
||||||
|
|
||||||
" Variable name
|
" Variable name
|
||||||
hi! link Identifier SrceryCyan
|
hi! link Identifier SrceryCyanItalic
|
||||||
" Function name
|
" Function name
|
||||||
hi! link Function SrceryYellow
|
hi! link Function SrceryYellow
|
||||||
|
|
||||||
|
@ -454,7 +468,7 @@ hi! link Macro SrceryOrange
|
||||||
hi! link PreCondit SrceryCyan
|
hi! link PreCondit SrceryCyan
|
||||||
|
|
||||||
" Generic constant
|
" Generic constant
|
||||||
hi! link Constant SrceryBrightMagenta
|
hi! link Constant SrceryBrightMagentaItalic
|
||||||
" Character constant: 'c', '/n'
|
" Character constant: 'c', '/n'
|
||||||
hi! link Character SrceryBrightMagenta
|
hi! link Character SrceryBrightMagenta
|
||||||
" Boolean constant: TRUE, false
|
" Boolean constant: TRUE, false
|
||||||
|
@ -465,11 +479,11 @@ hi! link Number SrceryBrightMagenta
|
||||||
hi! link Float SrceryBrightMagenta
|
hi! link Float SrceryBrightMagenta
|
||||||
|
|
||||||
" Generic type
|
" Generic type
|
||||||
hi! link Type SrceryBrightBlue
|
hi! link Type SrceryBrightBlueItalic
|
||||||
" static, register, volatile, etc
|
" static, register, volatile, etc
|
||||||
hi! link StorageClass SrceryOrange
|
hi! link StorageClass SrceryOrangeItalic
|
||||||
" struct, union, enum, etc.
|
" struct, union, enum, etc.
|
||||||
hi! link Structure SrceryCyan
|
hi! link Structure SrceryCyanItalic
|
||||||
" typedef
|
" typedef
|
||||||
hi! link Typedef SrceryMagenta
|
hi! link Typedef SrceryMagenta
|
||||||
|
|
||||||
|
@ -484,9 +498,9 @@ endif
|
||||||
|
|
||||||
if v:version >= 700
|
if v:version >= 700
|
||||||
" Popup menu: normal item
|
" Popup menu: normal item
|
||||||
call s:HL('Pmenu', s:bright_white, s:xgray2)
|
call s:HL('Pmenu', s:white, s:xgray1)
|
||||||
" Popup menu: selected item
|
" Popup menu: selected item
|
||||||
call s:HL('PmenuSel', s:bright_white, s:magenta, s:bold)
|
call s:HL('PmenuSel', s:black, s:blue, s:bold)
|
||||||
|
|
||||||
if g:srcery_transparent_background == 1 && !has('gui_running')
|
if g:srcery_transparent_background == 1 && !has('gui_running')
|
||||||
" Popup menu: scrollbar
|
" Popup menu: scrollbar
|
||||||
|
@ -505,6 +519,7 @@ endif
|
||||||
if g:srcery_transparent_background == 1 && !has('gui_running')
|
if g:srcery_transparent_background == 1 && !has('gui_running')
|
||||||
call s:HL('DiffDelete', s:red, s:none)
|
call s:HL('DiffDelete', s:red, s:none)
|
||||||
call s:HL('DiffAdd', s:green, s:none)
|
call s:HL('DiffAdd', s:green, s:none)
|
||||||
|
call s:HL('DiffAdded', s:xgray1, s:none)
|
||||||
call s:HL('DiffChange', s:cyan, s:none)
|
call s:HL('DiffChange', s:cyan, s:none)
|
||||||
call s:HL('DiffText', s:yellow, s:none)
|
call s:HL('DiffText', s:yellow, s:none)
|
||||||
else
|
else
|
||||||
|
@ -662,6 +677,7 @@ call s:HL('CocErrorHighlight', s:none, s:none, s:undercurl, s:red)
|
||||||
call s:HL('CocWarningHighlight', s:none, s:none, s:undercurl, s:bright_orange)
|
call s:HL('CocWarningHighlight', s:none, s:none, s:undercurl, s:bright_orange)
|
||||||
call s:HL('CocInfoHighlight', s:none, s:none, s:undercurl, s:yellow)
|
call s:HL('CocInfoHighlight', s:none, s:none, s:undercurl, s:yellow)
|
||||||
call s:HL('CocHintHighlight', s:none, s:none, s:undercurl, s:blue)
|
call s:HL('CocHintHighlight', s:none, s:none, s:undercurl, s:blue)
|
||||||
|
call s:HL('CocUnderline', s:none, s:none, s:undercurl, s:white)
|
||||||
|
|
||||||
" }}}
|
" }}}
|
||||||
" CtrlP: "{{{
|
" CtrlP: "{{{
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
setlocal noexpandtab
|
|
||||||
setlocal nolist
|
|
|
@ -20,10 +20,12 @@ setlocal nonumber
|
||||||
setlocal noruler
|
setlocal noruler
|
||||||
setlocal colorcolumn=0
|
setlocal colorcolumn=0
|
||||||
setlocal signcolumn=no
|
setlocal signcolumn=no
|
||||||
" setlocal statusline=
|
|
||||||
|
|
||||||
wincmd L
|
wincmd L
|
||||||
|
|
||||||
|
" Quick close
|
||||||
|
nnoremap <silent><buffer> q :helpclose<CR>
|
||||||
|
|
||||||
" Jump to links with enter
|
" Jump to links with enter
|
||||||
nmap <buffer> <CR> <C-]>
|
nmap <buffer> <CR> <C-]>
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,12 @@
|
||||||
" The virgin plugin vs the chad local options
|
|
||||||
setlocal nonumber norelativenumber laststatus=0 showmode
|
setlocal nonumber norelativenumber laststatus=0 showmode
|
||||||
setlocal signcolumn=no textwidth=80 wrap sw=2
|
setlocal signcolumn=no textwidth=80 wrap sw=2
|
||||||
setlocal tabstop=2 expandtab softtabstop=2 linebreak
|
setlocal tabstop=2 noexpandtab softtabstop=0 linebreak
|
||||||
setlocal autoindent noruler colorcolumn=80
|
setlocal autoindent ruler colorcolumn=80
|
||||||
setlocal spell spelllang=es_AR,en_us
|
setlocal complete+=kspell
|
||||||
|
setlocal spell spelllang=es,en_us
|
||||||
|
setlocal formatoptions&
|
||||||
|
setlocal formatoptions+=tqnw
|
||||||
|
setlocal formatlistpat=^\\s*\\(\\d\\+\\\|[a-z]\\)[\\].)]\\s*
|
||||||
|
|
||||||
function! s:OnExit(job_id, code, event) dict
|
function! s:OnExit(job_id, code, event) dict
|
||||||
if a:code == 0
|
if a:code == 0
|
||||||
|
@ -43,11 +46,14 @@ function! s:SendMail()
|
||||||
startinsert
|
startinsert
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
nnoremap <buffer> <F7> [s
|
" Spellcheck
|
||||||
nnoremap <buffer> <F8> ]s
|
nnoremap <buffer> <silent> <F7> [s
|
||||||
nnoremap <buffer> <F9> z=
|
nnoremap <buffer> <silent> <F8> ]s
|
||||||
nnoremap <buffer> <F10> zg
|
nnoremap <buffer> <silent> <F9> z=
|
||||||
|
nnoremap <buffer> <silent> <F10> z=1<CR><CR>
|
||||||
|
nnoremap <buffer> <silent> <F11> zg
|
||||||
inoremap <buffer> <C-l> <c-g>u<Esc>[s1z=`]a<c-g>u
|
inoremap <buffer> <C-l> <c-g>u<Esc>[s1z=`]a<c-g>u
|
||||||
|
|
||||||
nnoremap <buffer> <silent> <C-H> :<C-U>call <SID>SendMail()<CR>
|
nnoremap <buffer> <silent> <C-H> :<C-U>call <SID>SendMail()<CR>
|
||||||
nnoremap <buffer> <silent> <localleader>f gg/From:<CR>:nohlsearch<CR>4lC:
|
nnoremap <buffer> <silent> <localleader>f gg/From:<CR>:nohlsearch<CR>4lC:
|
||||||
nnoremap <buffer> <silent> <localleader>t gg/To:<CR>:nohlsearch<CR>2lC:
|
nnoremap <buffer> <silent> <localleader>t gg/To:<CR>:nohlsearch<CR>2lC:
|
||||||
|
|
|
@ -6,7 +6,7 @@ endif
|
||||||
if filereadable('~/.local/share/npm/bin/neovim-node-host')
|
if filereadable('~/.local/share/npm/bin/neovim-node-host')
|
||||||
let g:node_host_prog = '~/.local/share/npm/bin/neovim-node-host'
|
let g:node_host_prog = '~/.local/share/npm/bin/neovim-node-host'
|
||||||
endif
|
endif
|
||||||
if executable("rg")
|
if executable('rg')
|
||||||
set grepprg=rg\ --vimgrep
|
set grepprg=rg\ --vimgrep
|
||||||
set grepformat=%f:%l:%c:%m
|
set grepformat=%f:%l:%c:%m
|
||||||
endif
|
endif
|
||||||
|
@ -28,23 +28,22 @@ aug colores
|
||||||
au!
|
au!
|
||||||
au ColorScheme * call dead#colores#Barra()
|
au ColorScheme * call dead#colores#Barra()
|
||||||
au ColorScheme * call dead#colores#Maquillaje()
|
au ColorScheme * call dead#colores#Maquillaje()
|
||||||
au ColorScheme * call dead#colores#MyHighlights()
|
|
||||||
aug END
|
aug END
|
||||||
let g:srcery_transparent_background = 1
|
let g:srcery_transparent_background = 1
|
||||||
let g:srcery_italic = 1
|
let g:srcery_italic = 1
|
||||||
|
let g:srcery_inverse_matches = 1
|
||||||
let g:srcery_underline = 1
|
let g:srcery_underline = 1
|
||||||
|
let g:srcery_underline_match_paren = 1
|
||||||
let g:srcery_undercurl = 1
|
let g:srcery_undercurl = 1
|
||||||
colorscheme srcery
|
colorscheme srcery
|
||||||
|
|
||||||
if filereadable(expand("~/.local/share/nvim/site/autoload/plug.vim"))
|
if filereadable(expand('~/.local/share/nvim/site/autoload/plug.vim'))
|
||||||
call plug#begin(stdpath('data') . '/plugged')
|
call plug#begin(stdpath('data') . '/plugged')
|
||||||
Plug 'dense-analysis/ale'
|
|
||||||
Plug 'lervag/vimtex', {'for': 'latex'}
|
Plug 'lervag/vimtex', {'for': 'latex'}
|
||||||
Plug 'neoclide/coc.nvim', {'branch': 'release', 'for': ['javascript', 'html', 'css', 'json', 'typescript', 'jsx', 'tsx']}
|
Plug 'neoclide/coc.nvim', {'branch': 'release', 'for': ['javascript', 'html', 'css', 'json', 'jsonc', 'typescript', 'jsx', 'tsx', 'sh', 'vim']}
|
||||||
Plug 'fatih/vim-go', {'for': 'go', 'do': ':GoInstallBinaries'}
|
Plug 'fatih/vim-go', {'for': 'go', 'do': ':GoInstallBinaries'}
|
||||||
Plug 'tpope/vim-fugitive'
|
Plug 'tpope/vim-fugitive'
|
||||||
Plug 'airblade/vim-gitgutter'
|
Plug 'airblade/vim-gitgutter'
|
||||||
Plug 'junegunn/fzf.vim'
|
Plug 'junegunn/fzf.vim'
|
||||||
Plug 'Shougo/defx.nvim', { 'do': ':UpdateRemotePlugins' }
|
|
||||||
call plug#end()
|
call plug#end()
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -1,24 +0,0 @@
|
||||||
let g:ale_lint_delay = 0
|
|
||||||
let g:ale_disable_lsp = 1
|
|
||||||
let g:ale_fix_on_save = 1
|
|
||||||
let g:ale_linters_explicit = 1
|
|
||||||
let g:ale_use_global_executables = 1
|
|
||||||
let g:ale_close_preview_on_insert = 1
|
|
||||||
let g:ale_sign_highlight_linenrs = 1
|
|
||||||
let g:ale_echo_cursor = 0
|
|
||||||
let g:ale_virtualtext_cursor = 1
|
|
||||||
let g:ale_set_highlights = 1
|
|
||||||
let g:ale_set_signs = 1
|
|
||||||
let g:ale_javascript_eslint_suppress_missing_config = 1
|
|
||||||
let g:ale_sign_error = '𝐗'
|
|
||||||
let g:ale_sign_warning = '➤'
|
|
||||||
let g:ale_sign_info = '●'
|
|
||||||
let g:ale_loclist_msg_format = '[%linter%] %s% (code)% [%severity%]'
|
|
||||||
let g:ale_linter_aliases = { 'jsx': ['css', 'javascript'] }
|
|
||||||
let g:ale_fixers = { '*': ['remove_trailing_lines', 'trim_whitespace'] }
|
|
||||||
let g:ale_pattern_options = {
|
|
||||||
\ '\.min\.js$': {'ale_linters': [], 'ale_fixers': []},
|
|
||||||
\ '\.min\.css$': {'ale_linters': [], 'ale_fixers': []},
|
|
||||||
\}
|
|
||||||
nmap <silent> <F7> <Plug>(ale_previous_wrap)
|
|
||||||
nmap <silent> <F8> <Plug>(ale_next_wrap)
|
|
|
@ -7,15 +7,13 @@ if !exists('autocommands_loaded') && has('autocmd')
|
||||||
aug OnInsert
|
aug OnInsert
|
||||||
au BufWinEnter,FocusGained,InsertLeave,WinEnter * call dead#functions#Relativize(1)
|
au BufWinEnter,FocusGained,InsertLeave,WinEnter * call dead#functions#Relativize(1)
|
||||||
au BufWinLeave,FocusLost,InsertEnter,WinLeave * call dead#functions#Relativize(0)
|
au BufWinLeave,FocusLost,InsertEnter,WinLeave * call dead#functions#Relativize(0)
|
||||||
au InsertLeave * setlocal nopaste
|
au InsertEnter * setlocal relativenumber
|
||||||
|
au InsertLeave * setlocal nopaste norelativenumber
|
||||||
au InsertLeave,CompleteDone * if pumvisible() == 0 | pclose | endif
|
au InsertLeave,CompleteDone * if pumvisible() == 0 | pclose | endif
|
||||||
aug END
|
aug END
|
||||||
|
|
||||||
aug FileTypes
|
aug FileTypes
|
||||||
au BufNewFile ~/doc/blog/*.md 0r ~/.config/nvim/templates/wiki.skeleton
|
au BufNewFile ~/doc/blog/*.md 0r ~/.config/nvim/templates/wiki.skeleton
|
||||||
au FileType gitcommit,gitrebase,gitconfig set bufhidden=delete
|
|
||||||
au BufNewFile,BufRead requirements*.txt set syntax=python
|
|
||||||
au FileType fzf tnoremap <buffer> <esc> <c-c>
|
|
||||||
au BufRead,BufNewFile /tmp/neomutt* set filetype=mail
|
au BufRead,BufNewFile /tmp/neomutt* set filetype=mail
|
||||||
aug END
|
aug END
|
||||||
|
|
||||||
|
@ -35,10 +33,10 @@ if !exists('autocommands_loaded') && has('autocmd')
|
||||||
|
|
||||||
aug MyTerminal
|
aug MyTerminal
|
||||||
au TermOpen * setlocal wrap nonumber norelativenumber noruler signcolumn=no
|
au TermOpen * setlocal wrap nonumber norelativenumber noruler signcolumn=no
|
||||||
au TermOpen * set laststatus=0 showtabline=0
|
au TermOpen * set laststatus=0
|
||||||
" workaround for a segfault: https://github.com/neovim/neovim/issues/11548#issuecomment-583081783
|
" workaround for a segfault: https://github.com/neovim/neovim/issues/11548#issuecomment-583081783
|
||||||
" immediately enter insert mode when switching to a terminal
|
" immediately enter insert mode when switching to a terminal
|
||||||
au BufEnter term://* startinsert!
|
au BufEnter term://* startinsert!
|
||||||
au TermClose * set laststatus=2 showtabline=2
|
au TermClose * set laststatus=2
|
||||||
aug END
|
aug END
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -1,80 +1,8 @@
|
||||||
let g:netrw_dirhistmax=0
|
let g:netrw_dirhistmax=0
|
||||||
let g:netrw_banner = 0
|
let g:netrw_banner = 0
|
||||||
let g:netrw_liststyle= 3
|
let g:netrw_liststyle= 3
|
||||||
|
nnoremap <silent> <F5> :Vex!<CR>
|
||||||
|
|
||||||
let g:fzf_layout = { 'window': { 'width': 0.8, 'height': 0.8 } }
|
" let g:fzf_layout = { 'window': { 'width': 1.0, 'height': 0.9 } }
|
||||||
|
let g:fzf_layout = { 'window': { 'width': 1.0, 'height': 0.7, 'yoffset': 1.0, 'border': 'top' } }
|
||||||
aug defx_things
|
let g:fzf_preview_window = ['right:60%', 'ctrl-/']
|
||||||
au!
|
|
||||||
" Close defx if it's the only buffer left in the window
|
|
||||||
au WinEnter * if &ft == 'defx' && winnr('$') == 1 | q | endif
|
|
||||||
" Move focus to the next window if current buffer is defx
|
|
||||||
au TabLeave * if &ft == 'defx' | wincmd w | endif
|
|
||||||
au FileType defx do WinEnter | call s:defx_my_settings()
|
|
||||||
aug END
|
|
||||||
|
|
||||||
call defx#custom#option('_', {
|
|
||||||
\ 'columns': 'mark:indent:git:icon:filename:type',
|
|
||||||
\ 'winwidth': 30,
|
|
||||||
\ 'buffer_name': '',
|
|
||||||
\ 'split': 'vertical',
|
|
||||||
\ 'direction': 'topleft',
|
|
||||||
\ 'show_ignored_files': 0,
|
|
||||||
\ 'toggle': 1,
|
|
||||||
\ 'resume': 1
|
|
||||||
\ })
|
|
||||||
|
|
||||||
call defx#custom#column('icon', {
|
|
||||||
\ 'directory_icon': '▷',
|
|
||||||
\ 'opened_icon': '▼',
|
|
||||||
\ 'root_icon': '~',
|
|
||||||
\ })
|
|
||||||
|
|
||||||
call defx#custom#column('mark', {
|
|
||||||
\ 'readonly_icon': '',
|
|
||||||
\ 'selected_icon': '',
|
|
||||||
\ })
|
|
||||||
|
|
||||||
function! s:defx_my_settings() abort
|
|
||||||
|
|
||||||
setl nonumber
|
|
||||||
setl norelativenumber
|
|
||||||
setl listchars=
|
|
||||||
setl nofoldenable
|
|
||||||
setl foldmethod=manual
|
|
||||||
|
|
||||||
nnoremap <silent><buffer><expr> o defx#do_action('open_tree', 'toggle')
|
|
||||||
nnoremap <silent><buffer><expr> l defx#do_action('open_tree')
|
|
||||||
nnoremap <silent><buffer><expr> h defx#do_action('close_tree')
|
|
||||||
nnoremap <silent><buffer><expr> <CR> defx#do_action('multi', ['drop', 'quit'])
|
|
||||||
nnoremap <silent><buffer><expr> <C-v> defx#do_action('multi', [['open', 'botright vsplit'], 'quit'])
|
|
||||||
nnoremap <silent><buffer><expr> <C-x> defx#do_action('multi', [['open', 'botright split'], 'quit'])
|
|
||||||
nnoremap <silent><buffer><expr> t defx#do_action('multi', [['drop', 'tabnew'], 'quit'])
|
|
||||||
nnoremap <silent><buffer><expr> D defx#do_action('new_directory')
|
|
||||||
nnoremap <silent><buffer><expr> F defx#do_action('new_multiple_files')
|
|
||||||
nnoremap <silent><buffer><expr> dd defx#do_action('remove')
|
|
||||||
nnoremap <silent><buffer><expr> r defx#do_action('rename')
|
|
||||||
nnoremap <silent><buffer><expr> x defx#do_action('execute_system')
|
|
||||||
nnoremap <silent><buffer><expr> . defx#do_action('toggle_ignored_files')
|
|
||||||
nnoremap <silent><buffer><expr> y defx#do_action('yank_path')
|
|
||||||
nnoremap <silent><buffer><expr> <BS> defx#do_action('cd', ['..'])
|
|
||||||
nnoremap <silent><buffer><expr> ~ defx#async_action('cd')
|
|
||||||
nnoremap <silent><buffer><expr> q defx#do_action('quit')
|
|
||||||
nnoremap <silent><buffer><expr> ' defx#do_action('toggle_select') . 'j'
|
|
||||||
nnoremap <silent><buffer><expr> * defx#do_action('toggle_select_all')
|
|
||||||
nnoremap <silent><buffer><expr> <C-r> defx#do_action('redraw')
|
|
||||||
nnoremap <silent><buffer><expr> S defx#do_action('toggle_sort', 'Time')
|
|
||||||
nnoremap <silent><buffer><expr> cd defx#do_action('change_vim_cwd')
|
|
||||||
|
|
||||||
nnoremap <silent><buffer><expr><nowait> / defx#do_action('cd', getcwd())
|
|
||||||
nnoremap <silent><buffer><expr><nowait> c defx#do_action('copy')
|
|
||||||
nnoremap <silent><buffer><expr><nowait> m defx#do_action('move')
|
|
||||||
nnoremap <silent><buffer><expr><nowait> p defx#do_action('paste')
|
|
||||||
|
|
||||||
nnoremap <silent><buffer><expr> j
|
|
||||||
\ line('.') == line('$') ? 'gg' : 'j'
|
|
||||||
nnoremap <silent><buffer><expr> k
|
|
||||||
\ line('.') == 1 ? 'G' : 'k'
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
nnoremap <silent> <F5> :Defx -toggle<CR>
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
let g:gitgutter_enabled = 0
|
let g:gitgutter_enabled = 1
|
||||||
let g:gitgutter_realtime = 0
|
|
||||||
let g:gitgutter_eager = 0
|
|
||||||
let g:gitgutter_terminal_reports_focus=0
|
let g:gitgutter_terminal_reports_focus=0
|
||||||
let g:gitgutter_map_keys = 0
|
let g:gitgutter_map_keys = 0
|
||||||
let g:gitgutter_highlight_linenrs = 1
|
let g:gitgutter_highlight_linenrs = 1
|
||||||
let g:gitgutter_set_sign_backgrounds = 1
|
let g:gitgutter_set_sign_backgrounds = 1
|
||||||
let g:gitgutter_grep = 'rg --color=never'
|
let g:gitgutter_grep = 'rg --color=never'
|
||||||
|
|
||||||
|
let g:fugitive_summary_format = "%an\t%s"
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
let g:tex_flavor='latex'
|
|
||||||
let g:Tex_DefaultTargetFormat ='pdf'
|
let g:Tex_DefaultTargetFormat ='pdf'
|
||||||
let g:vimtex_compiler_progname = 'nvr'
|
let g:vimtex_compiler_progname = 'nvr'
|
||||||
let g:vimtex_view_method = 'zathura'
|
let g:vimtex_view_method = 'zathura'
|
||||||
|
@ -8,3 +7,10 @@ let g:vimtex_complete_enable = 1
|
||||||
let g:vimtex_view_use_temp_files = 2
|
let g:vimtex_view_use_temp_files = 2
|
||||||
set conceallevel=1
|
set conceallevel=1
|
||||||
let g:tex_conceal='abdmg'
|
let g:tex_conceal='abdmg'
|
||||||
|
|
||||||
|
let g:vimtex_log_ignore = [
|
||||||
|
\ 'Underfull',
|
||||||
|
\ 'Overfull',
|
||||||
|
\ 'specifier changed to',
|
||||||
|
\ 'Token not allowed in a PDF string',
|
||||||
|
\ ]
|
||||||
|
|
|
@ -2,5 +2,5 @@ nnoremap <silent> <F1> :Helptags<CR>
|
||||||
nnoremap <silent> <F2> :Files <C-r>=expand("%:h")<CR>/<CR>
|
nnoremap <silent> <F2> :Files <C-r>=expand("%:h")<CR>/<CR>
|
||||||
nnoremap <silent> <F3> :Files<CR>
|
nnoremap <silent> <F3> :Files<CR>
|
||||||
nnoremap <silent> <F4> :Buffers<CR>
|
nnoremap <silent> <F4> :Buffers<CR>
|
||||||
nnoremap <silent> <M-f> :Rg<CR>
|
nnoremap <silent> <M-f> RG<CR>
|
||||||
nnoremap <silent> <M-g> :Commits<CR>
|
nnoremap <silent> <M-g> :Commits<CR>
|
||||||
|
|
|
@ -6,6 +6,7 @@ nmap {c <Plug>(GitGutterPrevHunk)
|
||||||
nmap }c <Plug>(GitGutterNextHunk)
|
nmap }c <Plug>(GitGutterNextHunk)
|
||||||
|
|
||||||
nnoremap <silent> <Leader>ff :G<CR>
|
nnoremap <silent> <Leader>ff :G<CR>
|
||||||
|
nnoremap <silent> <Leader>fc :GCheckout<CR>
|
||||||
nnoremap <silent> <Leader>fd :Gvdiffsplit!<CR>
|
nnoremap <silent> <Leader>fd :Gvdiffsplit!<CR>
|
||||||
nnoremap <silent> <Leader>fh :diffget //2<CR>
|
nnoremap <silent> <Leader>fh :diffget //2<CR>
|
||||||
nnoremap <silent> <Leader>fl :diffget //3<CR>
|
nnoremap <silent> <Leader>fl :diffget //3<CR>
|
||||||
|
|
|
@ -6,12 +6,12 @@ inoremap <c-u> <c-g>u<c-u>
|
||||||
inoremap <c-w> <c-g>u<c-w>
|
inoremap <c-w> <c-g>u<c-w>
|
||||||
|
|
||||||
" Navigate the complete menu items like CTRL+n / CTRL+p would.
|
" Navigate the complete menu items like CTRL+n / CTRL+p would.
|
||||||
inoremap <expr> <Down> pumvisible() ? "<C-n>" :"<Down>"
|
" inoremap <expr> <Down> pumvisible() ? "<C-n>" :"<Down>"
|
||||||
inoremap <expr> <Up> pumvisible() ? "<C-p>" : "<Up>"
|
" inoremap <expr> <Up> pumvisible() ? "<C-p>" : "<Up>"
|
||||||
|
|
||||||
" Select the complete menu item like CTRL+y would.
|
" Select the complete menu item like CTRL+y would.
|
||||||
inoremap <expr> <Right> pumvisible() ? "<C-y>" : "<Right>"
|
" inoremap <expr> <Right> pumvisible() ? "<C-y>" : "<Right>"
|
||||||
inoremap <expr> <CR> pumvisible() ? "<C-y>" :"<CR>"
|
" inoremap <expr> <CR> pumvisible() ? "<C-y>" :"<CR>"
|
||||||
|
|
||||||
" Cancel the complete menu item like CTRL+e would.
|
" Cancel the complete menu item like CTRL+e would.
|
||||||
inoremap <expr> <Left> pumvisible() ? "<C-e>" : "<Left>"
|
inoremap <expr> <Left> pumvisible() ? "<C-e>" : "<Left>"
|
||||||
|
|
|
@ -22,8 +22,8 @@ nnoremap <silent> <S-Up> <C-W>K
|
||||||
nnoremap <silent> <S-Down> <C-W>J
|
nnoremap <silent> <S-Down> <C-W>J
|
||||||
|
|
||||||
" Resize splits
|
" Resize splits
|
||||||
nnoremap <silent> <Left> :vertical resize -2<CR>
|
nnoremap <silent> <Left> :vertical resize -1<CR>
|
||||||
nnoremap <silent> <Right> :vertical resize +2<CR>
|
nnoremap <silent> <Right> :vertical resize +1<CR>
|
||||||
nnoremap <silent> <Up> :resize -1<CR>
|
nnoremap <silent> <Up> :resize -1<CR>
|
||||||
nnoremap <silent> <Down> :resize +1<CR>
|
nnoremap <silent> <Down> :resize +1<CR>
|
||||||
|
|
||||||
|
@ -33,13 +33,14 @@ nnoremap <M-k> <C-W><C-K>
|
||||||
nnoremap <M-l> <C-W><C-L>
|
nnoremap <M-l> <C-W><C-L>
|
||||||
nnoremap <M-h> <C-W><C-H>
|
nnoremap <M-h> <C-W><C-H>
|
||||||
|
|
||||||
" Gotta Go Fast (save, buffers, quit, messages, newlines, SOF, EOF)
|
" Gotta Go Fast (save, buffers, quit, messages, indent, SOF, EOF)
|
||||||
nnoremap <silent> <leader>g :w!<CR>
|
nnoremap <silent> <leader>g :w!<CR>
|
||||||
nnoremap <silent> <leader>b :ls<CR>:b<space>
|
nnoremap <silent> <leader>b :ls<CR>:b<space>
|
||||||
nnoremap <silent> <leader>c :close<CR>
|
nnoremap <silent> <leader>c :close<CR>
|
||||||
nnoremap <silent> <leader>q :q!<CR>
|
nnoremap <silent> <leader>q :q!<CR>
|
||||||
nnoremap <silent> <leader>Q :qa!<CR>
|
nnoremap <silent> <leader>Q :qa!<CR>
|
||||||
nnoremap <silent> <leader>m :messages<CR>
|
nnoremap <silent> <leader>m :messages<CR>
|
||||||
|
nnoremap <silent> <leader>= gg=G<CR>
|
||||||
nnoremap <Bar> gg
|
nnoremap <Bar> gg
|
||||||
nnoremap ¿ G
|
nnoremap ¿ G
|
||||||
|
|
||||||
|
|
|
@ -6,16 +6,12 @@ set clipboard^=unnamedplus
|
||||||
set number
|
set number
|
||||||
set noshowmode
|
set noshowmode
|
||||||
set noshowcmd
|
set noshowcmd
|
||||||
set showtabline=2
|
set showtabline=0
|
||||||
set noswapfile
|
set noswapfile
|
||||||
set hidden
|
set hidden
|
||||||
set lazyredraw
|
set lazyredraw
|
||||||
set showmatch
|
|
||||||
set matchpairs+=<:>
|
set matchpairs+=<:>
|
||||||
set cpoptions-=m
|
|
||||||
set nojoinspaces
|
|
||||||
set updatetime=100
|
set updatetime=100
|
||||||
set synmaxcol=200
|
|
||||||
set splitbelow
|
set splitbelow
|
||||||
set splitright
|
set splitright
|
||||||
set notimeout
|
set notimeout
|
||||||
|
@ -26,29 +22,21 @@ set shortmess+=aoIOWsc
|
||||||
set foldmethod=marker
|
set foldmethod=marker
|
||||||
set foldclose=all
|
set foldclose=all
|
||||||
set foldlevelstart=10
|
set foldlevelstart=10
|
||||||
set selectmode=key
|
|
||||||
set keymodel=startsel
|
|
||||||
set tabstop=2
|
|
||||||
set shiftwidth=2
|
|
||||||
set softtabstop=2
|
|
||||||
set shiftround
|
|
||||||
set linebreak
|
|
||||||
set breakindent
|
|
||||||
set nosmarttab
|
set nosmarttab
|
||||||
set title
|
|
||||||
set redrawtime=500
|
|
||||||
set ttimeoutlen=10
|
set ttimeoutlen=10
|
||||||
set nowritebackup
|
set nowritebackup
|
||||||
set undofile
|
set undofile
|
||||||
set undolevels=1000
|
set undolevels=1000
|
||||||
set undoreload=10000
|
set undoreload=10000
|
||||||
|
set nrformats+=alpha
|
||||||
set complete+=kspell
|
set complete+=kspell
|
||||||
set completeopt=menu,menuone,noinsert,noselect
|
set completeopt=menu,menuone,noinsert,noselect
|
||||||
set listchars+=precedes:<,extends:>
|
set listchars+=precedes:<,extends:>
|
||||||
set diffopt+=algorithm:histogram,indent-heuristic
|
set diffopt+=algorithm:histogram,indent-heuristic
|
||||||
set diffopt+=foldcolumn:0
|
set diffopt+=foldcolumn:0
|
||||||
|
set diffopt+=vertical
|
||||||
set fillchars=diff:\ ,eob:\ ,stlnc:\ ,stl:\ ,vert:\│
|
set fillchars=diff:\ ,eob:\ ,stlnc:\ ,stl:\ ,vert:\│
|
||||||
set formatoptions+=nl
|
set formatoptions+=n
|
||||||
set formatoptions-=crot
|
set formatoptions-=crot
|
||||||
let formatlistpat='^\s*\(\d\+[\]:.)}\t ]\|[*-][\t ]\)\s*'
|
let formatlistpat='^\s*\(\d\+[\]:.)}\t ]\|[*-][\t ]\)\s*'
|
||||||
match ErrorMsg '^\(<\|=\|>\)\{7\}\([^=].\+\)\?$'
|
match ErrorMsg '^\(<\|=\|>\)\{7\}\([^=].\+\)\?$'
|
||||||
|
|
|
@ -1,23 +0,0 @@
|
||||||
scriptencoding utf-8
|
|
||||||
|
|
||||||
let g:modes={
|
|
||||||
\ 'n' : ['%3*','NORMAL'],
|
|
||||||
\ 'no' : ['%3*','N·OPERATOR PENDING'],
|
|
||||||
\ 'v' : ['%5*','VISUAL'],
|
|
||||||
\ 'V' : ['%5*','V·LINE'],
|
|
||||||
\ '' : ['%5*','V·BLOCK'],
|
|
||||||
\ 's' : ['%7*','SELECT'],
|
|
||||||
\ 'S' : ['%7*','S·LINE'],
|
|
||||||
\ '' : ['%7*','S·BLOCK'],
|
|
||||||
\ 'i' : ['%4*','INSERT'],
|
|
||||||
\ 'R' : ['%2*','REPLACE'],
|
|
||||||
\ 'Rv' : ['%2*','V·REPLACE'],
|
|
||||||
\ 'c' : ['%6*','COMMAND'],
|
|
||||||
\ 'cv' : ['%6*','VIM EX'],
|
|
||||||
\ 'ce' : ['%6*','EX'],
|
|
||||||
\ 'r' : ['%1*','PROMPT'],
|
|
||||||
\ 'rm' : ['%1*','MORE'],
|
|
||||||
\ 'r?' : ['%1*','CONFIRM'],
|
|
||||||
\ '!' : ['%*1','SHELL'],
|
|
||||||
\ 't' : ['%*1','TERMINAL']
|
|
||||||
\}
|
|
|
@ -1 +0,0 @@
|
||||||
set tabline=%!dead#tabline#Tabline()
|
|
|
@ -54,8 +54,8 @@ super + ctrl + {d,p}
|
||||||
super + {_,shift} + g
|
super + {_,shift} + g
|
||||||
{grabar,corte}
|
{grabar,corte}
|
||||||
|
|
||||||
super + {z,x,v,c}
|
super + {z,x,v,c,i}
|
||||||
$TERMINAL {_,--class=flota,--class=flota -e pulsemixer,--class=flota -e nvim +Mail +1bw +startinsert}
|
$TERMINAL {_,--class=flota,--class=flota -e pulsemixer,--class=flota -e nvim +Mail +1bw +startinsert,-e irk}
|
||||||
|
|
||||||
super + {F1,F2,F3}
|
super + {F1,F2,F3}
|
||||||
{fecha,tapa,notifocus}
|
{fecha,tapa,notifocus}
|
||||||
|
|
|
@ -1,13 +1,15 @@
|
||||||
set adjust-open "best-fit"
|
set adjust-open "best-fit"
|
||||||
set pages-per-row 1
|
set pages-per-row 1
|
||||||
set scroll-full-overlap 0.01
|
set scroll-full-overlap 0.01
|
||||||
set scroll-page-aware "true"
|
|
||||||
set scroll-step 100
|
set scroll-step 100
|
||||||
set selection-clipboard clipboard
|
set selection-clipboard clipboard
|
||||||
|
set scroll-page-aware "true"
|
||||||
set window-title-basename "true"
|
set window-title-basename "true"
|
||||||
set window-title-home-tilde "true"
|
set window-title-home-tilde "true"
|
||||||
set statusbar-basename "true"
|
set statusbar-basename "true"
|
||||||
set statusbar-home-tilde "true"
|
set statusbar-home-tilde "true"
|
||||||
|
set zoom-center "true"
|
||||||
|
set render-loading "false"
|
||||||
|
|
||||||
map r reload
|
map r reload
|
||||||
map R rotate
|
map R rotate
|
||||||
|
|
|
@ -6,7 +6,8 @@ alias \
|
||||||
z='zathura' \
|
z='zathura' \
|
||||||
b='bombadillo' \
|
b='bombadillo' \
|
||||||
g='git' \
|
g='git' \
|
||||||
se='sudoedit' \
|
vv='vi' \
|
||||||
|
se='doas vi' \
|
||||||
am='alsamixer -c 1' \
|
am='alsamixer -c 1' \
|
||||||
pm='pulsemixer' \
|
pm='pulsemixer' \
|
||||||
nb='newsboat -q' \
|
nb='newsboat -q' \
|
||||||
|
@ -14,7 +15,6 @@ alias \
|
||||||
ttx='txtnish timeline' \
|
ttx='txtnish timeline' \
|
||||||
ytv='straw-viewer' \
|
ytv='straw-viewer' \
|
||||||
vdf='nvim -d' \
|
vdf='nvim -d' \
|
||||||
irc='catgirl' \
|
|
||||||
play='mpd && ncmpcpp' \
|
play='mpd && ncmpcpp' \
|
||||||
pyserv='python -m http.server'
|
pyserv='python -m http.server'
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ alias \
|
||||||
alias \
|
alias \
|
||||||
xk='xbps-query' \
|
xk='xbps-query' \
|
||||||
deps='xbps-query -vRx' \
|
deps='xbps-query -vRx' \
|
||||||
upa='sudo xi' \
|
upa='doas xi' \
|
||||||
revdeps='xbps-query -vRX' \
|
revdeps='xbps-query -vRX' \
|
||||||
xp='xpkg -m > ~/doc/xbpaketes'
|
xp='xpkg -m > ~/doc/xbpaketes'
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@ alias \
|
||||||
alias \
|
alias \
|
||||||
lxs='tlmgr search --global' \
|
lxs='tlmgr search --global' \
|
||||||
lxl='tlmgr search' \
|
lxl='tlmgr search' \
|
||||||
lxi='sudo tlmgr install'
|
lxi='doas tlmgr install'
|
||||||
|
|
||||||
# Transmission
|
# Transmission
|
||||||
alias \
|
alias \
|
||||||
|
@ -78,7 +78,7 @@ alias \
|
||||||
ls='ls -AFt --color=always --group-directories-first' \
|
ls='ls -AFt --color=always --group-directories-first' \
|
||||||
grep='grep --color=tty -d skip' \
|
grep='grep --color=tty -d skip' \
|
||||||
dmesg='dmesg --color=always' \
|
dmesg='dmesg --color=always' \
|
||||||
vsv='sudo vsv -c yes' \
|
vsv='doas vsv -c yes' \
|
||||||
ip='ip -c' \
|
ip='ip -c' \
|
||||||
|
|
||||||
# Con opciones por defecto
|
# Con opciones por defecto
|
||||||
|
@ -93,13 +93,12 @@ alias \
|
||||||
dd='dd status=progress' \
|
dd='dd status=progress' \
|
||||||
dfc='dfc -dmT' \
|
dfc='dfc -dmT' \
|
||||||
wget="wget --no-hsts"
|
wget="wget --no-hsts"
|
||||||
slrn='slrn -i ~/.config/slrn/rc -f ~/.config/slrn/jnewsrc.club --create'
|
|
||||||
|
|
||||||
# Comandos
|
# Comandos
|
||||||
alias \
|
alias \
|
||||||
sudo='sudo ' \
|
sudo='doas ' \
|
||||||
reboot='sudo reboot' \
|
reboot='doas reboot' \
|
||||||
shutdown='sudo shutdown -h now' \
|
shutdown='doas shutdown -h now' \
|
||||||
path='echo -e ${PATH//:/\\n}' \
|
path='echo -e ${PATH//:/\\n}' \
|
||||||
wp='sxiv-rifle ~/img/wallpaper >/dev/null 2>&1' \
|
wp='sxiv-rifle ~/img/wallpaper >/dev/null 2>&1' \
|
||||||
pwn='chmod +x' \
|
pwn='chmod +x' \
|
||||||
|
|
|
@ -2,9 +2,16 @@ foreach plugin (
|
||||||
zsh-autopair/autopair.plugin.zsh
|
zsh-autopair/autopair.plugin.zsh
|
||||||
zsh-system-clipboard/zsh-system-clipboard.plugin.zsh
|
zsh-system-clipboard/zsh-system-clipboard.plugin.zsh
|
||||||
zsh-history-substring-search/zsh-history-substring-search.plugin.zsh
|
zsh-history-substring-search/zsh-history-substring-search.plugin.zsh
|
||||||
|
forgit/forgit.plugin.zsh
|
||||||
) {
|
) {
|
||||||
source $ZDOTDIR/conf/$plugin
|
source $ZDOTDIR/conf/$plugin
|
||||||
}
|
}
|
||||||
|
|
||||||
|
FORGIT_COPY_CMD='xclip -selection clipboard'
|
||||||
|
|
||||||
|
FORGIT_LOG_FZF_OPTS='
|
||||||
|
--bind="ctrl-e:execute(echo {} |grep -Eo [a-f0-9]+ |head -1 |xargs git show |vim -)"
|
||||||
|
'
|
||||||
|
|
||||||
HISTORY_SUBSTRING_SEARCH_ENSURE_UNIQUE=1
|
HISTORY_SUBSTRING_SEARCH_ENSURE_UNIQUE=1
|
||||||
typeset -g ZSH_SYSTEM_CLIPBOARD_TMUX_SUPPORT='true'
|
typeset -g ZSH_SYSTEM_CLIPBOARD_TMUX_SUPPORT='true'
|
||||||
|
|
|
@ -20,11 +20,9 @@ mail= :\
|
||||||
trash= :\
|
trash= :\
|
||||||
Trash= :\
|
Trash= :\
|
||||||
bin= :\
|
bin= :\
|
||||||
hexagons= :\
|
hexagons= :\
|
||||||
xresources= :\
|
xresources= :\
|
||||||
xinitrc= :\
|
xinitrc= :\
|
||||||
.Xdefaults= :\
|
|
||||||
.Xresources= :\
|
|
||||||
.bashprofile= :\
|
.bashprofile= :\
|
||||||
.zprofile= :\
|
.zprofile= :\
|
||||||
.bashrc= :\
|
.bashrc= :\
|
||||||
|
@ -38,16 +36,12 @@ xinitrc= :\
|
||||||
gitignore= :\
|
gitignore= :\
|
||||||
.jack-settings= :\
|
.jack-settings= :\
|
||||||
.mime.types= :\
|
.mime.types= :\
|
||||||
.nvidia-settings-rc= :\
|
|
||||||
.pam_environment= :\
|
.pam_environment= :\
|
||||||
.profile= :\
|
.profile= :\
|
||||||
.recently-used= :\
|
.recently-used= :\
|
||||||
.selected_editor= :\
|
.selected_editor= :\
|
||||||
.vimrc= :\
|
.vimrc= :\
|
||||||
.xinputrc= :\
|
|
||||||
.xserverrc= :\
|
|
||||||
config= :\
|
config= :\
|
||||||
dropbox= :\
|
|
||||||
exact-match-case-sensitive-1.txt=X1:\
|
exact-match-case-sensitive-1.txt=X1:\
|
||||||
exact-match-case-sensitive-2=X2:\
|
exact-match-case-sensitive-2=X2:\
|
||||||
favicon.ico= :\
|
favicon.ico= :\
|
||||||
|
@ -64,17 +58,15 @@ node_modules= :\
|
||||||
procfile= :\
|
procfile= :\
|
||||||
react.jsx= :\
|
react.jsx= :\
|
||||||
user-dirs.dirs= :\
|
user-dirs.dirs= :\
|
||||||
Makefile= :\
|
Makefile= :\
|
||||||
TODO= :\
|
TODO= :\
|
||||||
LICENSE= :\
|
LICENSE= :\
|
||||||
COPYING= :\
|
COPYING= :\
|
||||||
*.vim= :\
|
*.vim= :\
|
||||||
*.dmg= :\
|
*.dmg= :\
|
||||||
*.tlf= :\
|
|
||||||
*.flf= :\
|
|
||||||
*.toml= :\
|
*.toml= :\
|
||||||
*.m3u= :\
|
*.m3u= :\
|
||||||
*.pls= :\
|
*.pls= :\
|
||||||
*.woff=𝑾:\
|
*.woff=𝑾:\
|
||||||
*.woff2=𝑾:\
|
*.woff2=𝑾:\
|
||||||
*.eot=𝑬:\
|
*.eot=𝑬:\
|
||||||
|
@ -86,7 +78,6 @@ COPYING= :\
|
||||||
*.doc= :\
|
*.doc= :\
|
||||||
*.docx= :\
|
*.docx= :\
|
||||||
*.webp= :\
|
*.webp= :\
|
||||||
*.aseprite= :\
|
|
||||||
*.bib= :\
|
*.bib= :\
|
||||||
*.7z= :\
|
*.7z= :\
|
||||||
*.ai= :\
|
*.ai= :\
|
||||||
|
|
|
@ -40,6 +40,17 @@ tmux_sessions() {
|
||||||
: # Start terminal normally
|
: # Start terminal normally
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
if [[ -z $TMUX ]]; then
|
|
||||||
|
tmux_base_session(){
|
||||||
|
client_cnt="$(tmux list-clients | wc -l 2>/dev/null)"
|
||||||
|
if [[ $client_cnt -eq 0 ]]; then
|
||||||
|
tmux new-session -d -s z
|
||||||
|
tmux attach-session -t z
|
||||||
|
else
|
||||||
tmux_sessions
|
tmux_sessions
|
||||||
fi
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
if [[ -z $TMUX ]]; then
|
||||||
|
tmux_base_session
|
||||||
|
fi
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
cd ~/.local/bin || exit
|
cd ~/.local/bin || exit
|
||||||
fd -c always -t f -d 1 | fzf -m --cycle --preview='bat --color=always {}' --height='45%' | xargs -r "$EDITOR"
|
fd -c always -t f -d 1 | fzf +m --cycle --preview-window=right:90%:wrap --preview='bat --color=always {}' --height='45%' | xargs -r "$EDITOR"
|
||||||
|
|
|
@ -1,19 +1,19 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
send_notification() {
|
send_notification() {
|
||||||
icon="$HOME/.local/share/icons/Marwaita-Dark/24x24/actions/contrast.svg"
|
icon="$XDG_DATA_HOME/icons/Haiku/scalable/status/dialog-information.svg"
|
||||||
dunstify -i "$icon" -r 5555 -u low " $(printf %.0f%% "$(xbacklight -get)")"
|
dunstify -i "$icon" -r 5555 -u low " $(printf %.0f%% "$(xbacklight -get)")"
|
||||||
}
|
}
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
up)
|
up)
|
||||||
# increase the backlight by 5%
|
# increase the backlight by 5%
|
||||||
xbacklight -inc 5
|
xbacklight -inc 5
|
||||||
send_notification
|
send_notification
|
||||||
;;
|
;;
|
||||||
down)
|
down)
|
||||||
# decrease the backlight by 5%
|
# decrease the backlight by 5%
|
||||||
xbacklight -dec 5
|
xbacklight -dec 5
|
||||||
send_notification
|
send_notification
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
@ -4,12 +4,14 @@ NUM=$(bspc query -M --names | awk 'END {print NR}')
|
||||||
|
|
||||||
if [ "$NUM" = 1 ]; then
|
if [ "$NUM" = 1 ]; then
|
||||||
bspc monitor -d 1 2 3 4 5 6 7 8 9 10
|
bspc monitor -d 1 2 3 4 5 6 7 8 9 10
|
||||||
bspc config top_padding 0
|
bspc config top_padding 0
|
||||||
bspc config bottom_padding 0
|
bspc config bottom_padding 0
|
||||||
bspc config single_monocle true
|
bspc config single_monocle true
|
||||||
bspc config borderless_monocle true
|
bspc config borderless_monocle true
|
||||||
|
bspc config remove_disabled_monitors true
|
||||||
|
bspc config remove_unplugged_monitors true
|
||||||
bspc rule -a Firefox:Navigator state=tiled desktop='^2'
|
bspc rule -a Firefox:Navigator state=tiled desktop='^2'
|
||||||
hsetroot -solid #080808
|
hsetroot -solid "#080808"
|
||||||
elif [ "$NUM" = 2 ]; then
|
elif [ "$NUM" = 2 ]; then
|
||||||
pri=$(bspc query -M --names | awk NR==1)
|
pri=$(bspc query -M --names | awk NR==1)
|
||||||
sec=$(bspc query -M --names | awk NR==2)
|
sec=$(bspc query -M --names | awk NR==2)
|
||||||
|
@ -19,8 +21,10 @@ elif [ "$NUM" = 2 ]; then
|
||||||
bspc config -m "$pri" bottom_padding 0
|
bspc config -m "$pri" bottom_padding 0
|
||||||
bspc config -m "$sec" top_padding 3
|
bspc config -m "$sec" top_padding 3
|
||||||
bspc config -m "$sec" bottom_padding 23
|
bspc config -m "$sec" bottom_padding 23
|
||||||
bspc config single_monocle false
|
bspc config single_monocle false
|
||||||
bspc config borderless_monocle false
|
bspc config borderless_monocle false
|
||||||
|
bspc config remove_unplugged_monitors false
|
||||||
|
bspc config remove_disabled_monitors false
|
||||||
bspc rule -a Firefox:Navigator state=tiled desktop='^6'
|
bspc rule -a Firefox:Navigator state=tiled desktop='^6'
|
||||||
randbg &
|
randbg &
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
notify-send -u critical -i ~/img/.icn/control.png "Limpieza Mensual" "Es hora de vaciar el cache" &
|
ICON="$XDG_DATA_HOME/icons/Haiku/scalable/actions/process-stop.svg"
|
||||||
|
|
||||||
|
notify-send -u critical -i "$ICON" "Limpieza Mensual" "Es hora de vaciar el cache" &
|
||||||
sleep 10s
|
sleep 10s
|
||||||
alacritty --class=flota -e sudo xbps-remove -vO
|
alacritty --class=flota -e sudo xbps-remove -vO
|
||||||
|
|
|
@ -1,18 +1,21 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
ICON_OK="$XDG_DATA_HOME/icons/Haiku/scalable/mimetypes/gnome-mime-video.svg"
|
||||||
|
ICON_I="$XDG_DATA_HOME/icons/Haiku/scalable/emblems/emblem-important.svg"
|
||||||
|
|
||||||
if [ -f "/tmp/blaze-pid" ]; then
|
if [ -f "/tmp/blaze-pid" ]; then
|
||||||
recpid="$(cat /tmp/blaze-pid)"
|
recpid="$(cat /tmp/blaze-pid)"
|
||||||
# kill with SIGTERM, allowing finishing touches.
|
# kill with SIGTERM, allowing finishing touches.
|
||||||
kill -15 "$recpid"
|
kill -15 "$recpid"
|
||||||
rm -f /tmp/blaze-pid
|
rm -f /tmp/blaze-pid
|
||||||
# even after SIGTERM, ffmpeg may still run, so SIGKILL it.
|
# even after SIGTERM, ffmpeg may still run, so SIGKILL it.
|
||||||
(
|
(
|
||||||
sleep 3
|
sleep 3
|
||||||
kill -9 "$recpid"
|
kill -9 "$recpid"
|
||||||
) >/dev/null 2>&1 &
|
) > /dev/null 2>&1 &
|
||||||
notify-send -t 5000 "Grabación Terminada"
|
notify-send -t 5000 -i "$ICON_OK" "Grabación Terminada"
|
||||||
exit
|
exit
|
||||||
else
|
else
|
||||||
notify-send -t 5000 "Grabación inactiva"
|
notify-send -t 5000 -i "$ICON_I" "Grabación inactiva"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -50,7 +50,7 @@ articulo() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
abrir() { ${TERMINAL:-alacritty} --class=flota -e nvim "$@"; }
|
abrir() { ${TERMINAL:-alacritty} --class=flota -e "$EDITOR" "$@"; }
|
||||||
|
|
||||||
listar() { rofi -dmenu "$@"; }
|
listar() { rofi -dmenu "$@"; }
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
notify-send -u low -t 5000 -i ~/img/.icn/calendar.png "$(date +'%A %d de %B %H:%M')"
|
ICON="$XDG_DATA_HOME/icons/Haiku/scalable/apps/evolution-calendar.svg"
|
||||||
|
notify-send -u low -t 5000 -i "$ICON" "$(date +'%A %d de %B %H:%M')"
|
||||||
|
|
|
@ -4,6 +4,9 @@
|
||||||
# https://github.com/cherrry9/blaze/
|
# https://github.com/cherrry9/blaze/
|
||||||
# modificado por deadguy
|
# modificado por deadguy
|
||||||
|
|
||||||
|
ICON_NO="$XDG_DATA_HOME/icons/Haiku/scalable/actions/process-stop.svg"
|
||||||
|
ICON_RECORD="$XDG_DATA_HOME/icons/Haiku/scalable/devices/gnome-dev-camera.svg"
|
||||||
|
|
||||||
output="$HOME/vid/Screen/$(date '+%F_%H_%M').mp4"
|
output="$HOME/vid/Screen/$(date '+%F_%H_%M').mp4"
|
||||||
fps=60
|
fps=60
|
||||||
m() { rofi -dmenu -i -no-custom "$@"; }
|
m() { rofi -dmenu -i -no-custom "$@"; }
|
||||||
|
@ -11,78 +14,78 @@ m() { rofi -dmenu -i -no-custom "$@"; }
|
||||||
method="$(printf "Pantalla\nSelección" | m -p " ")"
|
method="$(printf "Pantalla\nSelección" | m -p " ")"
|
||||||
|
|
||||||
if [ "$method" = "Pantalla" ]; then
|
if [ "$method" = "Pantalla" ]; then
|
||||||
# get information about the display
|
# get information about the display
|
||||||
monitors="$(xrandr --listmonitors | awk 'NR>1 { printf $NF"\n" }')"
|
monitors="$(xrandr --listmonitors | awk 'NR>1 { printf $NF"\n" }')"
|
||||||
|
|
||||||
# if there's only one display, use that and skip asking
|
# if there's only one display, use that and skip asking
|
||||||
if [ "$(printf "%b\n" "$monitors" | wc -l)" = 1 ]; then
|
if [ "$(printf "%b\n" "$monitors" | wc -l)" = 1 ]; then
|
||||||
display="$monitors"
|
display="$monitors"
|
||||||
else # if there are other displays ask the user which one to use
|
else # if there are other displays ask the user which one to use
|
||||||
[ ! "$display" ] && display="$(printf "%b" "$monitors" | m -p "Pantalla")"
|
[ ! "$display" ] && display="$(printf "%b" "$monitors" | m -p "Pantalla")"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
set -- $(xrandr -q | grep "$display" | grep -oP '\d*x\d*\+\d*\+\d*' | tr '+x' ' ')
|
set -- $(xrandr -q | grep "$display" | grep -oP '\d*x\d*\+\d*\+\d*' | tr '+x' ' ')
|
||||||
|
|
||||||
width="$1"
|
width="$1"
|
||||||
height="$2"
|
height="$2"
|
||||||
offX="$3"
|
offX="$3"
|
||||||
offY="$4"
|
offY="$4"
|
||||||
|
|
||||||
sonido="$(printf "Sí\nNo" | m -p "Audio")"
|
sonido="$(printf "Sí\nNo" | m -p "Audio")"
|
||||||
|
|
||||||
if [ "$sonido" = "Sí" ]; then
|
if [ "$sonido" = "Sí" ]; then
|
||||||
# find default audio device
|
# find default audio device
|
||||||
pacmd="$(pacmd list-sources | grep -i -B 1 output)"
|
pacmd="$(pacmd list-sources | grep -i -B 1 output)"
|
||||||
dev="$(echo "$pacmd" | grep -i '\* index' ||
|
dev="$(echo "$pacmd" | grep -i '\* index' ||
|
||||||
echo "$pacmd" | grep -i 'index' | head -n 1)"
|
echo "$pacmd" | grep -i 'index' | head -n 1)"
|
||||||
audio="-f pulse -i $(echo "$dev" | grep -o '[0-9]')"
|
audio="-f pulse -i $(echo "$dev" | grep -o '[0-9]')"
|
||||||
else
|
else
|
||||||
audio=""
|
audio=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
elif [ "$method" = "Selección" ]; then
|
elif [ "$method" = "Selección" ]; then
|
||||||
gif="$(printf "Sí\nNo" | m -p "Gif")"
|
gif="$(printf "Sí\nNo" | m -p "Gif")"
|
||||||
|
|
||||||
if [ "$gif" = "Sí" ]; then
|
if [ "$gif" = "Sí" ]; then
|
||||||
output="$HOME/vid/Screen/$(date '+%F_%H_%M').gif"
|
output="$HOME/vid/Screen/$(date '+%F_%H_%M').gif"
|
||||||
fps=15
|
fps=15
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# select an area and make each number a separate word
|
# select an area and make each number a separate word
|
||||||
set -- $(slop -f '%w %h %x %y')
|
set -- $(slop -f '%w %h %x %y')
|
||||||
|
|
||||||
# get information about the display
|
# get information about the display
|
||||||
width="$1"
|
width="$1"
|
||||||
height="$2"
|
height="$2"
|
||||||
offX="$3"
|
offX="$3"
|
||||||
offY="$4"
|
offY="$4"
|
||||||
|
|
||||||
[ "$((width % 2))" = 1 ] && width="$((width + 1))"
|
[ "$((width % 2))" = 1 ] && width="$((width + 1))"
|
||||||
[ "$((height % 2))" = 1 ] && height="$((height + 1))"
|
[ "$((height % 2))" = 1 ] && height="$((height + 1))"
|
||||||
else
|
else
|
||||||
notify-send -t 3000 -u critical "Método inválido"
|
notify-send -t 3000 -u critical -i "$ICON_NO" "Método inválido"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# ask the user if they want to start the recording
|
# ask the user if they want to start the recording
|
||||||
[ ! "$ready" ] && ready="$(printf "Sí\nNo" | m -p "Empezar")"
|
[ ! "$ready" ] && ready="$(printf "Sí\nNo" | m -p "Empezar")"
|
||||||
|
|
||||||
[ "$ready" = "Sí" ] && {
|
[ "$ready" = "Sí" ] && {
|
||||||
notify-send -t 2000 "Grabando"
|
notify-send -t 2000 -i "$ICON_RECORD" "Grabando"
|
||||||
|
|
||||||
ffmpeg \
|
ffmpeg \
|
||||||
-loglevel error \
|
-loglevel error \
|
||||||
-y \
|
-y \
|
||||||
-thread_queue_size 4096 \
|
-thread_queue_size 4096 \
|
||||||
$audio \
|
$audio \
|
||||||
-f x11grab \
|
-f x11grab \
|
||||||
-draw_mouse 1 \
|
-draw_mouse 1 \
|
||||||
-s "${width}x$height" \
|
-s "${width}x$height" \
|
||||||
-r "$fps" \
|
-r "$fps" \
|
||||||
-i "$DISPLAY.0+$offX,$offY" \
|
-i "$DISPLAY.0+$offX,$offY" \
|
||||||
-pix_fmt yuv420p \
|
-pix_fmt yuv420p \
|
||||||
-q:v 0 \
|
-q:v 0 \
|
||||||
"$output" &
|
"$output" &
|
||||||
|
|
||||||
echo $! >/tmp/blaze-pid
|
echo $! > /tmp/blaze-pid
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,31 +3,31 @@
|
||||||
file="/tmp/.minimized"
|
file="/tmp/.minimized"
|
||||||
touch "$file"
|
touch "$file"
|
||||||
lines=$(awk 'END{print NR}' "$file")
|
lines=$(awk 'END{print NR}' "$file")
|
||||||
icon="$XDG_DATA_HOME/icons/Marwaita-Dark/24x24/categories/preferences-system-windows.svg"
|
icon="$HOME/img/.icn/Deskbar_Window_Visible.svg"
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
hide)
|
hide)
|
||||||
if [ "$lines" -ge 15 ]; then
|
if [ "$lines" -ge 15 ]; then
|
||||||
notify-send -i "$icon" "15 ventanas minimizadas" "Mejor cerrar algunas antes de esconder todavía más"
|
notify-send -i "$icon" "15 ventanas minimizadas" "Mejor cerrar algunas antes de esconder todavía más"
|
||||||
else
|
else
|
||||||
focusedNode=$(bspc query -N -n .focused)
|
focusedNode=$(bspc query -N -n .focused)
|
||||||
focusedID=$(bspc query -D -d --names)
|
focusedID=$(bspc query -D -d --names)
|
||||||
focusedName=$(xprop -id "$focusedNode" WM_NAME | cut -d\" -f2)
|
focusedName=$(xprop -id "$focusedNode" WM_NAME | cut -d\" -f2)
|
||||||
|
|
||||||
echo "$focusedNode $focusedID $focusedName" >> "$file"
|
echo "$focusedNode $focusedID $focusedName" >> "$file"
|
||||||
xdo hide "$focusedNode"
|
xdo hide "$focusedNode"
|
||||||
notiflines="$((lines +1))"
|
notiflines="$((lines + 1))"
|
||||||
notify-send -i "$icon" "${notiflines} ventanas escondidas." "$focusedName"
|
notify-send -i "$icon" "${notiflines} ventanas escondidas." "$focusedName"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
show)
|
show)
|
||||||
[ -z "$file" ] && exit
|
[ -z "$file" ] && exit
|
||||||
|
|
||||||
sel=$(awk '{print $2,$3}' "$file" | rofi -dmenu -p ' ')
|
sel=$(awk '{print $2,$3}' "$file" | rofi -dmenu -p ' ')
|
||||||
selectedID=$(awk -v pat="$sel" '$0~pat {print $1}' "$file")
|
selectedID=$(awk -v pat="$sel" '$0~pat {print $1}' "$file")
|
||||||
selectedDesktop=$(awk -v pat="$sel" '$0~pat {print $2}' "$file")
|
selectedDesktop=$(awk -v pat="$sel" '$0~pat {print $2}' "$file")
|
||||||
bspc desktop -f "$selectedDesktop"
|
bspc desktop -f "$selectedDesktop"
|
||||||
xdo show "$selectedID"
|
xdo show "$selectedID"
|
||||||
sed -i "/${sel}/d" "$file"
|
sed -i "/${sel}/d" "$file"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
@ -2,20 +2,25 @@
|
||||||
|
|
||||||
file=$HOME/img/scrot/"$(date +%F_%H_%M)".png
|
file=$HOME/img/scrot/"$(date +%F_%H_%M)".png
|
||||||
vent=$(bspc query -N -n .focused)
|
vent=$(bspc query -N -n .focused)
|
||||||
|
icon="$XDG_DATA_HOME/icons/Haiku/scalable/apps/applets-screenshooter.svg"
|
||||||
|
|
||||||
|
notify() {
|
||||||
|
notify-send -i "$icon" "Pantalla Capturada"
|
||||||
|
}
|
||||||
|
|
||||||
case "$(printf "Seleccion\\nVentana\\nPantalla\\nCopiar seleccion\\nCopiar ventana\\nCopiar pantalla" | rofi -dmenu -p " ")" in
|
case "$(printf "Seleccion\\nVentana\\nPantalla\\nCopiar seleccion\\nCopiar ventana\\nCopiar pantalla" | rofi -dmenu -p " ")" in
|
||||||
"Seleccion") maim -us "$file" ;;
|
"Seleccion") maim -us "$file" ;;
|
||||||
"Ventana") maim -ui "$(printf "%d\n" $vent)" "$file" ;;
|
"Ventana") maim -ui "$(printf "%d\n" $vent)" "$file" ;;
|
||||||
"Pantalla")
|
"Pantalla")
|
||||||
conectados=$(xrandr | awk '( $2 == "connected" ) { count++ } END { print count }')
|
conectados=$(xrandr | awk '( $2 == "connected" ) { count++ } END { print count }')
|
||||||
if [ "$conectados" = 1 ]; then
|
if [ "$conectados" = 1 ]; then
|
||||||
maim -u "$file"
|
maim -u "$file"
|
||||||
elif [ "$conectados" = 2 ]; then
|
elif [ "$conectados" = 2 ]; then
|
||||||
moni="$(xrandr | awk '( $2 == "connected" ) { print $1 }' | rofi -dmenu -p "Pantalla")"
|
moni="$(xrandr | awk '( $2 == "connected" ) { print $1 }' | rofi -dmenu -p "Pantalla")"
|
||||||
maim -u "$moni" "$file"
|
maim -u "$moni" "$file"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
"Copiar seleccion") maim -us | xclip -selection clipboard -t image/png ;;
|
"Copiar seleccion") maim -us | xclip -selection clipboard -t image/png && notify ;;
|
||||||
"Copiar ventana") maim -ui "$(printf "%d\n" "$vent")" | xclip -selection clipboard -t image/png ;;
|
"Copiar ventana") maim -ui "$(printf "%d\n" "$vent")" | xclip -selection clipboard -t image/png && notify ;;
|
||||||
"Copiar pantalla") maim -u | xclip -selection clipboard -t image/png ;;
|
"Copiar pantalla") maim -u | xclip -selection clipboard -t image/png && notify ;;
|
||||||
esac
|
esac
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
#!/bin/zsh
|
#!/bin/zsh
|
||||||
|
|
||||||
icon1="$HOME/img/.icn/trans1.png"
|
icon="$XDG_DATA_HOME/icons/Haiku/scalable/apps/transmission.svg"
|
||||||
icon2="$HOME/img/.icn/trans2.png"
|
|
||||||
|
|
||||||
killall transmission-daemon 2> /dev/null
|
killall transmission-daemon 2> /dev/null
|
||||||
transmission-daemon --foreground --log-info 2>&1 | while read line; do
|
transmission-daemon --foreground --log-info 2>&1 | while read line; do
|
||||||
|
@ -10,9 +9,9 @@ transmission-daemon --foreground --log-info 2>&1 | while read line; do
|
||||||
grep -v "Saved.*variant.c:" |
|
grep -v "Saved.*variant.c:" |
|
||||||
while read line; do
|
while read line; do
|
||||||
echo $line | grep -q "Queued for verification (verify.c:" &&
|
echo $line | grep -q "Queued for verification (verify.c:" &&
|
||||||
notify-send -i "$icon1" --app-name="Transmission Started" "${line#* * }"
|
notify-send -i "$icon" --app-name="Transmission Started" "${line#* * }"
|
||||||
echo $line | grep -q "changed from .Incomplete. to .Complete." &&
|
echo $line | grep -q "changed from .Incomplete. to .Complete." &&
|
||||||
notify-send -i "$icon2" --app-name="Transmission Complete" "${line#* * }"
|
notify-send -i "$icon" --app-name="Transmission Complete" "${line#* * }"
|
||||||
# echo $line | systemd-cat --identifier="TransWrap" --priority=5
|
# echo $line | systemd-cat --identifier="TransWrap" --priority=5
|
||||||
done 2>&1 > /dev/null
|
done 2>&1 > /dev/null
|
||||||
done&disown
|
done&disown
|
||||||
|
|
|
@ -20,15 +20,8 @@ tele() {
|
||||||
mpv https://twitch.tv/"$canal"
|
mpv https://twitch.tv/"$canal"
|
||||||
}
|
}
|
||||||
|
|
||||||
shutub() {
|
MENU="$(printf "Twitch\\nTuto" | $m -p " ")"
|
||||||
video="$(rofi -theme dprompt -dmenu -i -p " ")" 2>/dev/null
|
|
||||||
[ -z "$video" ] && exit 0
|
|
||||||
mpv https://www.youtube.com/watch?v="$video"
|
|
||||||
}
|
|
||||||
|
|
||||||
MENU="$(printf "Twitch\\nYoutube\\nTuto" | $m -p " ")"
|
|
||||||
case $MENU in
|
case $MENU in
|
||||||
'Twitch') tele ;;
|
'Twitch') tele ;;
|
||||||
'Youtube') shutub ;;
|
|
||||||
'Tuto') tutos ;;
|
'Tuto') tutos ;;
|
||||||
esac
|
esac
|
||||||
|
|
|
@ -5,8 +5,8 @@ pri=$(xrandr | awk '( $2 == "connected" ) { print $1 }' | sed -sn 1p)
|
||||||
xrandr --output "$pri" --primary --auto --scale 1.0x1.0 "$(xrandr | awk '( $2 == "disconnected" {print "--output", $1, "--off"}' | paste -sd ' ')"
|
xrandr --output "$pri" --primary --auto --scale 1.0x1.0 "$(xrandr | awk '( $2 == "disconnected" {print "--output", $1, "--off"}' | paste -sd ' ')"
|
||||||
|
|
||||||
if [ -e /tmp/bspwm_0_0-socket ]; then
|
if [ -e /tmp/bspwm_0_0-socket ]; then
|
||||||
bspc config remove_disabled_monitors
|
bspc config remove_disabled_monitors true
|
||||||
bspc config remove_unplugged_monitors
|
bspc config remove_unplugged_monitors true
|
||||||
bspc monitor -d 1 2 3 4 5 6 7 8 9 10
|
bspc monitor -d 1 2 3 4 5 6 7 8 9 10
|
||||||
bspc rule -a Firefox:Navigator state=tiled, desktop='^2'
|
bspc rule -a Firefox:Navigator state=tiled, desktop='^2'
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
sudo xbps-install -Su
|
doas xbps-install -Su
|
||||||
echo "Actualizando la lista de paquetes..."
|
echo "Actualizando la lista de paquetes..."
|
||||||
paclist
|
paclist
|
||||||
echo "Listo."
|
echo "Listo."
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
conectados=$(xrandr | awk '( $2 == "connected" ) { count++ } END { print count }')
|
exec snooze -H \* -s 1h -t ./timefile sh -c 'randbg ; touch ./timefile'
|
||||||
|
|
||||||
[ "$conectados" = 2 ] && exec snooze -H \* -s 1h -t ./timefile sh -c 'randbg ; touch ./timefile' || exit
|
|
||||||
|
|
11
.zshenv
11
.zshenv
|
@ -5,6 +5,7 @@ else
|
||||||
export EDITOR="nvim"
|
export EDITOR="nvim"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
export EXINIT="set ai ic nu sm smd"
|
||||||
export VISUAL="$EDITOR"
|
export VISUAL="$EDITOR"
|
||||||
export GIT_EDITOR="$EDITOR"
|
export GIT_EDITOR="$EDITOR"
|
||||||
export TERMINAL="alacritty"
|
export TERMINAL="alacritty"
|
||||||
|
@ -29,7 +30,7 @@ export GPG_TTY=$(tty)
|
||||||
export GNUPGHOME="${XDG_DATA_HOME:-$HOME/.local/share}/gnupg"
|
export GNUPGHOME="${XDG_DATA_HOME:-$HOME/.local/share}/gnupg"
|
||||||
export SSH_ASKPASS="/bin/gnome-ssh-askpass"
|
export SSH_ASKPASS="/bin/gnome-ssh-askpass"
|
||||||
export PASSWORD_STORE_DIR="${XDG_DATA_HOME:-$HOME/.local/share}/pass"
|
export PASSWORD_STORE_DIR="${XDG_DATA_HOME:-$HOME/.local/share}/pass"
|
||||||
eval $(keychain --dir ~/.local/share/keychain --quiet --eval --noask --agents ssh,gpg id_rsa)
|
eval $(keychain --dir ~/.local/share/keychain --quiet --eval --noask --clear --agents ssh,gpg id_ed25519)
|
||||||
|
|
||||||
export NOTMUCH_CONFIG="${XDG_CONFIG_HOME:-$HOME/.config}/notmuch-config"
|
export NOTMUCH_CONFIG="${XDG_CONFIG_HOME:-$HOME/.config}/notmuch-config"
|
||||||
export WGETRC="${XDG_CONFIG_HOME:-$HOME/.config}/wget/wgetrc"
|
export WGETRC="${XDG_CONFIG_HOME:-$HOME/.config}/wget/wgetrc"
|
||||||
|
@ -53,15 +54,15 @@ eval "$(sed 's/^[^#].*/export &/g;t;d' ${DIR:-$XDG_CONFIG_HOME}/user-dirs.dirs)"
|
||||||
# }}}
|
# }}}
|
||||||
# FZF {{{
|
# FZF {{{
|
||||||
export FZF_DEFAULT_OPTS="--cycle \
|
export FZF_DEFAULT_OPTS="--cycle \
|
||||||
--color=bg:-1,hl:#5fff87,bg+:-1,hl+:#ffaf5f \
|
--color=bg:-1,hl:#5fff87,bg+:-1,hl+:#ffaf5f,border:#080808 \
|
||||||
--color=info:#af87ff,prompt:#5fff87,pointer:#ff87d7,marker:#ff87d7,spinner:#ff87d7 \
|
--color=info:#af87ff,prompt:#5fff87,pointer:#ff87d7,marker:#ff87d7,spinner:#ff87d7 \
|
||||||
--reverse \
|
--reverse \
|
||||||
--inline-info \
|
--inline-info \
|
||||||
--no-bold \
|
--no-bold \
|
||||||
--ansi \
|
--ansi \
|
||||||
--pointer='🡢' \
|
--pointer='🡢' \
|
||||||
--marker='⦁' \
|
--marker='⦁ ' \
|
||||||
--preview-window :wrap:noborder"
|
--preview-window :wrap:sharp"
|
||||||
|
|
||||||
export FZF_DEFAULT_COMMAND="fd -t f -c always -H"
|
export FZF_DEFAULT_COMMAND="fd -t f -c always -H"
|
||||||
export FZF_COMPLETION_OPTS='+c -x'
|
export FZF_COMPLETION_OPTS='+c -x'
|
||||||
|
@ -85,6 +86,6 @@ export LESSHISTFILE="-"
|
||||||
# }}}
|
# }}}
|
||||||
# Path {{{
|
# Path {{{
|
||||||
typeset -U PATH path
|
typeset -U PATH path
|
||||||
path=(~/.local/bin ~/.config/yarn/bin ~/.local/share/npm/bin $path[@])
|
path=(~/.local/bin ~/.config/yarn/bin ~/.local/share/npm/bin $GOPATH/bin $path[@])
|
||||||
# }}}
|
# }}}
|
||||||
# vim:foldmethod=marker:foldlevel=0
|
# vim:foldmethod=marker:foldlevel=0
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
ImageMagick
|
ImageMagick
|
||||||
|
MesaLib-devel
|
||||||
alacritty
|
alacritty
|
||||||
alsa-plugins-ffmpeg
|
alsa-plugins-ffmpeg
|
||||||
alsa-plugins-jack
|
alsa-plugins-jack
|
||||||
|
@ -13,6 +14,7 @@ bombadillo
|
||||||
bspwm
|
bspwm
|
||||||
catgirl
|
catgirl
|
||||||
chrony
|
chrony
|
||||||
|
cmake
|
||||||
cpupower
|
cpupower
|
||||||
cryptsetup
|
cryptsetup
|
||||||
delta
|
delta
|
||||||
|
@ -25,13 +27,14 @@ elogind
|
||||||
faac
|
faac
|
||||||
fd
|
fd
|
||||||
ffmpeg
|
ffmpeg
|
||||||
|
ffmpeg-devel
|
||||||
figlet
|
figlet
|
||||||
file-roller
|
file-roller
|
||||||
firefox
|
firefox
|
||||||
|
fontconfig-devel
|
||||||
freepats
|
freepats
|
||||||
fzf
|
fzf
|
||||||
gcc
|
gcc
|
||||||
giada
|
|
||||||
git
|
git
|
||||||
git-extras
|
git-extras
|
||||||
git-libsecret
|
git-libsecret
|
||||||
|
@ -49,19 +52,23 @@ hsetroot
|
||||||
htop
|
htop
|
||||||
hugo
|
hugo
|
||||||
i3lock-color
|
i3lock-color
|
||||||
|
inetutils-telnet
|
||||||
intel-ucode
|
intel-ucode
|
||||||
isync
|
isync
|
||||||
iwd
|
|
||||||
jack
|
jack
|
||||||
keychain
|
keychain
|
||||||
krita
|
krita
|
||||||
lf
|
lf
|
||||||
|
libX11-devel
|
||||||
|
libXcursor-devel
|
||||||
|
libXi-devel
|
||||||
libopenal
|
libopenal
|
||||||
libressl-devel
|
libressl-devel
|
||||||
librsvg
|
librsvg
|
||||||
librsvg-utils
|
librsvg-utils
|
||||||
libva-intel-driver
|
libva-intel-driver
|
||||||
lm_sensors
|
lm_sensors
|
||||||
|
love
|
||||||
maim
|
maim
|
||||||
mdadm
|
mdadm
|
||||||
mlocate
|
mlocate
|
||||||
|
@ -79,11 +86,13 @@ neovim-remote
|
||||||
newsboat
|
newsboat
|
||||||
nfs-utils
|
nfs-utils
|
||||||
nicotine+
|
nicotine+
|
||||||
|
ninja
|
||||||
nodejs
|
nodejs
|
||||||
notmuch
|
notmuch
|
||||||
noto-fonts-cjk
|
noto-fonts-cjk
|
||||||
noto-fonts-emoji
|
noto-fonts-emoji
|
||||||
noto-fonts-ttf
|
noto-fonts-ttf
|
||||||
|
opendoas
|
||||||
openjdk11
|
openjdk11
|
||||||
p7zip
|
p7zip
|
||||||
pass
|
pass
|
||||||
|
@ -97,7 +106,6 @@ pulseaudio
|
||||||
pulsemixer
|
pulsemixer
|
||||||
python3
|
python3
|
||||||
python3-pip
|
python3-pip
|
||||||
python3-urwid
|
|
||||||
qjackctl
|
qjackctl
|
||||||
ripgrep
|
ripgrep
|
||||||
rkhunter
|
rkhunter
|
||||||
|
@ -106,7 +114,6 @@ setxkbmap
|
||||||
shellcheck
|
shellcheck
|
||||||
shfmt
|
shfmt
|
||||||
simple-mtpfs
|
simple-mtpfs
|
||||||
slrn
|
|
||||||
snooze
|
snooze
|
||||||
socklog-void
|
socklog-void
|
||||||
straw-viewer
|
straw-viewer
|
||||||
|
|
Reference in New Issue