From 00ae43a23dd26ed0b84ee2a73a90c47f58d6a855 Mon Sep 17 00:00:00 2001 From: afonsofrancof Date: Wed, 28 Jun 2023 00:33:59 +0100 Subject: [PATCH 1/3] [MINOR] Exported READER as mupdf --- .config/fish/config.fish | 1 + 1 file changed, 1 insertion(+) diff --git a/.config/fish/config.fish b/.config/fish/config.fish index 12e913d..f251983 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -4,6 +4,7 @@ end fish_default_key_bindings set -gx EDITOR nvim +set -gx READER mupdf fish_add_path $HOME/.local/share/nvim/mason/bin fish_add_path /home/afonso/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin From c32f3e7f1a313373fd482307c25bb459b8be3550 Mon Sep 17 00:00:00 2001 From: afonsofrancof Date: Wed, 28 Jun 2023 00:34:24 +0100 Subject: [PATCH 2/3] [MINOR] Added underline comparator to cmp --- .config/nvim/lua/plugins/cmp.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.config/nvim/lua/plugins/cmp.lua b/.config/nvim/lua/plugins/cmp.lua index 8cf9092..29f0918 100644 --- a/.config/nvim/lua/plugins/cmp.lua +++ b/.config/nvim/lua/plugins/cmp.lua @@ -126,6 +126,19 @@ cmp.setup { cmp.config.compare.exact, cmp.config.compare.offset, cmp.config.compare.recently_used, + + --Make entries that start with underline appear after + function(entry1, entry2) + local _, entry1_under = entry1.completion_item.label:find "^_+" + local _, entry2_under = entry2.completion_item.label:find "^_+" + entry1_under = entry1_under or 0 + entry2_under = entry2_under or 0 + if entry1_under > entry2_under then + return false + elseif entry1_under < entry2_under then + return true + end + end, } }, sources = cmp.config.sources( From bf2fd2c6342ba5e1b5d066db0d695913f30348f2 Mon Sep 17 00:00:00 2001 From: afonsofrancof Date: Wed, 28 Jun 2023 00:35:00 +0100 Subject: [PATCH 3/3] [MINOR] Fixed indentation on xmonad config --- .config/xmonad/xmonad.norg | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/.config/xmonad/xmonad.norg b/.config/xmonad/xmonad.norg index a6f1a28..ac8f833 100644 --- a/.config/xmonad/xmonad.norg +++ b/.config/xmonad/xmonad.norg @@ -214,21 +214,20 @@ myXmobarPP s = def @code haskell myConfig = def - { - terminal = myTerminal, - focusFollowsMouse = myFocusFollowsMouse, - clickJustFocuses = myClickJustFocuses, - borderWidth = myBorderWidth, - modMask = myModMask, - workspaces = myWorkspaces, - normalBorderColor = myNormalBorderColor, - focusedBorderColor = myFocusedBorderColor, - -- keys = myKeys, - layoutHook = smartBorders . spacingWithEdge 10 $ myLayout, - manageHook = manageSpawn <+> myManageHook <+> manageHook def, - handleEventHook = myEventHook <+> fullscreenEventHook <+> swallowEventHook (className=?"Alacritty") (return True), - startupHook = myStartupHook - } + { + terminal = myTerminal, + focusFollowsMouse = myFocusFollowsMouse, + clickJustFocuses = myClickJustFocuses, + borderWidth = myBorderWidth, + modMask = myModMask, + workspaces = myWorkspaces, + normalBorderColor = myNormalBorderColor, + focusedBorderColor = myFocusedBorderColor, + layoutHook = smartBorders . spacingWithEdge 5 $ myLayout, + manageHook = manageSpawn <+> myManageHook <+> manageHook def, + handleEventHook = myEventHook <+> fullscreenEventHook <+> swallowEventHook (className=?"Alacritty") (return True), + startupHook = myStartupHook + } @end * Main @code haskell