Update Dotfiles

This commit is contained in:
The-Repo-Club 2022-01-19 09:11:28 +00:00
parent fb31e5a307
commit ba6955b6b9
No known key found for this signature in database
GPG Key ID: E30EC2FBFB05C44F
45 changed files with 1225 additions and 1168 deletions

View File

@ -196,7 +196,7 @@
0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\0\Lighting\Keys\y=#ffffff 0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\0\Lighting\Keys\y=#ffffff
0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\0\Lighting\Keys\z=#ffffff 0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\0\Lighting\Keys\z=#ffffff
0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\0\Lighting\UseRealNames=true 0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\0\Lighting\UseRealNames=true
0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\0\Modified=d4b18181 0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\0\Modified=e8444e5b
0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\0\Name=Rainbow 0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\0\Name=Rainbow
0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\0\Performance\AngleSnap=false 0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\0\Performance\AngleSnap=false
0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\0\Performance\DPI\0=@Point(400 400) 0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\0\Performance\DPI\0=@Point(400 400)
@ -424,7 +424,7 @@
0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\1\Lighting\Keys\y=#ff0000 0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\1\Lighting\Keys\y=#ff0000
0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\1\Lighting\Keys\z=#ff0000 0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\1\Lighting\Keys\z=#ff0000
0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\1\Lighting\UseRealNames=true 0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\1\Lighting\UseRealNames=true
0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\1\Modified=8222ffc8 0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\1\Modified=24bed235
0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\1\Name=Breathing 0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\1\Name=Breathing
0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\1\Performance\AngleSnap=false 0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\1\Performance\AngleSnap=false
0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\1\Performance\DPI\0=@Point(400 400) 0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\1\Performance\DPI\0=@Point(400 400)
@ -674,7 +674,7 @@
0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\2\Lighting\Keys\y=#aa00ff 0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\2\Lighting\Keys\y=#aa00ff
0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\2\Lighting\Keys\z=#aa00ff 0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\2\Lighting\Keys\z=#aa00ff
0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\2\Lighting\UseRealNames=true 0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\2\Lighting\UseRealNames=true
0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\2\Modified=9724d216 0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\2\Modified=6ba42e90
0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\2\Name=Trippy 0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\2\Name=Trippy
0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\2\Performance\AngleSnap=false 0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\2\Performance\AngleSnap=false
0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\2\Performance\DPI\0=@Point(400 400) 0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\2\Performance\DPI\0=@Point(400 400)
@ -732,7 +732,7 @@
0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\CurrentMode={51EB6E3A-27A0-4AD6-A35C-6B67E0329A3D} 0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\CurrentMode={51EB6E3A-27A0-4AD6-A35C-6B67E0329A3D}
0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\HwModified=7ffd 0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\HwModified=7ffd
0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\ModeCount=3 0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\ModeCount=3
0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\Modified=77b8c97c 0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\Modified=aedccb22
0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\Name=Multi 0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\Name=Multi
0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\0\Binding\KeyMap=K68 GB 0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\0\Binding\KeyMap=K68 GB
0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\0\Binding\UseRealNames=true 0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\0\Binding\UseRealNames=true
@ -928,7 +928,7 @@
0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\0\Lighting\Keys\y=#ffffff 0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\0\Lighting\Keys\y=#ffffff
0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\0\Lighting\Keys\z=#ffffff 0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\0\Lighting\Keys\z=#ffffff
0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\0\Lighting\UseRealNames=true 0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\0\Lighting\UseRealNames=true
0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\0\Modified=26625075 0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\0\Modified=c6e8dc6f
0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\0\Name=Rainbow 0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\0\Name=Rainbow
0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\0\Performance\AngleSnap=false 0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\0\Performance\AngleSnap=false
0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\0\Performance\DPI\0=@Point(400 400) 0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\0\Performance\DPI\0=@Point(400 400)
@ -1156,7 +1156,7 @@
0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\1\Lighting\Keys\y=#ff0000 0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\1\Lighting\Keys\y=#ff0000
0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\1\Lighting\Keys\z=#ff0000 0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\1\Lighting\Keys\z=#ff0000
0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\1\Lighting\UseRealNames=true 0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\1\Lighting\UseRealNames=true
0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\1\Modified=424f9a00 0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\1\Modified=8ba8eade
0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\1\Name=Breathing 0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\1\Name=Breathing
0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\1\Performance\AngleSnap=false 0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\1\Performance\AngleSnap=false
0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\1\Performance\DPI\0=@Point(400 400) 0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\1\Performance\DPI\0=@Point(400 400)
@ -1406,7 +1406,7 @@
0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\2\Lighting\Keys\y=#aa00ff 0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\2\Lighting\Keys\y=#aa00ff
0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\2\Lighting\Keys\z=#aa00ff 0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\2\Lighting\Keys\z=#aa00ff
0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\2\Lighting\UseRealNames=true 0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\2\Lighting\UseRealNames=true
0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\2\Modified=f683cdcc 0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\2\Modified=93e6032f
0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\2\Name=Trippy 0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\2\Name=Trippy
0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\2\Performance\AngleSnap=false 0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\2\Performance\AngleSnap=false
0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\2\Performance\DPI\0=@Point(400 400) 0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\2\Performance\DPI\0=@Point(400 400)
@ -1464,7 +1464,7 @@
0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\CurrentMode={57C94A3A-80E6-4182-B067-6D4A14AD497C} 0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\CurrentMode={57C94A3A-80E6-4182-B067-6D4A14AD497C}
0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\HwModified=40b6f054 0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\HwModified=40b6f054
0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\ModeCount=3 0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\ModeCount=3
0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\Modified=36e89ae6 0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\Modified=25b8859b
0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\Name=Demo 0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\Name=Demo
[Popups] [Popups]

Binary file not shown.

View File

@ -1,5 +1,18 @@
# pacman functions # pacman functions
function pacman function pacman
set red "\033[0;31m"
set end "\033[0m"
set num 1
while test -f /var/lib/pacman/db.lck;
if test $num -eq 1
printf "$red Error$end: %s\n" "pacman is in use, will continue after operation."
set num 2
end
sleep 2 &
wait $last_pid
end
if [ "$argv" != "-c" ] if [ "$argv" != "-c" ]
command sudo pacman --color auto $argv command sudo pacman --color auto $argv
else else

View File

@ -31,7 +31,8 @@
(history-item "image-scale" 0) (history-item "image-scale" 0)
(history-item "select-all" 0) (history-item "select-all" 0)
(history-item "tools-bucket-fill" 0) (history-item "tools-bucket-fill" 0)
(history-item "file-save-as" 1) (history-item "file-save-as" 0)
(history-item "file-web-export" 0)
(history-item "filters-curves" 0) (history-item "filters-curves" 0)
(history-item "tools-unified-transform" 0) (history-item "tools-unified-transform" 0)
(history-item "select-border" 0) (history-item "select-border" 0)
@ -99,6 +100,5 @@
(history-item "layers-mask-delete" 0) (history-item "layers-mask-delete" 0)
(history-item "filters-gaussian-blur" 0) (history-item "filters-gaussian-blur" 0)
(history-item "dialogs-about" 0) (history-item "dialogs-about" 0)
(history-item "tools-smudge" 0)
# end of action-history # end of action-history

View File

