Skip to content

Commit

Permalink
chore: colors
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm committed Jan 21, 2024
1 parent edef893 commit 73be1e3
Show file tree
Hide file tree
Showing 5 changed files with 75 additions and 18 deletions.
2 changes: 2 additions & 0 deletions .config/nix/modules/colors.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
dark = {
background = "#1D1D1B";
foreground = "#ffffff";
cursor = "#F76EC9";

black = "#1D1D1B";
blue = "#95b3d0";
Expand All @@ -17,6 +18,7 @@
bright = {
background = "#FDFCF7";
foreground = "#000000";
cursor = "#F76EC9";

black = "#000000";
blue = "#0026FF";
Expand Down
2 changes: 2 additions & 0 deletions .config/nix/modules/ghostty.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ in
background = ${colors.dark.background}
foreground = ${colors.dark.foreground}
cursor-color = ${colors.dark.cursor}
palette = 0=${colors.dark.black}
palette = 1=${colors.dark.red}
palette = 2=${colors.dark.green}
Expand Down
8 changes: 8 additions & 0 deletions .config/nix/modules/shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
programs.fish = {
enable = true;
interactiveShellInit = ''
# Ghostty supports auto-injection but Nix-darwin hard overwrites XDG_DATA_DIRS
# which make it so that we can't use the auto-injection. We have to source
# manually.
if set -q GHOSTTY_RESOURCES_DIR
source "$GHOSTTY_RESOURCES_DIR/shell-integration/fish/vendor_conf.d/ghostty-shell-integration.fish"
end
# Pure
# https://github.com/rafaelrinaldi/pure#configuration
set pure_color_primary white
Expand Down Expand Up @@ -83,6 +90,7 @@
hm = "home-manager";
home = "cd ~";
lsd = "eza -d .*";
m = "mix";
p = "pnpm";
v = "nvim";
};
Expand Down
1 change: 1 addition & 0 deletions .config/nvim/TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ nix
```
- https://github.com/echasnovski/mini.surround
- inc_rename x noice (https://github.com/folke/noice.nvim)
- direnv verbosity https://github.com/direnv/direnv/issues/68#issuecomment-1734782205

- toggle copilot
- https://github.com/folke/persistence.nvim
Expand Down
80 changes: 62 additions & 18 deletions .config/nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -533,18 +533,24 @@ require("lazy").setup({
lualine_a = {},
lualine_b = {},
lualine_c = {
"mode",
{
"mode",
color = "MsgArea",
},
{
"filename",
color = "MsgArea",
cond = conditions.buffer_not_empty,
symbols = { modified = "", readonly = "", unnamed = "" },
},
{
"branch",
color = "MsgArea",
icon = "",
},
{
"diagnostics",
color = "MsgArea",
sources = { "nvim_diagnostic" },
symbols = {
error = icons.diagnostics.Error,
Expand All @@ -556,24 +562,40 @@ require("lazy").setup({
lualine_x = {
{
"diff",
color = "MsgArea",
symbols = {
added = icons.git.added,
modified = icons.git.modified,
removed = icons.git.removed,
},
},
"filetype",
"progress",
"location",
{
"filetype",
color = "MsgArea",
},
{
"progress",
color = "MsgArea",
},
{
"location",
color = "MsgArea",
},
},
lualine_y = {},
lualine_z = {},
},
inactive_sections = {
lualine_a = {},
lualine_b = {},
lualine_c = { "filename" },
lualine_x = { "location" },
lualine_c = {
"filename",
color = "MsgArea",
},
lualine_x = {
"location",
color = "MsgArea",
},
lualine_y = {},
lualine_z = {},
},
Expand All @@ -591,6 +613,11 @@ require("lazy").setup({
{
-- TypeScript comment plugin (https://github.com/JoosepAlviste/nvim-ts-context-commentstring)
"JoosepAlviste/nvim-ts-context-commentstring",
config = function()
require("ts_context_commentstring").setup({
enable_autocmd = false,
})
end,
},
},
config = function()
Expand Down Expand Up @@ -659,20 +686,36 @@ require("lazy").setup({
{ "<leader>fs", "<cmd>Neotree focus<cr>", desc = "Focus File in Explorer" },
},
opts = {
-- TODO: Hide file icons
close_if_last_window = true,
default_component_configs = {
indent = { with_markers = false },
symbols = {
added = icons.git.added,
deleted = icons.git.removed,
modified = icons.git.modified,
renamed = "",
-- Status type
untracked = "",
ignored = "",
unstaged = "",
staged = "",
conflict = "",
icon = {
folder_closed = "▶︎",
folder_open = "",
folder_empty = "",
},
-- indent = { with_markers = false },
modified = {
symbol = "",
},
git_status = {
symbols = {
added = icons.git.added,
deleted = icons.git.removed,
modified = icons.git.modified,
renamed = "",
-- Status type
untracked = "",
ignored = "",
unstaged = "",
staged = "",
conflict = "",
},
},
},
buffers = {
follow_current_file = true,
group_empty_dirs = true,
},
filesystem = {
filtered_items = {
Expand Down Expand Up @@ -1002,6 +1045,7 @@ require("lazy").setup({
"lua",
"markdown",
"markdown_inline",
"nix",
"regex",
"rust",
"toml",
Expand Down

0 comments on commit 73be1e3

Please sign in to comment.