From 5578496be0c7af979b8cf64367376dcb639fffba Mon Sep 17 00:00:00 2001 From: Tomas Rivera Date: Sun, 26 Apr 2026 19:33:07 +0200 Subject: [PATCH] fixed clangd header insertion and added sbb-tui --- hosts/laptop/home.nix | 2 ++ modules/home-manager/neovim.nix | 2 ++ modules/home-manager/sbb-tui.nix | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 36 insertions(+) create mode 100644 modules/home-manager/sbb-tui.nix diff --git a/hosts/laptop/home.nix b/hosts/laptop/home.nix index 6959bb2..a3a32cf 100755 --- a/hosts/laptop/home.nix +++ b/hosts/laptop/home.nix @@ -41,6 +41,8 @@ ../../modules/home-manager/eza.nix # ls replacement ../../modules/home-manager/vivify.nix # neovim markdown viewer (has also config for qutebrowser #../../modules/home-manager/micro.nix # micro text editor. Not main editor (used for testing for notewrapper) + ../../modules/home-manager/sbb-tui.nix # cff TUI app + ../../modules/other/desktopEntries.nix # creates .desktop files ]; diff --git a/modules/home-manager/neovim.nix b/modules/home-manager/neovim.nix index 5314706..0ec4977 100644 --- a/modules/home-manager/neovim.nix +++ b/modules/home-manager/neovim.nix @@ -290,6 +290,8 @@ clangdFileStatus = true, usePlaceholders = true, completeUnimported = false, -- this adds a bunch of #include even thought they are #included in another header file + headerInsertion = false, + headerInsertionDecorators = false, semanticHighlighting = true} }) vim.lsp.config("nixd", { diff --git a/modules/home-manager/sbb-tui.nix b/modules/home-manager/sbb-tui.nix new file mode 100644 index 0000000..af0698b --- /dev/null +++ b/modules/home-manager/sbb-tui.nix @@ -0,0 +1,32 @@ +{ + pkgs-unstable, + ... +}: { + home.packages = [ + pkgs-unstable.sbb-tui + ]; + home.file.".config/sbb-tui/config.yaml" = { + enable = true; +# Gruvbox (from https://github.com/Necrom4/sbb-tui/blob/master/docs/themes.md) + text = '' +ui: + nerdfont: true + theme: + text: "#EBDBB2" + textMuted: "#928374" + error: "#FB4934" + warning: "#FB4934" + borderFocused: "#FABD2F" + borderUnfocused: "#504945" + badgeKeyFg: "#282828" + badgeKeyBg: "#FABD2F" + badgeVehicleFg: "#EBDBB2" + badgeVehicleBg: "#458588" + badgeModelFg: "#282828" + badgeModelBg: "#FB4934" + badgeCompanyFg: "#282828" + badgeCompanyBg: "#EBDBB2" + logo: "#EBDBB2" +''; + }; +}