@ -11,9 +11,8 @@
(size 620 200)) (size 620 200))
(session-info "toplevel" (session-info "toplevel"
(factory-entry "gimp-single-image-window") (factory-entry "gimp-single-image-window")
(position 6 32) (position 962 32)
(size 1906 1014) (size 950 1014)
(monitor 1)
(open-on-exit) (open-on-exit)
(aux-info (aux-info
(left-docks-width "52") (left-docks-width "52")

View File

@ -0,0 +1,3 @@
# Save-for-web plug-in resource file
(dialog-layout 1 1 825 480 282)

View File

@ -2,7 +2,7 @@
LocationMode=path-bar LocationMode=path-bar
ShowHidden=true ShowHidden=true
ShowSizeColumn=true ShowSizeColumn=true
GeometryX=792 GeometryX=397
GeometryY=149 GeometryY=149
GeometryWidth=1128 GeometryWidth=1128
GeometryHeight=782 GeometryHeight=782

View File

@ -15,10 +15,11 @@ workspace_auto_back_and_forth yes
# variables {{{ # variables {{{
set $TerminalEmulator kitty set $TerminalEmulator kitty
set $WebBrowser google-chrome-stable set $WebBrowserB google-chrome-stable
set $WebBrowserF firefox
set $FileManager nemo set $FileManager nemo
set $MailReader thunderbird set $MailReader thunderbird
set $TextEditor nvim-qt set $TextEditor code
set $Hypervisor virtualbox set $Hypervisor virtualbox
set $GitBrowser lazygit set $GitBrowser lazygit
# }}} variables # }}} variables
@ -585,46 +586,42 @@ font pango:Noto Mono Regular 13
# Assign application to start on a specific workspace # Assign application to start on a specific workspace
# you can find the class with the program xprop # you can find the class with the program xprop
# sign via instance # sign via class
# Workspace $ws1 Terminal # Workspace $ws1 Terminal
assign [instance="(?i)Alacritty|Kitty"] → $ws1 assign [class="(?i)Alacritty|Kitty"] → $ws1
# Workspace $ws2 Text Editor # Workspace $ws2 Text Editor
assign [instance="(?i)NVim|Jetbrains-Idea-CE"] → $ws2 assign [class="(?i)Code|Jetbrains-Idea-CE"] → $ws2
# Workspace $ws3 Files # Workspace $ws3 Files
assign [instance="(?i)Nemo"] → $ws3 assign [class="(?i)Nemo"] → $ws3
# Workspace $ws4 Graphics # Workspace $ws4 Graphics
assign [instance="(?i)Aseprite|Krita"] → $ws4 assign [class="(?i)Aseprite|Krita"] → $ws4
# Workspace $ws5 Music # Workspace $ws5 Music
assign [instance="(?i)Xephyr"] → $ws5 assign [class="(?i)Xephyr"] → $ws5
assign [class="(?i)CmusImage"] → $ws5
# Workspace $ws6 WebBrowser # Workspace $ws6 WebBrowser
assign [instance="(?i)Firefox|Google-Chrome"] → $ws6 assign [class="(?i)Firefox|Google-Chrome"] → $ws6
# Workspace $ws7 Other Stuff # Workspace $ws7 Other Stuff
assign [instance="(?i)Mail|Thunderbird"] → $ws7 assign [class="(?i)Mail|Thunderbird"] → $ws7
assign [instance="(?i)Keybase"] → $ws7 assign [class="(?i)Keybase"] → $ws7
# Workspace $ws8 file GitAhead # Workspace $ws8 file GitAhead
assign [instance="(?i)Minecraft*|Steam*"] → $ws8 assign [class="(?i)Minecraft*|Steam*"] → $ws8
assign [instance="(?i)0ad*|Minetest"] → $ws8 assign [class="(?i)0ad*|Minetest"] → $ws8
# Workspace $ws9 Chat # Workspace $ws9 Chat
assign [instance="(?i)Telegram|Element"] → $ws9 assign [class="(?i)Telegram|Element"] → $ws9
# Workspace $ws0 Settings # Workspace $ws0 Settings
assign [instance="(?i)Virt*|LazyGit"] → $ws0 assign [class="(?i)Virt*|LazyGit"] → $ws0
assign [instance="(?i)Dconf-editor|Piper*"] → $ws0 assign [class="(?i)Dconf-editor|Piper*"] → $ws0
assign [instance="(?i)Actions|Btop"] → $ws0 assign [class="(?i)Actions|Btop"] → $ws0
assign [class="(?i)PkgBrowser"] → $ws0
# sign via class
# Workspace $ws5 Music
assign [class="(?i)CmusImage"] → $ws5
# Workspace $ws0 Settings
assign [class="(?i)PkgBrowser"] → $ws0
# }}} assign applications # }}} assign applications
@ -712,15 +709,20 @@ $super_b+$control+v \
#workspace 6 related #workspace 6 related
## Category: Applications; ## Category: Applications;
# Description: Launch $WebBrowser; # Description: Launch $WebBrowserB;
$super_b+$control+b \
$exe $WebBrowserB;focus
## Category: Applications;
# Description: Launch $WebBrowserF;
$super_b+$control+f \ $super_b+$control+f \
$exe $WebBrowser;focus $exe $WebBrowserF;focus
#workspace 7 related #workspace 7 related
## Category: Applications; ## Category: Applications;
# Description: Launch $MailReader; # Description: Launch $MailReader;
$super_b+$control+b \ $super_b+$control+m \
$exe $MailReader;focus $exe $MailReader;focus
#workspace 8 related #workspace 8 related
@ -745,7 +747,7 @@ $super_b+$control+g \
set $game_launcher Launch: [0]ad [s]eam [m]inecraft mine[t]est set $game_launcher Launch: [0]ad [s]eam [m]inecraft mine[t]est
mode "$game_launcher" { mode "$game_launcher" {
bindsym --release 0 \ bindsym --release 0 \
$exe prime-run 0ad;focus; mode "default" $exe prime-run 0ad;focus; mode "default"
bindsym --release s \ bindsym --release s \
@ -1068,15 +1070,15 @@ $super_b+minus \
################# active scratchpad ################# ################# active scratchpad #################
####################################################################### #######################################################################
for_window [instance="(?i)dropdown-terminal"] floating enable for_window [class="(?i)dropdown-terminal"] floating enable
for_window [instance="(?i)dropdown-terminal"] resize set 800 600 for_window [class="(?i)dropdown-terminal"] resize set 800 600
for_window [instance="(?i)dropdown-terminal"] move scratchpad for_window [class="(?i)dropdown-terminal"] move scratchpad
$exe $TerminalEmulator --title="Dropdown-Terminal" --class="Dropdown-Terminal" --name="Dropdown-Terminal" $exe $TerminalEmulator --title="Dropdown-Terminal" --class="Dropdown-Terminal" --name="Dropdown-Terminal"
## Category: Scratchpad; ## Category: Scratchpad;
# Description: Toggle $TerminalEmulator; # Description: Toggle $TerminalEmulator;
$control_b+Return \ $control_b+Return \
[instance="(?i)dropdown-terminal"] scratchpad show, move position center [class="(?i)dropdown-terminal"] scratchpad show, move position center
# }}} scratchpad # }}} scratchpad

View File

@ -1026,8 +1026,8 @@
<group <group
id="theme" id="theme"
defaultPreferDarkTheme="1" defaultPreferDarkTheme="1"
defaultGtkTheme="oomox-Dracula" defaultGtkTheme="themix-Dracula"
defaultIconTheme="oomox-Dracula" defaultIconTheme="themix-Dracula"
symbolicIcons="0" symbolicIcons="0"
menuIcons_canvas="0" menuIcons_canvas="0"
menuIcons_layers="0" menuIcons_layers="0"

View File

@ -134,3 +134,14 @@ if command -v dunst &> /dev/null; then
echo "dunst already Running" echo "dunst already Running"
fi fi
fi fi
# see https://unix.stackexchange.com/a/295652/332452
source /etc/X11/xinit/xinitrc.d/50-systemd-user.sh
# see https://wiki.archlinux.org/title/GNOME/Keyring#xinitrc
eval $(/usr/bin/gnome-keyring-daemon --start)
export SSH_AUTH_SOCK
# see https://github.com/NixOS/nixpkgs/issues/14966#issuecomment-520083836
mkdir -p "$HOME"/.local/share/keyrings

View File

@ -36,25 +36,25 @@ my $CurVer = '2021-02-01';
my $Progrm = 'dayborn'; my $Progrm = 'dayborn';
sub Usage{ sub Usage{
print(qq{Usage: $Progrm [OPTS] [FILE] print(qq{Usage: $Progrm [OPTS] [FILE]
-h, --help - Display this help information. -h, --help - Display this help information.
-v, --version - Output the version datestamp. -v, --version - Output the version datestamp.
} =~ tr/\t//dr) } =~ tr/\t//dr)
} }
while (defined($ARGV[0])){ while (defined($ARGV[0])){
if ($ARGV[0] =~ '^(--help|-h|-\?)$'){ if ($ARGV[0] =~ '^(--help|-h|-\?)$'){
Usage(1); exit(0) Usage(1); exit(0)
}elsif ($ARGV[0] =~ '^(--version|-v)$'){ }elsif ($ARGV[0] =~ '^(--version|-v)$'){
print("$CurVer\n"); exit(0) print("$CurVer\n"); exit(0)
}elsif ($ARGV[0] =~ '^-'){ }elsif ($ARGV[0] =~ '^-'){
die("Incorrect option(s) specified") die("Incorrect option(s) specified")
}else{ }else{
last last
} }
shift() shift()
} }
scalar(@ARGV) == 1 or die("File name required"); scalar(@ARGV) == 1 or die("File name required");
@ -68,29 +68,29 @@ open(my $FH, '<', $ARGV[0]);
my ($Start, $Now); my ($Start, $Now);
while (<$FH>){ while (<$FH>){
/^# (Start|Modified) / or next; /^# (Start|Modified) / or next;
chomp(my @Arr = split(' ')); chomp(my @Arr = split(' '));
# The following format (sans quotes) is expected: # The following format (sans quotes) is expected:
# #
# '# Started On - Mon 10 Feb 23:49:15 GMT 2020' # '# Started On - Mon 10 Feb 23:49:15 GMT 2020'
# #
if ($Arr[1] eq 'Start') { if ($Arr[1] eq 'Start') {
$Start = Time::Piece->strptime( $Start = Time::Piece->strptime(
join(' ', @Arr[4,6,5,7,9]), '%a %b %d %T %Z %Y' join(' ', @Arr[4,6,5,7,9]), '%a %b %d %T %Z %Y'
)->epoch() )->epoch()
} }
# The following format (sans quotes) is expected: # The following format (sans quotes) is expected:
# #
# '# Modified On - Tue 11 Feb 01:00:34 GMT 2020' # '# Modified On - Tue 11 Feb 01:00:34 GMT 2020'
# #
if ($Arr[1] eq 'Modified') { if ($Arr[1] eq 'Modified') {
$Now = Time::Piece->strptime( $Now = Time::Piece->strptime(
join(' ', @Arr[4,6,5,7,9]), '%a %b %d %T %Z %Y' join(' ', @Arr[4,6,5,7,9]), '%a %b %d %T %Z %Y'
)->epoch() )->epoch()
} }
} }
close($FH); close($FH);
@ -99,4 +99,3 @@ my $Project = ($ARGV[0] =~ m{(?:.*/)?([^/].*)})[0];
my $DeltaDay = ($Now - $Start) / 60 / 60 / 24; my $DeltaDay = ($Now - $Start) / 60 / 60 / 24;
printf("Project '%s' was born %.2f day's ago.\n", $Project, $DeltaDay) printf("Project '%s' was born %.2f day's ago.\n", $Project, $DeltaDay)

View File

@ -1 +0,0 @@
Guifont SauceCodePro\ Nerd\ Font:size:h10

View File

@ -12,3 +12,15 @@ vim.cmd("hi! link DashboardHeader Error")
if not ok then if not ok then
error("Error loading core" .. "\n\n" .. err) error("Error loading core" .. "\n\n" .. err)
end end
vim.opt.termguicolors = true
vim.cmd [[highlight IndentBlanklineIndent1 guifg=#E06C75 gui=nocombine]]
vim.cmd [[highlight IndentBlanklineIndent2 guifg=#E5C07B gui=nocombine]]
vim.cmd [[highlight IndentBlanklineIndent3 guifg=#98C379 gui=nocombine]]
vim.cmd [[highlight IndentBlanklineIndent4 guifg=#56B6C2 gui=nocombine]]
vim.cmd [[highlight IndentBlanklineIndent5 guifg=#61AFEF gui=nocombine]]
vim.cmd [[highlight IndentBlanklineIndent6 guifg=#C678DD gui=nocombine]]
vim.opt.list = true
vim.opt.listchars:append("space:⋅")
vim.opt.listchars:append("eol:↴")

View File

@ -1,22 +1,22 @@
local function isModuleAvailable(name) local function isModuleAvailable(name)
if package.loaded[name] then if package.loaded[name] then
return true return true
else else
for _, searcher in ipairs(package.searchers or package.loaders) do for _, searcher in ipairs(package.searchers or package.loaders) do
local loader = searcher(name) local loader = searcher(name)
if type(loader) == "function" then if type(loader) == "function" then
package.preload[name] = loader package.preload[name] = loader
return true return true
end end
end end
return false return false
end end
end end
local loadIfExists = function(module) local loadIfExists = function(module)
if isModuleAvailable(module) then if isModuleAvailable(module) then
require(module) require(module)
end end
end end
loadIfExists "custom" loadIfExists "custom"

View File

@ -67,24 +67,24 @@ M.plugins = {
luasnip = { luasnip = {
snippet_path = {}, snippet_path = {},
}, },
statusline = { -- statusline related options statusline = { -- statusline related options
-- these are filetypes, not pattern matched -- these are filetypes, not pattern matched
-- shown filetypes will overrule hidden filetypes -- shown filetypes will overrule hidden filetypes
hidden = { hidden = {
"help", "help",
"dashboard", "dashboard",
"NvimTree", "NvimTree",
"terminal", "terminal",
},
-- show short statusline on small screens
shortline = true,
shown = {},
-- default, round , slant , block , arrow
style = "default",
}, },
esc_insertmode_timeout = 300, -- show short statusline on small screens
shortline = true,
shown = {},
-- default, round , slant , block , arrow
style = "default",
}, },
default_plugin_config_replace = {}, esc_insertmode_timeout = 300,
},
default_plugin_config_replace = {},
} }
-- mappings -- don't use a single keymap twice -- -- mappings -- don't use a single keymap twice --

View File

@ -3,26 +3,26 @@ local system = require "core.system"
local M = {} local M = {}
M.edit_config = function() M.edit_config = function()
local selected_config = tonumber(vim.fn.inputlist({ local selected_config = tonumber(vim.fn.inputlist({
"Select a configuration file to edit:", "Select a configuration file to edit:",
"1. init.lua (default)", "1. init.lua (default)",
"2. init.lua", "2. init.lua",
"3. nvimrc.lua", "3. nvimrc.lua",
})) }))
local config = utils.load_config() local config = utils.load_config()
local setting = config.plugins.options local setting = config.plugins.options
local open_command = setting.open_command and "split" or "edit" local open_command = setting.open_command and "split" or "edit"
if selected_config == 1 then if selected_config == 1 then
vim.cmd(string.format("%s %s%sinit.lua", open_command, system.nvim_default_root, system.sep)) vim.cmd(string.format("%s %s%sinit.lua", open_command, system.nvim_default_root, system.sep))
elseif selected_config == 2 then elseif selected_config == 2 then
vim.cmd(string.format("%s %s%sinit.lua", open_command, system.nvim_configs_root, system.sep)) vim.cmd(string.format("%s %s%sinit.lua", open_command, system.nvim_configs_root, system.sep))
elseif selected_config == 3 then elseif selected_config == 3 then
vim.cmd(string.format("%s %s%snvimrc.lua", open_command, system.nvim_configs_root, system.sep)) vim.cmd(string.format("%s %s%snvimrc.lua", open_command, system.nvim_configs_root, system.sep))
elseif selected_config ~= 0 then elseif selected_config ~= 0 then
log.error("Invalid option selected.") log.error("Invalid option selected.")
end end
end end
return M return M

View File

@ -1,68 +1,68 @@
local hooks, overrides, M = {}, {}, {} local hooks, overrides, M = {}, {}, {}
local allowed_hooks = { local allowed_hooks = {
"install_plugins", "install_plugins",
"setup_mappings", "setup_mappings",
"ready", "ready",
} }
local function has_value(tab, val) local function has_value(tab, val)
for _, value in ipairs(tab) do for _, value in ipairs(tab) do
if value == val then if value == val then
return true return true
end end
end end
return false return false
end end
M.add = function(name, fn) M.add = function(name, fn)
if not (has_value(allowed_hooks, name)) then if not (has_value(allowed_hooks, name)) then
error("Custom lua uses unallowed hook " .. name) error("Custom lua uses unallowed hook " .. name)
end end
if hooks[name] == nil then if hooks[name] == nil then
hooks[name] = {} hooks[name] = {}
end end
table.insert(hooks[name], fn) table.insert(hooks[name], fn)
end end
M.run = function(name, args) M.run = function(name, args)
if hooks[name] == nil then if hooks[name] == nil then
return return
end end
for _, hook in pairs(hooks[name]) do for _, hook in pairs(hooks[name]) do
hook(args) hook(args)
end end
end end
M.createOverrides = function(module) M.createOverrides = function(module)
local O = {} local O = {}
O.get = function(name, default) O.get = function(name, default)
local current = default local current = default
if overrides[module] and overrides[module][name] then if overrides[module] and overrides[module][name] then
if type(overrides[module][name]) == "function" then if type(overrides[module][name]) == "function" then
current = overrides[module][name] current = overrides[module][name]
elseif type(overrides[module][name]) == "table" then elseif type(overrides[module][name]) == "table" then
for _, override in pairs(overrides[module][name]) do for _, override in pairs(overrides[module][name]) do
current = override(current) current = override(current)
end
end end
end end
end return current
return current end
end
return O return O
end end
M.override = function(module, name, overwrite) M.override = function(module, name, overwrite)
if overrides[module] == nil then if overrides[module] == nil then
overrides[module] = {} overrides[module] = {}
end end
if overrides[module][name] == nil then if overrides[module][name] == nil then
overrides[module][name] = {} overrides[module][name] = {}
end end
table.insert(overrides[module][name], overwrite) table.insert(overrides[module][name], overwrite)
end end
return M return M

View File

@ -1,17 +1,17 @@
local core_modules = { local core_modules = {
"core.custom", "core.custom",
"core.options", "core.options",
"core.autocmds", "core.autocmds",
"core.mappings", "core.mappings",
} }
local hooks = require "core.hooks" local hooks = require "core.hooks"
for _, module in ipairs(core_modules) do for _, module in ipairs(core_modules) do
local ok, err = pcall(require, module) local ok, err = pcall(require, module)
if not ok then if not ok then
error("Error loading " .. module .. "\n\n" .. err) error("Error loading " .. module .. "\n\n" .. err)
end end
end end
-- set all the non plugin mappings -- set all the non plugin mappings

View File

@ -52,26 +52,26 @@ g.mapleader = options.mapleader
-- disable some builtin vim plugins -- disable some builtin vim plugins
local disabled_built_ins = { local disabled_built_ins = {
"2html_plugin", "2html_plugin",
"getscript", "getscript",
"getscriptPlugin", "getscriptPlugin",
"gzip", "gzip",
"logipat", "logipat",
"netrw", "netrw",
"netrwPlugin", "netrwPlugin",
"netrwSettings", "netrwSettings",
"netrwFileHandlers", "netrwFileHandlers",
"matchit", "matchit",
"tar", "tar",
"tarPlugin", "tarPlugin",
"rrhelper", "rrhelper",
"spellfile_plugin", "spellfile_plugin",
"vimball", "vimball",
"vimballPlugin", "vimballPlugin",
"zip", "zip",
"zipPlugin", "zipPlugin",
} }
for _, plugin in pairs(disabled_built_ins) do for _, plugin in pairs(disabled_built_ins) do
g["loaded_" .. plugin] = 1 g["loaded_" .. plugin] = 1
end end

View File

@ -12,22 +12,22 @@ local M = {}
-- 'C:\Users\JohnDoe\AppData\Local' for windows and '~/.config' for *nix -- 'C:\Users\JohnDoe\AppData\Local' for windows and '~/.config' for *nix
-- @return string -- @return string
local function get_config_dir() local function get_config_dir()
if string.find(vim.loop.os_uname().sysname, "Windows") then if string.find(vim.loop.os_uname().sysname, "Windows") then
return os.getenv("USERPROFILE") .. "\\AppData\\Local\\" return os.getenv("USERPROFILE") .. "\\AppData\\Local\\"
end end
return (os.getenv("XDG_CONFIG_HOME") and os.getenv("XDG_CONFIG_HOME")) return (os.getenv("XDG_CONFIG_HOME") and os.getenv("XDG_CONFIG_HOME"))
or (os.getenv("HOME") .. "/.config") or (os.getenv("HOME") .. "/.config")
end end
-- get_separator will return the system paths separator, e.g. \ for Windows and / for *nix -- get_separator will return the system paths separator, e.g. \ for Windows and / for *nix
-- @return string -- @return string
local function get_separator() local function get_separator()
if vim.loop.os_uname().sysname == "Windows" then if vim.loop.os_uname().sysname == "Windows" then
return "\\" return "\\"
end end
return "/" return "/"
end end
M.config_dir = get_config_dir() M.config_dir = get_config_dir()

View File

@ -1,241 +1,241 @@
local M = {} local M = {}
M.close_buffer = function(bufexpr, force) M.close_buffer = function(bufexpr, force)
-- This is a modification of a NeoVim plugin from -- This is a modification of a NeoVim plugin from
-- Author: ojroques - Olivier Roques -- Author: ojroques - Olivier Roques
-- Src: https://github.com/ojroques/nvim-bufdel -- Src: https://github.com/ojroques/nvim-bufdel
-- (Author has okayed copy-paste) -- (Author has okayed copy-paste)
-- Options -- Options
local opts = { local opts = {
next = "cycle", -- how to retrieve the next buffer next = "cycle", -- how to retrieve the next buffer
quit = false, -- exit when last buffer is deleted quit = false, -- exit when last buffer is deleted
--TODO make this a nvimrc flag/option --TODO make this a nvimrc flag/option
} }
-- ---------------- -- ----------------
-- Helper functions -- Helper functions
-- ---------------- -- ----------------
-- Switch to buffer 'buf' on each window from list 'windows' -- Switch to buffer 'buf' on each window from list 'windows'
local function switch_buffer(windows, buf) local function switch_buffer(windows, buf)
local cur_win = vim.fn.winnr() local cur_win = vim.fn.winnr()
for _, winid in ipairs(windows) do for _, winid in ipairs(windows) do
vim.cmd(string.format("%d wincmd w", vim.fn.win_id2win(winid))) vim.cmd(string.format("%d wincmd w", vim.fn.win_id2win(winid)))
vim.cmd(string.format("buffer %d", buf)) vim.cmd(string.format("buffer %d", buf))
end end
vim.cmd(string.format("%d wincmd w", cur_win)) -- return to original window vim.cmd(string.format("%d wincmd w", cur_win)) -- return to original window
end end
-- Select the first buffer with a number greater than given buffer -- Select the first buffer with a number greater than given buffer
local function get_next_buf(buf) local function get_next_buf(buf)
local next = vim.fn.bufnr "#" local next = vim.fn.bufnr "#"
if opts.next == "alternate" and vim.fn.buflisted(next) == 1 then if opts.next == "alternate" and vim.fn.buflisted(next) == 1 then
return next
end
for i = 0, vim.fn.bufnr "$" - 1 do
next = (buf + i) % vim.fn.bufnr "$" + 1 -- will loop back to 1
if vim.fn.buflisted(next) == 1 then
return next return next
end end
end for i = 0, vim.fn.bufnr "$" - 1 do
end next = (buf + i) % vim.fn.bufnr "$" + 1 -- will loop back to 1
if vim.fn.buflisted(next) == 1 then
return next
end
end
end
-- ---------------- -- ----------------
-- End helper functions -- End helper functions
-- ---------------- -- ----------------
local buf = vim.fn.bufnr() local buf = vim.fn.bufnr()
if vim.fn.buflisted(buf) == 0 then -- exit if buffer number is invalid if vim.fn.buflisted(buf) == 0 then -- exit if buffer number is invalid
vim.cmd "close" vim.cmd "close"
return return
end end
if #vim.fn.getbufinfo { buflisted = 1 } < 2 then if #vim.fn.getbufinfo { buflisted = 1 } < 2 then
if opts.quit then if opts.quit then
-- exit when there is only one buffer left -- exit when there is only one buffer left
if force then if force then
vim.cmd "qall!" vim.cmd "qall!"
else else
vim.cmd "confirm qall" vim.cmd "confirm qall"
end end
return
end
local chad_term, type = pcall(function()
return vim.api.nvim_buf_get_var(buf, "term_type")
end)
if chad_term then
-- Must be a window type
vim.cmd(string.format("setlocal nobl", buf))
vim.cmd "enew"
return
end
-- don't exit and create a new empty buffer
vim.cmd "enew"
vim.cmd "bp"
end
local next_buf = get_next_buf(buf)
local windows = vim.fn.getbufinfo(buf)[1].windows
-- force deletion of terminal buffers to avoid the prompt
if force or vim.fn.getbufvar(buf, "&buftype") == "terminal" then
local chad_term, type = pcall(function()
return vim.api.nvim_buf_get_var(buf, "term_type")
end)
-- TODO this scope is error prone, make resilient
if chad_term then
if type == "wind" then
-- hide from bufferline
vim.cmd(string.format("%d bufdo setlocal nobl", buf))
-- swtich to another buff
-- TODO switch to next bufffer, this works too
vim.cmd "BufferLineCycleNext"
else
local cur_win = vim.fn.winnr()
-- we can close this window
vim.cmd(string.format("%d wincmd c", cur_win))
return return
end end
else
switch_buffer(windows, next_buf) local chad_term, type = pcall(function()
vim.cmd(string.format("bd! %d", buf)) return vim.api.nvim_buf_get_var(buf, "term_type")
end end)
else
switch_buffer(windows, next_buf) if chad_term then
vim.cmd(string.format("silent! confirm bd %d", buf)) -- Must be a window type
end vim.cmd(string.format("setlocal nobl", buf))
-- revert buffer switches if user has canceled deletion vim.cmd "enew"
if vim.fn.buflisted(buf) == 1 then return
switch_buffer(windows, buf) end
end -- don't exit and create a new empty buffer
vim.cmd "enew"
vim.cmd "bp"
end
local next_buf = get_next_buf(buf)
local windows = vim.fn.getbufinfo(buf)[1].windows
-- force deletion of terminal buffers to avoid the prompt
if force or vim.fn.getbufvar(buf, "&buftype") == "terminal" then
local chad_term, type = pcall(function()
return vim.api.nvim_buf_get_var(buf, "term_type")
end)
-- TODO this scope is error prone, make resilient
if chad_term then
if type == "wind" then
-- hide from bufferline
vim.cmd(string.format("%d bufdo setlocal nobl", buf))
-- swtich to another buff
-- TODO switch to next bufffer, this works too
vim.cmd "BufferLineCycleNext"
else
local cur_win = vim.fn.winnr()
-- we can close this window
vim.cmd(string.format("%d wincmd c", cur_win))
return
end
else
switch_buffer(windows, next_buf)
vim.cmd(string.format("bd! %d", buf))
end
else
switch_buffer(windows, next_buf)
vim.cmd(string.format("silent! confirm bd %d", buf))
end
-- revert buffer switches if user has canceled deletion
if vim.fn.buflisted(buf) == 1 then
switch_buffer(windows, buf)
end
end end
-- hide statusline -- hide statusline
-- tables fetched from load_config function -- tables fetched from load_config function
M.hide_statusline = function() M.hide_statusline = function()
local hidden = require("core.utils").load_config().plugins.options.statusline.hidden local hidden = require("core.utils").load_config().plugins.options.statusline.hidden
local shown = require("core.utils").load_config().plugins.options.statusline.shown local shown = require("core.utils").load_config().plugins.options.statusline.shown
local api = vim.api local api = vim.api
local buftype = api.nvim_buf_get_option("%", "ft") local buftype = api.nvim_buf_get_option("%", "ft")
-- shown table from config has the highest priority -- shown table from config has the highest priority
if vim.tbl_contains(shown, buftype) then if vim.tbl_contains(shown, buftype) then
api.nvim_set_option("laststatus", 2) api.nvim_set_option("laststatus", 2)
return return
end end
if vim.tbl_contains(hidden, buftype) then if vim.tbl_contains(hidden, buftype) then
api.nvim_set_option("laststatus", 0) api.nvim_set_option("laststatus", 0)
return return
else else
api.nvim_set_option("laststatus", 2) api.nvim_set_option("laststatus", 2)
end end
end end
-- load config -- load config
-- 1st arg = boolean - whether to force reload -- 1st arg = boolean - whether to force reload
-- Modifies _G._NEOVIM_CONFIG global variable -- Modifies _G._NEOVIM_CONFIG global variable
M.load_config = function(reload) M.load_config = function(reload)
-- only do the stuff below one time, otherwise just return the set config -- only do the stuff below one time, otherwise just return the set config
if _G._NEOVIM_CONFIG_CONTENTS ~= nil and not (reload or false) then if _G._NEOVIM_CONFIG_CONTENTS ~= nil and not (reload or false) then
return _G._NEOVIM_CONFIG_CONTENTS return _G._NEOVIM_CONFIG_CONTENTS
end end
-- these are the table value which will be always prioritiezed to take user config value -- these are the table value which will be always prioritiezed to take user config value
local to_replace = { local to_replace = {
"['mappings']['plugins']['esc_insertmode']", "['mappings']['plugins']['esc_insertmode']",
"['mappings']['terminal']['esc_termmode']", "['mappings']['terminal']['esc_termmode']",
"['mappings']['terminal']['esc_hide_termmode']", "['mappings']['terminal']['esc_hide_termmode']",
} }
local default_config = "core.default_config" local default_config = "core.default_config"
local config_name = vim.g.neovim_user_config or "nvimrc" local config_name = vim.g.neovim_user_config or "nvimrc"
local config_file = vim.fn.stdpath "config" .. "/lua/custom/" .. config_name .. ".lua" local config_file = vim.fn.stdpath "config" .. "/lua/custom/" .. config_name .. ".lua"
-- unload the modules if force reload -- unload the modules if force reload
if reload then if reload then
package.loaded[default_config or false] = nil package.loaded[default_config or false] = nil
package.loaded[config_name or false] = nil package.loaded[config_name or false] = nil
end end
-- don't enclose in pcall, it better break when default config is faulty -- don't enclose in pcall, it better break when default config is faulty
_G._NEOVIM_CONFIG_CONTENTS = require(default_config) _G._NEOVIM_CONFIG_CONTENTS = require(default_config)
-- user config is not required to run neovim but a optional -- user config is not required to run neovim but a optional
-- Make sure the config doesn't break the whole system if user config is not present or in bad state or not a table -- Make sure the config doesn't break the whole system if user config is not present or in bad state or not a table
-- print warning texts if user config file is present -- print warning texts if user config file is present
-- check if the user config is present -- check if the user config is present
if vim.fn.filereadable(vim.fn.glob(config_file)) == 1 then if vim.fn.filereadable(vim.fn.glob(config_file)) == 1 then
local present, config = pcall(require, "custom/" .. config_name) local present, config = pcall(require, "custom/" .. config_name)
if present then if present then
-- make sure the returned value is table -- make sure the returned value is table
if type(config) == "table" then if type(config) == "table" then
-- data = require(config_name) -- data = require(config_name)
_G._NEOVIM_CONFIG_CONTENTS = require("core.utils").merge_table( _G._NEOVIM_CONFIG_CONTENTS = require("core.utils").merge_table(
_G._NEOVIM_CONFIG_CONTENTS, _G._NEOVIM_CONFIG_CONTENTS,
config, config,
to_replace to_replace
) )
else else
print("Warning: " .. config_name .. " sourced successfully but did not return a lua table.") print("Warning: " .. config_name .. " sourced successfully but did not return a lua table.")
end end
else else
print("Warning: " .. config_file .. " is present but sourcing failed.") print("Warning: " .. config_file .. " is present but sourcing failed.")
end end
end end
return _G._NEOVIM_CONFIG_CONTENTS return _G._NEOVIM_CONFIG_CONTENTS
end end
M.map = function(mode, keys, cmd, opt) M.map = function(mode, keys, cmd, opt)
local options = { noremap = true, silent = true } local options = { noremap = true, silent = true }
if opt then if opt then
options = vim.tbl_extend("force", options, opt) options = vim.tbl_extend("force", options, opt)
end end
-- all valid modes allowed for mappings -- all valid modes allowed for mappings
-- :h map-modes -- :h map-modes
local valid_modes = { local valid_modes = {
[""] = true, [""] = true,
["n"] = true, ["n"] = true,
["v"] = true, ["v"] = true,
["s"] = true, ["s"] = true,
["x"] = true, ["x"] = true,
["o"] = true, ["o"] = true,
["!"] = true, ["!"] = true,
["i"] = true, ["i"] = true,
["l"] = true, ["l"] = true,
["c"] = true, ["c"] = true,
["t"] = true, ["t"] = true,
} }
-- helper function for M.map -- helper function for M.map
-- can gives multiple modes and keys -- can gives multiple modes and keys
local function map_wrapper(mode, lhs, rhs, options) local function map_wrapper(mode, lhs, rhs, options)
if type(lhs) == "table" then if type(lhs) == "table" then
for _, key in ipairs(lhs) do for _, key in ipairs(lhs) do
map_wrapper(mode, key, rhs, options) map_wrapper(mode, key, rhs, options)
end
else
if type(mode) == "table" then
for _, m in ipairs(mode) do
map_wrapper(m, lhs, rhs, options)
end end
else else
if valid_modes[mode] and lhs and rhs then if type(mode) == "table" then
vim.api.nvim_set_keymap(mode, lhs, rhs, options) for _, m in ipairs(mode) do
map_wrapper(m, lhs, rhs, options)
end
else else
mode, lhs, rhs = mode or "", lhs or "", rhs or "" if valid_modes[mode] and lhs and rhs then
print("Cannot set mapping [ mode = '" .. mode .. "' | key = '" .. lhs .. "' | cmd = '" .. rhs .. "' ]") vim.api.nvim_set_keymap(mode, lhs, rhs, options)
else
mode, lhs, rhs = mode or "", lhs or "", rhs or ""
print("Cannot set mapping [ mode = '" .. mode .. "' | key = '" .. lhs .. "' | cmd = '" .. rhs .. "' ]")
end
end end
end end
end end
end
map_wrapper(mode, keys, cmd, options) map_wrapper(mode, keys, cmd, options)
end end
-- Base code: https://gist.github.com/revolucas/184aec7998a6be5d2f61b984fac1d7f7 -- Base code: https://gist.github.com/revolucas/184aec7998a6be5d2f61b984fac1d7f7
@ -245,89 +245,89 @@ end
-- 3rg arg - list of nodes as a table, if the node is found replace the from table2 to result, rather than adding the value -- 3rg arg - list of nodes as a table, if the node is found replace the from table2 to result, rather than adding the value
-- e.g: merge_table(t1, t2, { ['mappings']['plugins']['bufferline'] }) -- e.g: merge_table(t1, t2, { ['mappings']['plugins']['bufferline'] })
M.merge_table = function(into, from, nodes_to_replace) M.merge_table = function(into, from, nodes_to_replace)
-- make sure both are table -- make sure both are table
if type(into) ~= "table" or type(from) ~= "table" then if type(into) ~= "table" or type(from) ~= "table" then
return into return into
end end
local stack, seen = {}, {} local stack, seen = {}, {}
local table1, table2 = into, from local table1, table2 = into, from
if type(nodes_to_replace) == "table" then if type(nodes_to_replace) == "table" then
-- function that will be executed with loadstring -- function that will be executed with loadstring
local replace_fn = function(node) local replace_fn = function(node)
local base_fn = [[ local base_fn = [[
return function(table1, table2) return function(table1, table2)
local t1, t2 = table1_node or false , table2_node or false local t1, t2 = table1_node or false , table2_node or false
if t1 and t2 then if t1 and t2 then
table1_node = table2_node table1_node = table2_node
end end
return table1 return table1
end]] end]]
-- replace the _node in base_fn to actual given node value -- replace the _node in base_fn to actual given node value
local fn = base_fn:gsub("_node", node) local fn = base_fn:gsub("_node", node)
-- return the function created from the string base_fn -- return the function created from the string base_fn
return loadstring(fn)()(table1, table2) return loadstring(fn)()(table1, table2)
end end
for _, node in ipairs(nodes_to_replace) do for _, node in ipairs(nodes_to_replace) do
-- pcall() is a poor workaround for if "['mappings']['plugins']['esc_insertmode']" 'plugins' sub-table does not exist -- pcall() is a poor workaround for if "['mappings']['plugins']['esc_insertmode']" 'plugins' sub-table does not exist
local ok, result = pcall(replace_fn, node) local ok, result = pcall(replace_fn, node)
if ok then if ok then
-- if the node is found then replace -- if the node is found then replace
table1 = result table1 = result
end
end
end
while true do
for k, v in pairs(table2) do
if type(v) == "table" and type(table1[k]) == "table" then
table.insert(stack, { table1[k], table2[k] })
else
local present = seen[v] or false
if not present then
if type(k) == "number" then
-- add the value to seen table until value is found
-- only do when key is number we just want to append to subtables
-- todo: maybe improve this
for _, value in pairs(table1) do
if value == v then
present = true
break
end
end
seen[v] = true
if not present then
table1[#table1 + 1] = v
end
else
table1[k] = v
end
end end
end end
end end
if #stack > 0 then
local t = stack[#stack] while true do
table1, table2 = t[1], t[2] for k, v in pairs(table2) do
stack[#stack] = nil if type(v) == "table" and type(table1[k]) == "table" then
else table.insert(stack, { table1[k], table2[k] })
break else
end local present = seen[v] or false
end if not present then
return into if type(k) == "number" then
-- add the value to seen table until value is found
-- only do when key is number we just want to append to subtables
-- todo: maybe improve this
for _, value in pairs(table1) do
if value == v then
present = true
break
end
end
seen[v] = true
if not present then
table1[#table1 + 1] = v
end
else
table1[k] = v
end
end
end
end
if #stack > 0 then
local t = stack[#stack]
table1, table2 = t[1], t[2]
stack[#stack] = nil
else
break
end
end
return into
end end
-- load plugin after entering vim ui -- load plugin after entering vim ui
M.packer_lazy_load = function(plugin, timer) M.packer_lazy_load = function(plugin, timer)
if plugin then if plugin then
timer = timer or 0 timer = timer or 0
vim.defer_fn(function() vim.defer_fn(function()
require("packer").loader(plugin) require("packer").loader(plugin)
end, timer) end, timer)
end end
end end
return M return M

View File

@ -5,102 +5,102 @@ local lualine = require 'lualine'
-- Color table for highlights -- Color table for highlights
local colors = { local colors = {
bg = '#282a36', bg = '#282a36',
fg = '#f8f8f2', fg = '#f8f8f2',
yellow = '#f1fa8c', yellow = '#f1fa8c',
cyan = '#8be9fd', cyan = '#8be9fd',
darkblue = '#081633', darkblue = '#081633',
green = '#50fa7b', green = '#50fa7b',
orange = '#ffb86c', orange = '#ffb86c',
violet = '#bd93f9', violet = '#bd93f9',
magenta = '#ff79c6', magenta = '#ff79c6',
blue = '#51afef', blue = '#51afef',
red = '#ff5555' red = '#ff5555'
} }
local conditions = { local conditions = {
buffer_not_empty = function() return vim.fn.empty(vim.fn.expand('%:t')) ~= 1 end, buffer_not_empty = function() return vim.fn.empty(vim.fn.expand('%:t')) ~= 1 end,
hide_in_width = function() return vim.fn.winwidth(0) > 80 end, hide_in_width = function() return vim.fn.winwidth(0) > 80 end,
check_git_workspace = function() check_git_workspace = function()
local filepath = vim.fn.expand('%:p:h') local filepath = vim.fn.expand('%:p:h')
local gitdir = vim.fn.finddir('.git', filepath .. ';') local gitdir = vim.fn.finddir('.git', filepath .. ';')
return gitdir and #gitdir > 0 and #gitdir < #filepath return gitdir and #gitdir > 0 and #gitdir < #filepath
end end
} }
-- Config -- Config
local config = { local config = {
options = { options = {
-- Disable sections and component separators -- Disable sections and component separators
icons_enabled = true, icons_enabled = true,
theme = 'dracula', theme = 'dracula',
section_separators = {'', ''}, section_separators = {'', ''},
component_separators = {'', ''}, component_separators = {'', ''},
disabled_filetypes = {} disabled_filetypes = {}
}, },
sections = { sections = {
-- these are to remove the defaults -- these are to remove the defaults
lualine_a = {'mode'}, lualine_a = {'mode'},
lualine_b = {'bo:filetype'}, lualine_b = {'bo:filetype'},
lualine_y = {}, lualine_y = {},
lualine_z = {}, lualine_z = {},
-- These will be filled later -- These will be filled later
lualine_c = {}, lualine_c = {},
lualine_x = {} lualine_x = {}
}, },
inactive_sections = { inactive_sections = {
-- these are to remove the defaults -- these are to remove the defaults
lualine_a = {}, lualine_a = {},
lualine_v = {}, lualine_v = {},
lualine_y = {}, lualine_y = {},
lualine_z = {}, lualine_z = {},
lualine_c = {}, lualine_c = {},
lualine_x = {} lualine_x = {}
}, },
tabline = {}, tabline = {},
} }
-- Inserts a component in lualine_c at left section -- Inserts a component in lualine_c at left section
local function ins_left(component) local function ins_left(component)
table.insert(config.sections.lualine_c, component) table.insert(config.sections.lualine_c, component)
end end
-- Inserts a component in lualine_x ot right section -- Inserts a component in lualine_x ot right section
local function ins_right(component) local function ins_right(component)
table.insert(config.sections.lualine_x, component) table.insert(config.sections.lualine_x, component)
end end
ins_left { ins_left {
function() return '' end, function() return '' end,
color = {fg = colors.blue}, -- Sets highlighting of component color = {fg = colors.blue}, -- Sets highlighting of component
left_padding = 0 -- We don't need space before this left_padding = 0 -- We don't need space before this
} }
ins_left { ins_left {
-- filesize component -- filesize component
function() function()
local function format_file_size(file) local function format_file_size(file)
local size = vim.fn.getfsize(file) local size = vim.fn.getfsize(file)
if size <= 0 then return '' end if size <= 0 then return '' end
local sufixes = {'b', 'k', 'm', 'g'} local sufixes = {'b', 'k', 'm', 'g'}
local i = 1 local i = 1
while size > 1024 do while size > 1024 do
size = size / 1024 size = size / 1024
i = i + 1 i = i + 1
end end
return string.format('%.1f%s', size, sufixes[i]) return string.format('%.1f%s', size, sufixes[i])
end end
local file = vim.fn.expand('%:p') local file = vim.fn.expand('%:p')
if string.len(file) == 0 then return '' end if string.len(file) == 0 then return '' end
return format_file_size(file) return format_file_size(file)
end, end,
condition = conditions.buffer_not_empty condition = conditions.buffer_not_empty
} }
ins_left { ins_left {
'filename', 'filename',
condition = conditions.buffer_not_empty, condition = conditions.buffer_not_empty,
color = {fg = colors.magenta, gui = 'bold'} color = {fg = colors.magenta, gui = 'bold'}
} }
ins_left {'location'} ins_left {'location'}
@ -108,12 +108,12 @@ ins_left {'location'}
ins_left {'progress', color = {fg = colors.fg, gui = 'bold'}} ins_left {'progress', color = {fg = colors.fg, gui = 'bold'}}
ins_left { ins_left {
'diagnostics', 'diagnostics',
sources = {'nvim_diagnostic'}, sources = {'nvim_diagnostic'},
symbols = {error = '', warn = '', info = ''}, symbols = {error = '', warn = '', info = ''},
color_error = colors.red, color_error = colors.red,
color_warn = colors.yellow, color_warn = colors.yellow,
color_info = colors.cyan color_info = colors.cyan
} }
-- Insert mid section. You can make any number of sections in neovim :) -- Insert mid section. You can make any number of sections in neovim :)
@ -122,40 +122,40 @@ ins_left {function() return '%=' end}
-- Add components to right sections -- Add components to right sections
ins_right { ins_right {
'o:encoding', -- option component same as &encoding in viml 'o:encoding', -- option component same as &encoding in viml
upper = true, -- I'm not sure why it's upper case either ;) upper = true, -- I'm not sure why it's upper case either ;)
condition = conditions.hide_in_width, condition = conditions.hide_in_width,
color = {fg = colors.green, gui = 'bold'} color = {fg = colors.green, gui = 'bold'}
} }
ins_right { ins_right {
'fileformat', 'fileformat',
upper = true, upper = true,
icons_enabled = false, -- I think icons are cool but Eviline doesn't have them. sigh icons_enabled = false, -- I think icons are cool but Eviline doesn't have them. sigh
color = {fg = colors.green, gui = 'bold'} color = {fg = colors.green, gui = 'bold'}
} }
ins_right { ins_right {
'branch', 'branch',
icon = '', icon = '',
condition = conditions.check_git_workspace, condition = conditions.check_git_workspace,
color = {fg = colors.violet, gui = 'bold'} color = {fg = colors.violet, gui = 'bold'}
} }
ins_right { ins_right {
'diff', 'diff',
-- Is it me or the symbol for modified us really weird -- Is it me or the symbol for modified us really weird
symbols = {added = '', modified = '', removed = ''}, symbols = {added = '', modified = '', removed = ''},
color_added = colors.green, color_added = colors.green,
color_modified = colors.orange, color_modified = colors.orange,
color_removed = colors.red, color_removed = colors.red,
condition = conditions.hide_in_width condition = conditions.hide_in_width
} }
ins_right { ins_right {
function() return '' end, function() return '' end,
color = {fg = colors.blue}, color = {fg = colors.blue},
right_padding = 0 right_padding = 0
} }
-- Now don't forget to initialize lualine -- Now don't forget to initialize lualine

View File

@ -44,7 +44,7 @@ local function lsCustomPluginSettingsDir()
for key, file in pairs(files) do for key, file in pairs(files) do
lst[key] = { line = file, path = (settings_dir..""..file) } lst[key] = { line = file, path = (settings_dir..""..file) }
end end
return lst return lst
end end
local function lsDefaultPluginSettingsDir() local function lsDefaultPluginSettingsDir()
@ -54,7 +54,7 @@ local function lsDefaultPluginSettingsDir()
for key, file in pairs(files) do for key, file in pairs(files) do
lst[key] = { line = file, path = (settings_dir..""..file) } lst[key] = { line = file, path = (settings_dir..""..file) }
end end
return lst return lst
end end
local function lsCustomSettingsDir() local function lsCustomSettingsDir()
@ -64,7 +64,7 @@ local function lsCustomSettingsDir()
for key, file in pairs(files) do for key, file in pairs(files) do
lst[key] = { line = file, path = (settings_dir..""..file) } lst[key] = { line = file, path = (settings_dir..""..file) }
end end
return lst return lst
end end
local function lsDefaultSettingsDir() local function lsDefaultSettingsDir()
@ -74,7 +74,7 @@ local function lsDefaultSettingsDir()
for key, file in pairs(files) do for key, file in pairs(files) do
lst[key] = { line = file, path = (settings_dir..""..file) } lst[key] = { line = file, path = (settings_dir..""..file) }
end end
return lst return lst
end end
local function lsGitDir() local function lsGitDir()

View File

@ -16,6 +16,10 @@ hooks.add("install_plugins", function(use)
"wakatime/vim-wakatime" "wakatime/vim-wakatime"
} }
use {
"gko/vim-coloresque"
}
use { use {
"liuchengxu/vim-clap" "liuchengxu/vim-clap"
} }
@ -31,7 +35,6 @@ hooks.add("install_plugins", function(use)
config = function() config = function()
require("custom.configs.trim") require("custom.configs.trim")
end end
} }
use { use {

View File

@ -1,72 +1,72 @@
local present, cmp = pcall(require, "cmp") local present, cmp = pcall(require, "cmp")
if not present then if not present then
return return
end end
vim.opt.completeopt = "menuone,noselect" vim.opt.completeopt = "menuone,noselect"
-- nvim-cmp setup -- nvim-cmp setup
cmp.setup { cmp.setup {
snippet = { snippet = {
expand = function(args) expand = function(args)
require("luasnip").lsp_expand(args.body) require("luasnip").lsp_expand(args.body)
end, end,
}, },
formatting = { formatting = {
format = function(entry, vim_item) format = function(entry, vim_item)
-- load lspkind icons -- load lspkind icons
vim_item.kind = string.format( vim_item.kind = string.format(
"%s %s", "%s %s",
require("plugins.configs.lspkind_icons").icons[vim_item.kind], require("plugins.configs.lspkind_icons").icons[vim_item.kind],
vim_item.kind vim_item.kind
) )
vim_item.menu = ({ vim_item.menu = ({
nvim_lsp = "[LSP]", nvim_lsp = "[LSP]",
nvim_lua = "[Lua]", nvim_lua = "[Lua]",
buffer = "[BUF]", buffer = "[BUF]",
})[entry.source.name] })[entry.source.name]
return vim_item return vim_item
end, end,
}, },
mapping = { mapping = {
["<C-p>"] = cmp.mapping.select_prev_item(), ["<C-p>"] = cmp.mapping.select_prev_item(),
["<C-n>"] = cmp.mapping.select_next_item(), ["<C-n>"] = cmp.mapping.select_next_item(),
["<C-d>"] = cmp.mapping.scroll_docs(-4), ["<C-d>"] = cmp.mapping.scroll_docs(-4),
["<C-f>"] = cmp.mapping.scroll_docs(4), ["<C-f>"] = cmp.mapping.scroll_docs(4),
["<C-Space>"] = cmp.mapping.complete(), ["<C-Space>"] = cmp.mapping.complete(),
["<C-e>"] = cmp.mapping.close(), ["<C-e>"] = cmp.mapping.close(),
["<CR>"] = cmp.mapping.confirm { ["<CR>"] = cmp.mapping.confirm {
behavior = cmp.ConfirmBehavior.Replace, behavior = cmp.ConfirmBehavior.Replace,
select = true, select = true,
}, },
["<Tab>"] = function(fallback) ["<Tab>"] = function(fallback)
if cmp.visible() then if cmp.visible() then
cmp.select_next_item() cmp.select_next_item()
elseif require("luasnip").expand_or_jumpable() then elseif require("luasnip").expand_or_jumpable() then
vim.fn.feedkeys(vim.api.nvim_replace_termcodes("<Plug>luasnip-expand-or-jump", true, true, true), "") vim.fn.feedkeys(vim.api.nvim_replace_termcodes("<Plug>luasnip-expand-or-jump", true, true, true), "")
else else
fallback() fallback()
end end
end, end,
["<S-Tab>"] = function(fallback) ["<S-Tab>"] = function(fallback)
if cmp.visible() then if cmp.visible() then
cmp.select_prev_item() cmp.select_prev_item()
elseif require("luasnip").jumpable(-1) then elseif require("luasnip").jumpable(-1) then
vim.fn.feedkeys(vim.api.nvim_replace_termcodes("<Plug>luasnip-jump-prev", true, true, true), "") vim.fn.feedkeys(vim.api.nvim_replace_termcodes("<Plug>luasnip-jump-prev", true, true, true), "")
else else
fallback() fallback()
end end
end, end,
}, },
sources = { sources = {
{ name = "nvim_lsp" }, { name = "nvim_lsp" },
{ name = "luasnip" }, { name = "luasnip" },
{ name = 'orgmode' }, { name = 'orgmode' },
{ name = "buffer" }, { name = "buffer" },
{ name = "nvim_lua" }, { name = "nvim_lua" },
{ name = "path" }, { name = "path" },
}, },
} }

View File

@ -1,34 +1,34 @@
local present, gitsigns = pcall(require, "gitsigns") local present, gitsigns = pcall(require, "gitsigns")
if not present then if not present then
return return
end end
gitsigns.setup { gitsigns.setup {
keymaps = { keymaps = {
-- Default keymap options -- Default keymap options
buffer = true, buffer = true,
noremap = true, noremap = true,
["n ]c"] = { expr = true, "&diff ? ']c' : '<cmd>lua require\"gitsigns\".next_hunk()<CR>'" }, ["n ]c"] = { expr = true, "&diff ? ']c' : '<cmd>lua require\"gitsigns\".next_hunk()<CR>'" },
["n [c"] = { expr = true, "&diff ? '[c' : '<cmd>lua require\"gitsigns\".prev_hunk()<CR>'" }, ["n [c"] = { expr = true, "&diff ? '[c' : '<cmd>lua require\"gitsigns\".prev_hunk()<CR>'" },
["n <leader>hs"] = '<cmd>lua require"gitsigns".stage_hunk()<CR>', ["n <leader>hs"] = '<cmd>lua require"gitsigns".stage_hunk()<CR>',
["n <leader>hu"] = '<cmd>lua require"gitsigns".undo_stage_hunk()<CR>', ["n <leader>hu"] = '<cmd>lua require"gitsigns".undo_stage_hunk()<CR>',
["n <leader>hr"] = '<cmd>lua require"gitsigns".reset_hunk()<CR>', ["n <leader>hr"] = '<cmd>lua require"gitsigns".reset_hunk()<CR>',
["n <leader>hp"] = '<cmd>lua require"gitsigns".preview_hunk()<CR>', ["n <leader>hp"] = '<cmd>lua require"gitsigns".preview_hunk()<CR>',
["n <leader>hb"] = '<cmd>lua require"gitsigns".blame_line()<CR>', ["n <leader>hb"] = '<cmd>lua require"gitsigns".blame_line()<CR>',
}, },
numhl = false, numhl = false,
sign_priority = 5, sign_priority = 5,
signs = { signs = {
add = { hl = "DiffAdd", text = "", numhl = "GitSignsAddNr" }, add = { hl = "DiffAdd", text = "", numhl = "GitSignsAddNr" },
change = { hl = "DiffChange", text = "", numhl = "GitSignsChangeNr" }, change = { hl = "DiffChange", text = "", numhl = "GitSignsChangeNr" },
changedelete = { hl = "DiffChange", text = "~", numhl = "GitSignsChangeNr" }, changedelete = { hl = "DiffChange", text = "~", numhl = "GitSignsChangeNr" },
delete = { hl = "DiffDelete", text = "_", numhl = "GitSignsDeleteNr" }, delete = { hl = "DiffDelete", text = "_", numhl = "GitSignsDeleteNr" },
topdelete = { hl = "DiffDelete", text = "", numhl = "GitSignsDeleteNr" }, topdelete = { hl = "DiffDelete", text = "", numhl = "GitSignsDeleteNr" },
}, },
status_formatter = nil, -- Use default status_formatter = nil, -- Use default
watch_gitdir = { watch_gitdir = {
interval = 100, interval = 100,
}, },
} }

View File

@ -1,146 +1,146 @@
local present, icons = pcall(require, "nvim-web-devicons") local present, icons = pcall(require, "nvim-web-devicons")
if not present then if not present then
return return
end end
local colors = require('dracula').colors() local colors = require('dracula').colors()
icons.setup { icons.setup {
override = { override = {
c = { c = {
icon = "", icon = "",
color = colors.blue, color = colors.blue,
name = "c", name = "c",
}, },
css = { css = {
icon = "", icon = "",
color = colors.blue, color = colors.blue,
name = "css", name = "css",
}, },
deb = { deb = {
icon = "", icon = "",
color = colors.cyan, color = colors.cyan,
name = "deb", name = "deb",
}, },
Dockerfile = { Dockerfile = {
icon = "", icon = "",
color = colors.cyan, color = colors.cyan,
name = "Dockerfile", name = "Dockerfile",
}, },
html = { html = {
icon = "", icon = "",
color = colors.baby_pink, color = colors.baby_pink,
name = "html", name = "html",
}, },
jpeg = { jpeg = {
icon = "", icon = "",
color = colors.dark_purple, color = colors.dark_purple,
name = "jpeg", name = "jpeg",
}, },
jpg = { jpg = {
icon = "", icon = "",
color = colors.dark_purple, color = colors.dark_purple,
name = "jpg", name = "jpg",
}, },
js = { js = {
icon = "", icon = "",
color = colors.sun, color = colors.sun,
name = "js", name = "js",
}, },
kt = { kt = {
icon = "󱈙", icon = "󱈙",
color = colors.orange, color = colors.orange,
name = "kt", name = "kt",
}, },
lock = { lock = {
icon = "", icon = "",
color = colors.red, color = colors.red,
name = "lock", name = "lock",
}, },
lua = { lua = {
icon = "", icon = "",
color = colors.blue, color = colors.blue,
name = "lua", name = "lua",
}, },
mp3 = { mp3 = {
icon = "", icon = "",
color = colors.white, color = colors.white,
name = "mp3", name = "mp3",
}, },
mp4 = { mp4 = {
icon = "", icon = "",
color = colors.white, color = colors.white,
name = "mp4", name = "mp4",
}, },
out = { out = {
icon = "", icon = "",
color = colors.white, color = colors.white,
name = "out", name = "out",
}, },
png = { png = {
icon = "", icon = "",
color = colors.dark_purple, color = colors.dark_purple,
name = "png", name = "png",
}, },
py = { py = {
icon = "", icon = "",
color = colors.cyan, color = colors.cyan,
name = "py", name = "py",
}, },
["robots.txt"] = { ["robots.txt"] = {
icon = "", icon = "",
color = colors.red, color = colors.red,
name = "robots", name = "robots",
}, },
toml = { toml = {
icon = "", icon = "",
color = colors.blue, color = colors.blue,
name = "toml", name = "toml",
}, },
ts = { ts = {
icon = "", icon = "",
color = colors.teal, color = colors.teal,
name = "ts", name = "ts",
}, },
ttf = { ttf = {
icon = "", icon = "",
color = colors.white, color = colors.white,
name = "TrueTypeFont", name = "TrueTypeFont",
}, },
rb = { rb = {
icon = "", icon = "",
color = colors.pink, color = colors.pink,
name = "rb", name = "rb",
}, },
rpm = { rpm = {
icon = "", icon = "",
color = colors.orange, color = colors.orange,
name = "rpm", name = "rpm",
}, },
vue = { vue = {
icon = "", icon = "",
color = colors.vibrant_green, color = colors.vibrant_green,
name = "vue", name = "vue",
}, },
woff = { woff = {
icon = "", icon = "",
color = colors.white, color = colors.white,
name = "WebOpenFontFormat", name = "WebOpenFontFormat",
}, },
woff2 = { woff2 = {
icon = "", icon = "",
color = colors.white, color = colors.white,
name = "WebOpenFontFormat2", name = "WebOpenFontFormat2",
}, },
xz = { xz = {
icon = "", icon = "",
color = colors.sun, color = colors.sun,
name = "xz", name = "xz",
}, },
zip = { zip = {
icon = "", icon = "",
color = colors.sun, color = colors.sun,
name = "zip", name = "zip",
}, },
}, },
} }

View File

@ -1,38 +1,38 @@
local overrides = require("core.hooks").createOverrides "lsp" local overrides = require("core.hooks").createOverrides "lsp"
local function on_attach(_, bufnr) local function on_attach(_, bufnr)
local function buf_set_keymap(...) local function buf_set_keymap(...)
vim.api.nvim_buf_set_keymap(bufnr, ...) vim.api.nvim_buf_set_keymap(bufnr, ...)
end end
local function buf_set_option(...) local function buf_set_option(...)
vim.api.nvim_buf_set_option(bufnr, ...) vim.api.nvim_buf_set_option(bufnr, ...)
end end
-- Enable completion triggered by <c-x><c-o> -- Enable completion triggered by <c-x><c-o>
buf_set_option("omnifunc", "v:lua.vim.lsp.omnifunc") buf_set_option("omnifunc", "v:lua.vim.lsp.omnifunc")
-- Mappings. -- Mappings.
local opts = { noremap = true, silent = true } local opts = { noremap = true, silent = true }
-- See `:help vim.lsp.*` for documentation on any of the below functions -- See `:help vim.lsp.*` for documentation on any of the below functions
buf_set_keymap("n", "gD", "<cmd>lua vim.lsp.buf.declaration()<CR>", opts) buf_set_keymap("n", "gD", "<cmd>lua vim.lsp.buf.declaration()<CR>", opts)
buf_set_keymap("n", "gd", "<cmd>lua vim.lsp.buf.definition()<CR>", opts) buf_set_keymap("n", "gd", "<cmd>lua vim.lsp.buf.definition()<CR>", opts)
buf_set_keymap("n", "K", "<cmd>lua vim.lsp.buf.hover()<CR>", opts) buf_set_keymap("n", "K", "<cmd>lua vim.lsp.buf.hover()<CR>", opts)
buf_set_keymap("n", "gi", "<cmd>lua vim.lsp.buf.implementation()<CR>", opts) buf_set_keymap("n", "gi", "<cmd>lua vim.lsp.buf.implementation()<CR>", opts)
buf_set_keymap("n", "gk", "<cmd>lua vim.lsp.buf.signature_help()<CR>", opts) buf_set_keymap("n", "gk", "<cmd>lua vim.lsp.buf.signature_help()<CR>", opts)
buf_set_keymap("n", "<space>wa", "<cmd>lua vim.lsp.buf.add_workspace_folder()<CR>", opts) buf_set_keymap("n", "<space>wa", "<cmd>lua vim.lsp.buf.add_workspace_folder()<CR>", opts)
buf_set_keymap("n", "<space>wr", "<cmd>lua vim.lsp.buf.remove_workspace_folder()<CR>", opts) buf_set_keymap("n", "<space>wr", "<cmd>lua vim.lsp.buf.remove_workspace_folder()<CR>", opts)
buf_set_keymap("n", "<space>wl", "<cmd>lua print(vim.inspect(vim.lsp.buf.list_workspace_folders()))<CR>", opts) buf_set_keymap("n", "<space>wl", "<cmd>lua print(vim.inspect(vim.lsp.buf.list_workspace_folders()))<CR>", opts)
buf_set_keymap("n", "<space>D", "<cmd>lua vim.lsp.buf.type_definition()<CR>", opts) buf_set_keymap("n", "<space>D", "<cmd>lua vim.lsp.buf.type_definition()<CR>", opts)
buf_set_keymap("n", "<space>rn", "<cmd>lua vim.lsp.buf.rename()<CR>", opts) buf_set_keymap("n", "<space>rn", "<cmd>lua vim.lsp.buf.rename()<CR>", opts)
buf_set_keymap("n", "<space>ca", "<cmd>lua vim.lsp.buf.code_action()<CR>", opts) buf_set_keymap("n", "<space>ca", "<cmd>lua vim.lsp.buf.code_action()<CR>", opts)
buf_set_keymap("n", "gr", "<cmd>lua vim.lsp.buf.references()<CR>", opts) buf_set_keymap("n", "gr", "<cmd>lua vim.lsp.buf.references()<CR>", opts)
buf_set_keymap("n", "ge", "<cmd>lua vim.lsp.diagnostic.show_line_diagnostics()<CR>", opts) buf_set_keymap("n", "ge", "<cmd>lua vim.lsp.diagnostic.show_line_diagnostics()<CR>", opts)
buf_set_keymap("n", "[d", "<cmd>lua vim.lsp.diagnostic.goto_prev()<CR>", opts) buf_set_keymap("n", "[d", "<cmd>lua vim.lsp.diagnostic.goto_prev()<CR>", opts)
buf_set_keymap("n", "]d", "<cmd>lua vim.lsp.diagnostic.goto_next()<CR>", opts) buf_set_keymap("n", "]d", "<cmd>lua vim.lsp.diagnostic.goto_next()<CR>", opts)
buf_set_keymap("n", "<space>q", "<cmd>lua vim.lsp.diagnostic.set_loclist()<CR>", opts) buf_set_keymap("n", "<space>q", "<cmd>lua vim.lsp.diagnostic.set_loclist()<CR>", opts)
buf_set_keymap("n", "<space>fm", "<cmd>lua vim.lsp.buf.formatting()<CR>", opts) buf_set_keymap("n", "<space>fm", "<cmd>lua vim.lsp.buf.formatting()<CR>", opts)
buf_set_keymap("v", "<space>ca", "<cmd>lua vim.lsp.buf.range_code_action()<CR>", opts) buf_set_keymap("v", "<space>ca", "<cmd>lua vim.lsp.buf.range_code_action()<CR>", opts)
end end
local capabilities = vim.lsp.protocol.make_client_capabilities() local capabilities = vim.lsp.protocol.make_client_capabilities()
@ -45,16 +45,16 @@ capabilities.textDocument.completion.completionItem.deprecatedSupport = true
capabilities.textDocument.completion.completionItem.commitCharactersSupport = true capabilities.textDocument.completion.completionItem.commitCharactersSupport = true
capabilities.textDocument.completion.completionItem.tagSupport = { valueSet = { 1 } } capabilities.textDocument.completion.completionItem.tagSupport = { valueSet = { 1 } }
capabilities.textDocument.completion.completionItem.resolveSupport = { capabilities.textDocument.completion.completionItem.resolveSupport = {
properties = { properties = {
"documentation", "documentation",
"detail", "detail",
"additionalTextEdits", "additionalTextEdits",
}, },
} }
-- replace the default lsp diagnostic symbols -- replace the default lsp diagnostic symbols
local function lspSymbol(name, icon) local function lspSymbol(name, icon)
vim.fn.sign_define("LspDiagnosticsSign" .. name, { text = icon, numhl = "LspDiagnosticsDefault" .. name }) vim.fn.sign_define("LspDiagnosticsSign" .. name, { text = icon, numhl = "LspDiagnosticsDefault" .. name })
end end
lspSymbol("Error", "") lspSymbol("Error", "")
@ -63,35 +63,35 @@ lspSymbol("Hint", "")
lspSymbol("Warning", "") lspSymbol("Warning", "")
local lsp_publish_diagnostics_options = overrides.get("publish_diagnostics", { local lsp_publish_diagnostics_options = overrides.get("publish_diagnostics", {
virtual_text = { virtual_text = {
prefix = "", prefix = "",
spacing = 0, spacing = 0,
}, },
signs = true, signs = true,
underline = true, underline = true,
update_in_insert = false, -- update diagnostics insert mode update_in_insert = false, -- update diagnostics insert mode
}) })
vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with( vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with(
vim.lsp.diagnostic.on_publish_diagnostics, vim.lsp.diagnostic.on_publish_diagnostics,
lsp_publish_diagnostics_options lsp_publish_diagnostics_options
) )
vim.lsp.handlers["textDocument/hover"] = vim.lsp.with(vim.lsp.handlers.hover, { vim.lsp.handlers["textDocument/hover"] = vim.lsp.with(vim.lsp.handlers.hover, {
border = "single", border = "single",
}) })
vim.lsp.handlers["textDocument/signatureHelp"] = vim.lsp.with(vim.lsp.handlers.signature_help, { vim.lsp.handlers["textDocument/signatureHelp"] = vim.lsp.with(vim.lsp.handlers.signature_help, {
border = "single", border = "single",
}) })
-- suppress error messages from lang servers -- suppress error messages from lang servers
vim.notify = function(msg, log_level, _opts) vim.notify = function(msg, log_level, _opts)
if msg:match "exit code" then if msg:match "exit code" then
return return
end end
if log_level == vim.log.levels.ERROR then if log_level == vim.log.levels.ERROR then
vim.api.nvim_err_writeln(msg) vim.api.nvim_err_writeln(msg)
else else
vim.api.nvim_echo({ { msg } }, true, {}) vim.api.nvim_echo({ { msg } }, true, {})
end end
end end
-- requires a file containing user's lspconfigs -- requires a file containing user's lspconfigs
@ -99,5 +99,5 @@ end
local addlsp_confs = require("core.utils").load_config().plugins.options.lspconfig.setup_lspconf local addlsp_confs = require("core.utils").load_config().plugins.options.lspconfig.setup_lspconf
if string.len(addlsp_confs) ~= 0 then if string.len(addlsp_confs) ~= 0 then
require(addlsp_confs).setup_lsp(on_attach, capabilities) require(addlsp_confs).setup_lsp(on_attach, capabilities)
end end

View File

@ -1,31 +1,31 @@
local M = {} local M = {}
M.icons = { M.icons = {
Text = "", Text = "",
Method = "", Method = "",
Function = "", Function = "",
Constructor = "", Constructor = "",
Field = "", Field = "",
Variable = "", Variable = "",
Class = "", Class = "",
Interface = "", Interface = "",
Module = "", Module = "",
Property = "", Property = "",
Unit = "", Unit = "",
Value = "", Value = "",
Enum = "", Enum = "",
Keyword = "", Keyword = "",
Snippet = "", Snippet = "",
Color = "", Color = "",
File = "", File = "",
Reference = "", Reference = "",
Folder = "", Folder = "",
EnumMember = "", EnumMember = "",
Constant = "", Constant = "",
Struct = "", Struct = "",
Event = "", Event = "",
Operator = "", Operator = "",
TypeParameter = "", TypeParameter = "",
} }
return M return M

View File

@ -2,7 +2,7 @@ local present, nvimtree = pcall(require, "nvim-tree")
local git_status = require("core.utils").load_config().plugins.options.nvimtree.enable_git local git_status = require("core.utils").load_config().plugins.options.nvimtree.enable_git
if not present then if not present then
return return
end end
local g = vim.g local g = vim.g
@ -19,64 +19,64 @@ g.nvim_tree_quit_on_open = 0 -- closes tree when file's opened
g.nvim_tree_root_folder_modifier = table.concat { ":t:gs?$?/..", string.rep(" ", 1000), "?:gs?^??" } g.nvim_tree_root_folder_modifier = table.concat { ":t:gs?$?/..", string.rep(" ", 1000), "?:gs?^??" }
-- --
g.nvim_tree_show_icons = { g.nvim_tree_show_icons = {
folders = 1, folders = 1,
-- folder_arrows= 1 -- folder_arrows= 1
files = 1, files = 1,
git = git_status, git = git_status,
} }
g.nvim_tree_icons = { g.nvim_tree_icons = {
default = "", default = "",
symlink = "", symlink = "",
git = { git = {
deleted = "", deleted = "",
ignored = "", ignored = "",
renamed = "", renamed = "",
staged = "", staged = "",
unmerged = "", unmerged = "",
unstaged = "", unstaged = "",
untracked = "", untracked = "",
}, },
folder = { folder = {
-- disable indent_markers option to get arrows working or if you want both arrows and indent then just add the arrow icons in front ofthe default and opened folders below! -- disable indent_markers option to get arrows working or if you want both arrows and indent then just add the arrow icons in front ofthe default and opened folders below!
-- arrow_open = "", -- arrow_open = "",
-- arrow_closed = "", -- arrow_closed = "",
default = "", default = "",
empty = "", --  empty = "", -- 
empty_open = "", empty_open = "",
open = "", open = "",
symlink = "", symlink = "",
symlink_open = "", symlink_open = "",
}, },
} }
nvimtree.setup { nvimtree.setup {
diagnostics = { diagnostics = {
enable = false, enable = false,
icons = { icons = {
hint = "", hint = "",
info = "", info = "",
warning = "", warning = "",
error = "", error = "",
}, },
}, },
filters = { filters = {
dotfiles = false, dotfiles = false,
}, },
disable_netrw = true, disable_netrw = true,
hijack_netrw = true, hijack_netrw = true,
ignore_ft_on_setup = { "dashboard" }, ignore_ft_on_setup = { "dashboard" },
auto_close = false, auto_close = false,
open_on_tab = false, open_on_tab = false,
hijack_cursor = true, hijack_cursor = true,
update_cwd = true, update_cwd = true,
update_focused_file = { update_focused_file = {
enable = true, enable = true,
update_cwd = false, update_cwd = false,
}, },
view = { view = {
allow_resize = true, allow_resize = true,
side = "left", side = "left",
width = 25, width = 25,
}, },
} }

View File

@ -2,109 +2,118 @@ local M = {}
local nvimrc_config = require("core.utils").load_config() local nvimrc_config = require("core.utils").load_config()
M.autopairs = function() M.autopairs = function()
local present1, autopairs = pcall(require, "nvim-autopairs") local present1, autopairs = pcall(require, "nvim-autopairs")
local present2, cmp_autopairs = pcall(require, "nvim-autopairs.completion.cmp") local present2, cmp_autopairs = pcall(require, "nvim-autopairs.completion.cmp")
if not (present1 or present2) then if not (present1 or present2) then
return return
end end
autopairs.setup() autopairs.setup()
-- not needed if you disable cmp, the above var related to cmp tooo! override default config for autopairs -- not needed if you disable cmp, the above var related to cmp tooo! override default config for autopairs
local cmp = require "cmp" local cmp = require "cmp"
cmp.event:on("confirm_done", cmp_autopairs.on_confirm_done()) cmp.event:on("confirm_done", cmp_autopairs.on_confirm_done())
end end
M.better_escape = function() M.better_escape = function()
require("better_escape").setup { require("better_escape").setup {
mapping = nvimrc_config.mappings.plugins.better_escape.esc_insertmode, mapping = nvimrc_config.mappings.plugins.better_escape.esc_insertmode,
timeout = nvimrc_config.plugins.options.esc_insertmode_timeout, timeout = nvimrc_config.plugins.options.esc_insertmode_timeout,
} }
end end
M.blankline = function() M.blankline = function()
require("indent_blankline").setup { require("indent_blankline").setup {
indentLine_enabled = 1, indentLine_enabled = 1,
char = "", char = "|",
filetype_exclude = { filetype_exclude = {
"help", "help",
"terminal", "terminal",
"dashboard", "dashboard",
"packer", "packer",
"lspinfo", "lspinfo",
"TelescopePrompt", "TelescopePrompt",
"TelescopeResults", "TelescopeResults",
}, },
buftype_exclude = { "terminal" }, buftype_exclude = { "terminal" },
show_trailing_blankline_indent = false, show_trailing_blankline_indent = true,
show_first_indent_level = false, show_first_indent_level = true,
} space_char_blankline = " ",
char_highlight_list = {
"IndentBlanklineIndent1",
"IndentBlanklineIndent2",
"IndentBlanklineIndent3",
"IndentBlanklineIndent4",
"IndentBlanklineIndent5",
"IndentBlanklineIndent6",
},
}
end end
M.colorizer = function() M.colorizer = function()
local present, colorizer = pcall(require, "colorizer") local present, colorizer = pcall(require, "colorizer")
if present then if present then
colorizer.setup({ "*" }, { colorizer.setup({ "*" }, {
RGB = true, -- #RGB hex codes RGB = true, -- #RGB hex codes
RRGGBB = true, -- #RRGGBB hex codes RRGGBB = true, -- #RRGGBB hex codes
names = false, -- "Name" codes like Blue names = false, -- "Name" codes like Blue
RRGGBBAA = false, -- #RRGGBBAA hex codes RRGGBBAA = false, -- #RRGGBBAA hex codes
rgb_fn = false, -- CSS rgb() and rgba() functions rgb_fn = false, -- CSS rgb() and rgba() functions
hsl_fn = false, -- CSS hsl() and hsla() functions hsl_fn = false, -- CSS hsl() and hsla() functions
css = false, -- Enable all CSS features: rgb_fn, hsl_fn, names, RGB, RRGGBB css = false, -- Enable all CSS features: rgb_fn, hsl_fn, names, RGB, RRGGBB
css_fn = false, -- Enable all CSS *functions*: rgb_fn, hsl_fn css_fn = false, -- Enable all CSS *functions*: rgb_fn, hsl_fn
-- Available modes: foreground, background -- Available modes: foreground, background
mode = "background", -- Set the display mode. mode = "background", -- Set the display mode.
}) })
vim.cmd "ColorizerReloadAllBuffers" vim.cmd "ColorizerReloadAllBuffers"
end end
end end
M.comment = function() M.comment = function()
local present, nvim_comment = pcall(require, "nvim_comment") local present, nvim_comment = pcall(require, "nvim_comment")
if present then if present then
nvim_comment.setup() nvim_comment.setup()
end end
end end
M.luasnip = function() M.luasnip = function()
local present, luasnip = pcall(require, "luasnip") local present, luasnip = pcall(require, "luasnip")
if not present then if not present then
return return
end end
luasnip.config.set_config { luasnip.config.set_config {
history = true, history = true,
updateevents = "TextChanged,TextChangedI", updateevents = "TextChanged,TextChangedI",
} }
require("luasnip/loaders/from_vscode").load { paths = nvimrc_config.plugins.options.luasnip.snippet_path } require("luasnip/loaders/from_vscode").load { paths = nvimrc_config.plugins.options.luasnip.snippet_path }
require("luasnip/loaders/from_vscode").load() require("luasnip/loaders/from_vscode").load()
end end
M.signature = function() M.signature = function()
local present, lspsignature = pcall(require, "lsp_signature") local present, lspsignature = pcall(require, "lsp_signature")
if present then if present then
lspsignature.setup { lspsignature.setup {
bind = true, bind = true,
doc_lines = 0, doc_lines = 0,
floating_window = true, floating_window = true,
fix_pos = true, fix_pos = true,
hint_enable = true, hint_enable = true,
hint_prefix = "", hint_prefix = "",
hint_scheme = "String", hint_scheme = "String",
hi_parameter = "Search", hi_parameter = "Search",
max_height = 22, max_height = 22,
max_width = 120, -- max_width of signature floating_window, line will be wrapped if exceed max_width max_width = 120, -- max_width of signature floating_window, line will be wrapped if exceed max_width
handler_opts = { handler_opts = {
border = "single", -- double, single, shadow, none border = "single", -- double, single, shadow, none
}, },
zindex = 200, -- by default it will be on top of all floating windows, set to 50 send it to bottom zindex = 200, -- by default it will be on top of all floating windows, set to 50 send it to bottom
padding = "", -- character to pad on left and right of signature can be ' ', or '|' etc padding = "", -- character to pad on left and right of signature can be ' ', or '|' etc
} }
end end
end end
return M return M

View File

@ -1,80 +1,80 @@
local present, telescope = pcall(require, "telescope") local present, telescope = pcall(require, "telescope")
if not present then if not present then
return return
end end
telescope.setup { telescope.setup {
defaults = { defaults = {
vimgrep_arguments = { vimgrep_arguments = {
"rg", "rg",
"--color=never", "--color=never",
"--no-heading", "--no-heading",
"--with-filename", "--with-filename",
"--line-number", "--line-number",
"--column", "--column",
"--smart-case", "--smart-case",
}, },
prompt_prefix = "", prompt_prefix = "",
selection_caret = " ", selection_caret = " ",
entry_prefix = " ", entry_prefix = " ",
initial_mode = "insert", initial_mode = "insert",
selection_strategy = "reset", selection_strategy = "reset",
sorting_strategy = "ascending", sorting_strategy = "ascending",
layout_strategy = "horizontal", layout_strategy = "horizontal",
layout_config = { layout_config = {
horizontal = { horizontal = {
prompt_position = "top", prompt_position = "top",
preview_width = 0.55, preview_width = 0.55,
results_width = 0.8, results_width = 0.8,
}, },
vertical = { vertical = {
mirror = false, mirror = false,
}, },
width = 0.87, width = 0.87,
height = 0.80, height = 0.80,
preview_cutoff = 120, preview_cutoff = 120,
}, },
file_sorter = require("telescope.sorters").get_fuzzy_file, file_sorter = require("telescope.sorters").get_fuzzy_file,
file_ignore_patterns = { "node_modules" }, file_ignore_patterns = { "node_modules" },
generic_sorter = require("telescope.sorters").get_generic_fuzzy_sorter, generic_sorter = require("telescope.sorters").get_generic_fuzzy_sorter,
path_display = { "absolute" }, path_display = { "absolute" },
winblend = 0, winblend = 0,
border = {}, border = {},
borderchars = { "", "", "", "", "", "", "", "" }, borderchars = { "", "", "", "", "", "", "", "" },
color_devicons = true, color_devicons = true,
use_less = true, use_less = true,
set_env = { ["COLORTERM"] = "truecolor" }, -- default = nil, set_env = { ["COLORTERM"] = "truecolor" }, -- default = nil,
file_previewer = require("telescope.previewers").vim_buffer_cat.new, file_previewer = require("telescope.previewers").vim_buffer_cat.new,
grep_previewer = require("telescope.previewers").vim_buffer_vimgrep.new, grep_previewer = require("telescope.previewers").vim_buffer_vimgrep.new,
qflist_previewer = require("telescope.previewers").vim_buffer_qflist.new, qflist_previewer = require("telescope.previewers").vim_buffer_qflist.new,
-- Developer configurations: Not meant for general override -- Developer configurations: Not meant for general override
buffer_previewer_maker = require("telescope.previewers").buffer_previewer_maker, buffer_previewer_maker = require("telescope.previewers").buffer_previewer_maker,
}, },
extensions = { extensions = {
fzf = { fzf = {
fuzzy = true, -- false will only do exact matching fuzzy = true, -- false will only do exact matching
override_generic_sorter = false, -- override the generic sorter override_generic_sorter = false, -- override the generic sorter
override_file_sorter = true, -- override the file sorter override_file_sorter = true, -- override the file sorter
case_mode = "smart_case", -- or "ignore_case" or "respect_case" case_mode = "smart_case", -- or "ignore_case" or "respect_case"
-- the default case_mode is "smart_case" -- the default case_mode is "smart_case"
}, },
media_files = { media_files = {
filetypes = { "png", "webp", "jpg", "jpeg" }, filetypes = { "png", "webp", "jpg", "jpeg" },
find_cmd = "rg", -- find command (defaults to `fd`) find_cmd = "rg", -- find command (defaults to `fd`)
}, },
}, },
} }
local extensions = { "themes", "terms", "fzf" } local extensions = { "themes", "terms", "fzf" }
local packer_repos = [["extensions", "telescope-fzf-native.nvim"]] local packer_repos = [["extensions", "telescope-fzf-native.nvim"]]
if vim.fn.executable "ueberzug" == 1 then if vim.fn.executable "ueberzug" == 1 then
table.insert(extensions, "media_files") table.insert(extensions, "media_files")
packer_repos = packer_repos .. ', "telescope-media-files.nvim"' packer_repos = packer_repos .. ', "telescope-media-files.nvim"'
end end
pcall(function() pcall(function()
for _, ext in ipairs(extensions) do for _, ext in ipairs(extensions) do
telescope.load_extension(ext) telescope.load_extension(ext)
end end
end) end)

View File

@ -1,15 +1,15 @@
local present, ts_config = pcall(require, "nvim-treesitter.configs") local present, ts_config = pcall(require, "nvim-treesitter.configs")
if not present then if not present then
return return
end end
ts_config.setup { ts_config.setup {
ensure_installed = { ensure_installed = {
"lua", "lua",
"org", "org",
}, },
highlight = { highlight = {
enable = true, enable = true,
use_languagetree = true, use_languagetree = true,
}, },
} }

View File

@ -5,43 +5,43 @@ cmd "packadd packer.nvim"
local present, packer = pcall(require, "packer") local present, packer = pcall(require, "packer")
if not present then if not present then
local packer_path = vim.fn.stdpath "data" .. "/site/pack/packer/opt/packer.nvim" local packer_path = vim.fn.stdpath "data" .. "/site/pack/packer/opt/packer.nvim"
print "Cloning packer.." print "Cloning packer.."
-- remove the dir before cloning -- remove the dir before cloning
vim.fn.delete(packer_path, "rf") vim.fn.delete(packer_path, "rf")
vim.fn.system { vim.fn.system {
"git", "git",
"clone", "clone",
"https://github.com/wbthomason/packer.nvim", "https://github.com/wbthomason/packer.nvim",
"--depth", "--depth",
"20", "20",
packer_path, packer_path,
} }
cmd "packadd packer.nvim" cmd "packadd packer.nvim"
present, packer = pcall(require, "packer") present, packer = pcall(require, "packer")
if present then if present then
print "Packer cloned successfully." print "Packer cloned successfully."
else else
error("Couldn't clone packer !\nPacker path: " .. packer_path .. "\n" .. packer) error("Couldn't clone packer !\nPacker path: " .. packer_path .. "\n" .. packer)
end end
end end
packer.init { packer.init {
display = { display = {
open_fn = function() open_fn = function()
return require("packer.util").float { border = "single" } return require("packer.util").float { border = "single" }
end, end,
prompt_border = "single", prompt_border = "single",
}, },
git = { git = {
clone_timeout = 600, -- Timeout, in seconds, for git clones clone_timeout = 600, -- Timeout, in seconds, for git clones
}, },
auto_clean = true, auto_clean = true,
compile_on_sync = true, compile_on_sync = true,
-- auto_reload_compiled = true -- auto_reload_compiled = true
} }
return packer return packer

View File

@ -343,6 +343,11 @@ _G.packer_plugins = {
path = "/home/repo/.local/share/nvim/site/pack/packer/start/vim-clap", path = "/home/repo/.local/share/nvim/site/pack/packer/start/vim-clap",
url = "https://github.com/liuchengxu/vim-clap" url = "https://github.com/liuchengxu/vim-clap"
}, },
["vim-coloresque"] = {
loaded = true,
path = "/home/repo/.local/share/nvim/site/pack/packer/start/vim-coloresque",
url = "https://github.com/gko/vim-coloresque"
},
["vim-css-color"] = { ["vim-css-color"] = {
loaded = true, loaded = true,
path = "/home/repo/.local/share/nvim/site/pack/packer/start/vim-css-color", path = "/home/repo/.local/share/nvim/site/pack/packer/start/vim-css-color",
@ -486,11 +491,11 @@ vim.cmd [[ packadd nvim-autopairs ]]
require('plugins.configs.others').autopairs() require('plugins.configs.others').autopairs()
vim.cmd [[ packadd cmp-buffer ]] vim.cmd [[ packadd cmp-buffer ]]
vim.cmd [[ packadd cmp_luasnip ]] vim.cmd [[ packadd cmp_luasnip ]]
vim.cmd [[ packadd cmp-nvim-lua ]]
vim.cmd [[ packadd cmp-path ]] vim.cmd [[ packadd cmp-path ]]
vim.cmd [[ packadd LuaSnip ]] vim.cmd [[ packadd LuaSnip ]]
-- Config for: LuaSnip -- Config for: LuaSnip
require('plugins.configs.others').luasnip() require('plugins.configs.others').luasnip()
vim.cmd [[ packadd cmp-nvim-lua ]]
time([[Sequenced loading]], false) time([[Sequenced loading]], false)
-- Command lazy-loads -- Command lazy-loads

View File

@ -1,9 +1,9 @@
ACCENT_BG=BF616A ACCENT_BG=F92672
BASE16_GENERATE_DARK=False BASE16_GENERATE_DARK=False
BASE16_INVERT_TERMINAL=False BASE16_INVERT_TERMINAL=False
BASE16_MILD_TERMINAL=False BASE16_MILD_TERMINAL=False
BG=2E3440 BG=2D2A2E
BTN_BG=2E3440 BTN_BG=2D2A2E
BTN_FG=f8f8f2 BTN_FG=f8f8f2
BTN_OUTLINE_OFFSET=-3 BTN_OUTLINE_OFFSET=-3
BTN_OUTLINE_WIDTH=1 BTN_OUTLINE_WIDTH=1
@ -14,14 +14,14 @@ CINNAMON_OPACITY=1.0
FG=f8f8f2 FG=f8f8f2
GRADIENT=0.0 GRADIENT=0.0
GTK3_GENERATE_DARK=False GTK3_GENERATE_DARK=False
HDR_BG=2E3440 HDR_BG=2D2A2E
HDR_BTN_BG=4C566A HDR_BTN_BG=272822
HDR_BTN_FG=f8f8f2 HDR_BTN_FG=f8f8f2
HDR_FG=f8f8f2 HDR_FG=f8f8f2
ICONS_DARK=2E3440 ICONS_DARK=2D2A2E
ICONS_LIGHT=2E3440 ICONS_LIGHT=2D2A2E
ICONS_LIGHT_FOLDER=2E3440 ICONS_LIGHT_FOLDER=2D2A2E
ICONS_MEDIUM=2E3440 ICONS_MEDIUM=2D2A2E
ICONS_NUMIX_STYLE=0 ICONS_NUMIX_STYLE=0
ICONS_STYLE=gnome_colors ICONS_STYLE=gnome_colors
ICONS_SYMBOLIC_ACTION=e8e8e8 ICONS_SYMBOLIC_ACTION=e8e8e8
@ -31,34 +31,34 @@ MATERIA_SELECTION_OPACITY=0.32
MATERIA_STYLE_COMPACT=True MATERIA_STYLE_COMPACT=True
MENU_BG=212121 MENU_BG=212121
MENU_FG=e0e0e0 MENU_FG=e0e0e0
NAME="TheRepoClub/Nordik" NAME="TheRepoClub/Monokai"
OUTLINE_WIDTH=1 OUTLINE_WIDTH=1
ROUNDNESS=4 ROUNDNESS=4
SEL_BG=BF616A SEL_BG=F92672
SEL_FG=2E3440 SEL_FG=2D2A2E
SPACING=3 SPACING=3
SURUPLUS_GRADIENT1=e8e8e8 SURUPLUS_GRADIENT1=e8e8e8
SURUPLUS_GRADIENT2=f8f8f2 SURUPLUS_GRADIENT2=f8f8f2
SURUPLUS_GRADIENT_ENABLED=False SURUPLUS_GRADIENT_ENABLED=False
TERMINAL_ACCENT_COLOR=44475a TERMINAL_ACCENT_COLOR=44475a
TERMINAL_BACKGROUND=2e3440 TERMINAL_BACKGROUND=2D2A2E
TERMINAL_BASE_TEMPLATE=tempus_winter TERMINAL_BASE_TEMPLATE=tempus_winter
TERMINAL_COLOR0=21222c TERMINAL_COLOR0=2D2A2E
TERMINAL_COLOR1=ff5555 TERMINAL_COLOR1=FC9867
TERMINAL_COLOR10=69ff94 TERMINAL_COLOR10=A6E22E
TERMINAL_COLOR11=ffffa5 TERMINAL_COLOR11=E6DB74
TERMINAL_COLOR12=acb6ff TERMINAL_COLOR12=66D9EF
TERMINAL_COLOR13=ff92df TERMINAL_COLOR13=AE81FF
TERMINAL_COLOR14=a4ffff TERMINAL_COLOR14=F92672
TERMINAL_COLOR15=ffffff TERMINAL_COLOR15=ffffff
TERMINAL_COLOR2=50fa7b TERMINAL_COLOR2=A9DC76
TERMINAL_COLOR3=f1fa8c TERMINAL_COLOR3=FFD866
TERMINAL_COLOR4=93adf9 TERMINAL_COLOR4=78DCE8
TERMINAL_COLOR5=ff79c6 TERMINAL_COLOR5=AB9DF2
TERMINAL_COLOR6=8be9fd TERMINAL_COLOR6=FF6188
TERMINAL_COLOR7=f8f8f2 TERMINAL_COLOR7=f8f8f2
TERMINAL_COLOR8=4d4d4d TERMINAL_COLOR8=272822
TERMINAL_COLOR9=ff6e6e TERMINAL_COLOR9=FD971F
TERMINAL_CURSOR=f8f8f2 TERMINAL_CURSOR=f8f8f2
TERMINAL_FOREGROUND=f8f8f2 TERMINAL_FOREGROUND=f8f8f2
TERMINAL_THEME_ACCURACY=122 TERMINAL_THEME_ACCURACY=122
@ -66,8 +66,8 @@ TERMINAL_THEME_AUTO_BGFG=True
TERMINAL_THEME_EXTEND_PALETTE=True TERMINAL_THEME_EXTEND_PALETTE=True
TERMINAL_THEME_MODE=manual TERMINAL_THEME_MODE=manual
THEME_STYLE=oomox THEME_STYLE=oomox
TXT_BG=2E3440 TXT_BG=2D2A2E
TXT_FG=f8f8f2 TXT_FG=f8f8f2
UNITY_DEFAULT_LAUNCHER_STYLE=False UNITY_DEFAULT_LAUNCHER_STYLE=False
WM_BORDER_FOCUS=2e3440 WM_BORDER_FOCUS=2d2a2e
WM_BORDER_UNFOCUS=4C566A WM_BORDER_UNFOCUS=272822

View File

@ -1 +1 @@
{"last_variant": "default", "last_app": "kitty"} {"last_variant": "default", "last_app": "vim"}

View File

@ -1 +1 @@
["#43434c4c5e5e", "#2e2e34344040", "#bdde091eb9ca", "#acacb788ffff", "#9393ae26f9f9", "#ffff7979c6c6", "#bdbd9393f9f9", "#e6e6e6e6fafa", "#000080800000", "#62627272a4a4", "#444447475a5a", "#00000000ffff", "#f8f8f8f8f2f2", "#ffffffffffff", "#28282a2a3636"] ["#2d2d2a2a2e2e", "#43434c4c5e5e", "#2e2e34344040", "#bdde091eb9ca", "#acacb788ffff", "#9393ae26f9f9", "#ffff7979c6c6", "#bdbd9393f9f9", "#e6e6e6e6fafa", "#000080800000", "#62627272a4a4", "#444447475a5a", "#00000000ffff", "#f8f8f8f8f2f2", "#ffffffffffff", "#28282a2a3636"]

View File

@ -1 +1 @@
{"window_width": 1906, "window_height": 971, "preset_list_minimal_width": 150, "preset_list_width": 162, "preset_list_sections_expanded": {"presets": false, "plugins": true, "Xresources": false, "Random": false, "Base16": true, "Image colors": true, "user": true, "Base16 User-Imported": true}} {"window_width": 1902, "window_height": 970, "preset_list_minimal_width": 150, "preset_list_width": 198, "preset_list_sections_expanded": {"presets": false, "plugins": true, "Xresources": false, "Random": false, "Base16": true, "Image colors": true, "user": true, "Base16 User-Imported": true}}

View File

@ -63,6 +63,7 @@ repomenu-schemas
repowm repowm
repowm-schemas repowm-schemas
runescape-launcher runescape-launcher
sdbus-cpp
sddm-endeavour sddm-endeavour
siji siji
stacer stacer

View File

@ -12,6 +12,6 @@ strings=zap, i3-gaps, microsoft edge, python3, python, pamac, onivim, nushell, o
[window] [window]
central-splitter=@ByteArray(\0\0\0\xff\0\0\0\x1\0\0\0\x2\0\0\x1\0\0\0\x1>\0\xff\xff\xff\xff\x1\0\0\0\x1\0) central-splitter=@ByteArray(\0\0\0\xff\0\0\0\x1\0\0\0\x2\0\0\x1\0\0\0\x1>\0\xff\xff\xff\xff\x1\0\0\0\x1\0)
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\a\x86\0\0\0 \0\0\xe\xf9\0\0\x4\x17\0\0\a\x87\0\0\0!\0\0\xe\xf8\0\0\x4\x16\0\0\0\x1\0\0\0\0\a\x80\0\0\a\x87\0\0\0!\0\0\xe\xf8\0\0\x4\x16) geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\vB\0\0\0 \0\0\xe\xf9\0\0\x4\x17\0\0\vC\0\0\0!\0\0\xe\xf8\0\0\x4\x16\0\0\0\x1\0\0\0\0\a\x80\0\0\vC\0\0\0!\0\0\xe\xf8\0\0\x4\x16)
left-splitter=@ByteArray(\0\0\0\xff\0\0\0\x1\0\0\0\x2\0\0\0\xc0\0\0\x1\f\0\xff\xff\xff\xff\x1\0\0\0\x2\0) left-splitter=@ByteArray(\0\0\0\xff\0\0\0\x1\0\0\0\x2\0\0\0\xc0\0\0\x1\f\0\xff\xff\xff\xff\x1\0\0\0\x2\0)
right-splitter=@ByteArray(\0\0\0\xff\0\0\0\x1\0\0\0\x2\0\0\0\xc0\0\0\0\xee\0\xff\xff\xff\xff\x1\0\0\0\x2\0) right-splitter=@ByteArray(\0\0\0\xff\0\0\0\x1\0\0\0\x2\0\0\0\xc0\0\0\0\xee\0\xff\xff\xff\xff\x1\0\0\0\x2\0)

View File

@ -28,7 +28,7 @@ wheel_scroll_lines=3
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\v\x84\0\0\0\xf4\0\0\xe\xa9\0\0\x3\xa8\0\0\v\x85\0\0\0\xf5\0\0\xe\xa8\0\0\x3\xa7\0\0\0\x1\0\0\0\0\a\x80\0\0\v\x85\0\0\0\xf5\0\0\xe\xa8\0\0\x3\xa7) geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\v\x84\0\0\0\xf4\0\0\xe\xa9\0\0\x3\xa8\0\0\v\x85\0\0\0\xf5\0\0\xe\xa8\0\0\x3\xa7\0\0\0\x1\0\0\0\0\a\x80\0\0\v\x85\0\0\0\xf5\0\0\xe\xa8\0\0\x3\xa7)
[SettingsWindow] [SettingsWindow]
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\vB\0\0\0 \0\0\xe\xf9\0\0\x4\x17\0\0\vC\0\0\0!\0\0\xe\xf8\0\0\x4\x16\0\0\0\x1\0\0\0\0\a\x80\0\0\vC\0\0\0!\0\0\xe\xf8\0\0\x4\x16) geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\n\"\0\0\0 \0\0\f\xbd\0\0\x4\x17\0\0\n#\0\0\0!\0\0\f\xbc\0\0\x4\x16\0\0\0\x1\0\0\0\0\a\x80\0\0\n#\0\0\0!\0\0\f\xbc\0\0\x4\x16)
[Troubleshooting] [Troubleshooting]
force_raster_widgets=1 force_raster_widgets=1

View File

@ -28,7 +28,7 @@ wheel_scroll_lines=3
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\n\xcd\0\0\x1\x1e\0\0\rE\0\0\x3\x30\0\0\n\xce\0\0\x1\x1f\0\0\rD\0\0\x3/\0\0\0\x1\0\0\0\0\a\x80\0\0\n\xce\0\0\x1\x1f\0\0\rD\0\0\x3/) geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\n\xcd\0\0\x1\x1e\0\0\rE\0\0\x3\x30\0\0\n\xce\0\0\x1\x1f\0\0\rD\0\0\x3/\0\0\0\x1\0\0\0\0\a\x80\0\0\n\xce\0\0\x1\x1f\0\0\rD\0\0\x3/)
[SettingsWindow] [SettingsWindow]
geometry="@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\a\x86\0\0\x2\x1e\0\0\v=\0\0\x4\x17\0\0\a\x87\0\0\x2\x1f\0\0\v<\0\0\x4\x16\0\0\0\x1\0\0\0\0\a\x80\0\0\a\x87\0\0\x2\x1f\0\0\v<\0\0\x4\x16)" geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\n\"\0\0\0 \0\0\f\xbd\0\0\x4\x17\0\0\n#\0\0\0!\0\0\f\xbc\0\0\x4\x16\0\0\0\x1\0\0\0\0\a\x80\0\0\n#\0\0\0!\0\0\f\xbc\0\0\x4\x16)
[Troubleshooting] [Troubleshooting]
force_raster_widgets=1 force_raster_widgets=1

View File

@ -35,8 +35,9 @@
; (gtk_accel_path "<Actions>/XedWindowAlwaysSensitiveActions/Help" "") ; (gtk_accel_path "<Actions>/XedWindowAlwaysSensitiveActions/Help" "")
; (gtk_accel_path "<Actions>/XedWindowActions/EditDelete" "") ; (gtk_accel_path "<Actions>/XedWindowActions/EditDelete" "")
; (gtk_accel_path "<Actions>/XedSpellPluginActions/CheckSpell" "<Shift>F7") ; (gtk_accel_path "<Actions>/XedSpellPluginActions/CheckSpell" "<Shift>F7")
; (gtk_accel_path "<Actions>/XedWindowActions/DocumentsNextDocument" "<Primary><Alt>Page_Down")
; (gtk_accel_path "<Actions>/XedWindowAlwaysSensitiveActions/Documents" "") ; (gtk_accel_path "<Actions>/XedWindowAlwaysSensitiveActions/Documents" "")
; (gtk_accel_path "<Actions>/XedWindowActions/DocumentsNextDocument" "<Primary><Alt>Page_Down")
; (gtk_accel_path "<Actions>/XedWindowAlwaysSensitiveActions/ViewMenubar" "")
; (gtk_accel_path "<Actions>/FileBrowserWidgetSingleMostSelectionActionGroup/DirectoryNew" "") ; (gtk_accel_path "<Actions>/FileBrowserWidgetSingleMostSelectionActionGroup/DirectoryNew" "")
; (gtk_accel_path "<Actions>/FileBrowserWidgetSensitiveActionGroup/DirectoryRefresh" "") ; (gtk_accel_path "<Actions>/FileBrowserWidgetSensitiveActionGroup/DirectoryRefresh" "")
; (gtk_accel_path "<Actions>/XedWindowActions/FilePrint" "<Primary>p") ; (gtk_accel_path "<Actions>/XedWindowActions/FilePrint" "<Primary>p")
@ -59,13 +60,13 @@
; (gtk_accel_path "<Actions>/FileBrowserWidgetActionGroup/FilterBinary" "") ; (gtk_accel_path "<Actions>/FileBrowserWidgetActionGroup/FilterBinary" "")
; (gtk_accel_path "<Actions>/XedWindowActions/FileCloseAll" "<Primary><Shift>w") ; (gtk_accel_path "<Actions>/XedWindowActions/FileCloseAll" "<Primary><Shift>w")
; (gtk_accel_path "<Actions>/XedWindowAlwaysSensitiveActions/Search" "") ; (gtk_accel_path "<Actions>/XedWindowAlwaysSensitiveActions/Search" "")
; (gtk_accel_path "<Actions>/FileBrowserWidgetActionGroupToplevel/FilterMenuAction" "")
; (gtk_accel_path "<Actions>/XedSpellPluginActions/InlineSpellChecker" "") ; (gtk_accel_path "<Actions>/XedSpellPluginActions/InlineSpellChecker" "")
; (gtk_accel_path "<Actions>/XedWindowActions/DocumentsPreviousDocument" "<Primary><Alt>Page_Up") ; (gtk_accel_path "<Actions>/XedWindowActions/DocumentsPreviousDocument" "<Primary><Alt>Page_Up")
; (gtk_accel_path "<Actions>/XedWindowActions/EditToggleCommentBlock" "<Primary><Shift>question") ; (gtk_accel_path "<Actions>/XedWindowActions/EditToggleCommentBlock" "<Primary><Shift>question")
; (gtk_accel_path "<Actions>/XedTextSizePluginActions/SmallerTextAction" "<Primary>minus")
; (gtk_accel_path "<Actions>/FileBrowserWidgetActionGroupToplevel/FilterMenuAction" "")
; (gtk_accel_path "<Actions>/XedWindowAlwaysSensitiveActions/XAppFavoritesMenu" "") ; (gtk_accel_path "<Actions>/XedWindowAlwaysSensitiveActions/XAppFavoritesMenu" "")
; (gtk_accel_path "<Actions>/XedWindowAlwaysSensitiveActions/Edit" "") ; (gtk_accel_path "<Actions>/XedWindowAlwaysSensitiveActions/Edit" "")
; (gtk_accel_path "<Actions>/XedTextSizePluginActions/SmallerTextAction" "<Primary>minus")
; (gtk_accel_path "<Actions>/XedWindowActions/FileSaveAs" "<Primary><Shift>s") ; (gtk_accel_path "<Actions>/XedWindowActions/FileSaveAs" "<Primary><Shift>s")
; (gtk_accel_path "<Actions>/FileBrowserWidgetBookmarkActionGroup/BookmarkOpen" "") ; (gtk_accel_path "<Actions>/FileBrowserWidgetBookmarkActionGroup/BookmarkOpen" "")
; (gtk_accel_path "<Actions>/XedWindowActions/EditCopy" "<Primary>c") ; (gtk_accel_path "<Actions>/XedWindowActions/EditCopy" "<Primary>c")