From c9913601549bf6b283dbb261f77a8beaeb5a62d5 Mon Sep 17 00:00:00 2001 From: Roel de Cort <63876068+dc-tec@users.noreply.github.com> Date: Wed, 26 Jun 2024 23:18:15 +0200 Subject: [PATCH] feat: styling updates (#10) Updated some plugins to use custom git and diagnostic symbols, also changed the line number color to match my system highlight color (catppuccin peach). --- README.md | 2 +- config/plugins/editor/neo-tree.nix | 14 ++++++++++++++ config/plugins/themes/default.nix | 7 +++++++ config/plugins/ui/bufferline.nix | 6 ++++++ config/plugins/ui/lualine.nix | 1 + 5 files changed, 29 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index abf2da8..ab7b216 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # NixVim Configuration -This repository contains the configuration for NixVim, a Neovim configuration managed with Nix. +This repository contains my personal configuration NixVim, a Neovim configuration managed with Nix. ## General Configuration diff --git a/config/plugins/editor/neo-tree.nix b/config/plugins/editor/neo-tree.nix index f8d8403..18b2ca8 100644 --- a/config/plugins/editor/neo-tree.nix +++ b/config/plugins/editor/neo-tree.nix @@ -18,6 +18,20 @@ expanderExpanded = " "; expanderHighlight = "NeoTreeExpander"; }; + + gitStatus = { + symbols = { + added = " "; + conflict = "󰩌 "; + deleted = "󱂥"; + ignored = " "; + modified = " "; + renamed = "󰑕"; + staged = "󰩍"; + unstaged = ""; + untracked = ""; + }; + }; }; }; diff --git a/config/plugins/themes/default.nix b/config/plugins/themes/default.nix index 2a5ecde..d6779ca 100644 --- a/config/plugins/themes/default.nix +++ b/config/plugins/themes/default.nix @@ -7,6 +7,13 @@ light = "macchiato"; dark = "mocha"; }; + custom_highlights = '' + function(numbercolor) + return { + CursorLineNr = { fg = numbercolor.peach, style = {} }, + } + end + ''; flavour = "macchiato"; # "latte", "mocha", "frappe", "macchiato" or raw lua code no_bold = false; no_italic = false; diff --git a/config/plugins/ui/bufferline.nix b/config/plugins/ui/bufferline.nix index d13bb21..e7d1a3f 100644 --- a/config/plugins/ui/bufferline.nix +++ b/config/plugins/ui/bufferline.nix @@ -3,6 +3,12 @@ bufferline = { enable = true; diagnostics = "nvim_lsp"; + mode = "buffers"; + + closeIcon = " "; + bufferCloseIcon = "󰱝 "; + modifiedIcon = "󰔯 "; + offsets = [ { filetype = "neo-tree"; diff --git a/config/plugins/ui/lualine.nix b/config/plugins/ui/lualine.nix index 2813574..f55bf4b 100644 --- a/config/plugins/ui/lualine.nix +++ b/config/plugins/ui/lualine.nix @@ -25,6 +25,7 @@ _: { { name = "diagnostics"; extraConfig = { + sources = ["nvim_lsp"]; symbols = { error = " "; warn = " ";