From 831b3fd9246ff40acb073ffb71982850451d6766 Mon Sep 17 00:00:00 2001 From: lucy Date: Sat, 1 Aug 2026 12:52:34 +0200 Subject: [PATCH] split nixvim config into multiple files --- nixos/configuration.nix | 1 - nixos/nixvim/plugins.nix | 95 ----------------------------- nixos/nixvim/plugins/barbar.nix | 10 +++ nixos/nixvim/plugins/cord.nix | 13 ++++ nixos/nixvim/plugins/lualine.nix | 57 +++++++++++++++++ nixos/nixvim/plugins/plugins.nix | 17 ++++++ nixos/nixvim/plugins/toggleterm.nix | 9 +++ 7 files changed, 106 insertions(+), 96 deletions(-) delete mode 100644 nixos/nixvim/plugins.nix create mode 100644 nixos/nixvim/plugins/barbar.nix create mode 100644 nixos/nixvim/plugins/cord.nix create mode 100644 nixos/nixvim/plugins/lualine.nix create mode 100644 nixos/nixvim/plugins/plugins.nix create mode 100644 nixos/nixvim/plugins/toggleterm.nix diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 77d4914..27ff815 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -16,7 +16,6 @@ ./services/pipewire.nix ./services/ly.nix ./stylix/stylix.nix - ./easyroam.nix ]; boot.loader.systemd-boot = { diff --git a/nixos/nixvim/plugins.nix b/nixos/nixvim/plugins.nix deleted file mode 100644 index 1c9ecc0..0000000 --- a/nixos/nixvim/plugins.nix +++ /dev/null @@ -1,95 +0,0 @@ -{ - programs.nixvim = { - plugins = { - lspconfig.enable = true; - web-devicons.enable = true; - blink-cmp = { - enable = true; - }; - blink-indent = { - enable = true; - }; - toggleterm = { - enable = true; - settings = { - size = 30; - direction = "horizontal"; - }; - }; - cord = { - enable = true; - settings = { - display = { - theme = "atom"; - }; - editor = { - tooltip = "ur gay :3"; - }; - }; - }; - barbar = { - enable = true; - settings = { - icons = { - buffer_index = true; - }; - }; - }; - lualine = { - enable = true; - settings = { - extensions = [ "toggleterm" ]; - options = { - section_separators = { - left = "▎"; - right = "▕"; - }; - component_separators = { - left = ""; - right = ""; - }; - }; - inactive_sections = { - lualine_a = [ - "mode" - ]; - lualine_b = [ - "filename" - "filetype" - ]; - lualine_c = [ - "diagnostics" - ]; - lualine_x = [ - "lsp_status" - ]; - lualine_y = [ ]; - lualine_z = [ - "location" - ]; - }; - sections = { - lualine_a = [ - "mode" - ]; - lualine_b = [ - "filename" - "filetype" - ]; - lualine_c = [ - "diagnostics" - ]; - lualine_x = [ - "lsp_status" - ]; - lualine_y = [ ]; - lualine_z = [ - "location" - ]; - }; - }; - }; - }; - }; - -} diff --git a/nixos/nixvim/plugins/barbar.nix b/nixos/nixvim/plugins/barbar.nix new file mode 100644 index 0000000..3564c1e --- /dev/null +++ b/nixos/nixvim/plugins/barbar.nix @@ -0,0 +1,10 @@ +{ + barbar = { + enable = true; + settings = { + icons = { + buffer_index = true; + }; + }; + }; +} diff --git a/nixos/nixvim/plugins/cord.nix b/nixos/nixvim/plugins/cord.nix new file mode 100644 index 0000000..5db3fec --- /dev/null +++ b/nixos/nixvim/plugins/cord.nix @@ -0,0 +1,13 @@ +{ + cord = { + enable = true; + settings = { + display = { + theme = "atom"; + }; + editor = { + tooltip = "ur gay :3"; + }; + }; + }; +} diff --git a/nixos/nixvim/plugins/lualine.nix b/nixos/nixvim/plugins/lualine.nix new file mode 100644 index 0000000..250e78c --- /dev/null +++ b/nixos/nixvim/plugins/lualine.nix @@ -0,0 +1,57 @@ +{ + lualine = { + enable = true; + settings = { + extensions = [ "toggleterm" ]; + options = { + section_separators = { + left = "▎"; + right = "▕"; + }; + component_separators = { + left = ""; + right = ""; + }; + }; + inactive_sections = { + lualine_a = [ + "mode" + ]; + lualine_b = [ + "filename" + "filetype" + ]; + lualine_c = [ + "diagnostics" + ]; + lualine_x = [ + "lsp_status" + ]; + lualine_y = [ ]; + lualine_z = [ + "location" + ]; + }; + sections = { + lualine_a = [ + "mode" + ]; + lualine_b = [ + "filename" + "filetype" + ]; + lualine_c = [ + "diagnostics" + ]; + lualine_x = [ + "lsp_status" + ]; + lualine_y = [ ]; + lualine_z = [ + "location" + ]; + }; + }; + }; + +} diff --git a/nixos/nixvim/plugins/plugins.nix b/nixos/nixvim/plugins/plugins.nix new file mode 100644 index 0000000..3b32bd3 --- /dev/null +++ b/nixos/nixvim/plugins/plugins.nix @@ -0,0 +1,17 @@ +{ + programs.nixvim = { + plugins = { + imports = [ + ./barbar.nix + ./cord.nix + ./lualine.nix + ./toggleterm.nix + ]; + lspconfig.enable = true; + web-devicons.enable = true; + blink-cmp.enable = true; + blink-indent.enable = true; + }; + }; + +} diff --git a/nixos/nixvim/plugins/toggleterm.nix b/nixos/nixvim/plugins/toggleterm.nix new file mode 100644 index 0000000..67ad763 --- /dev/null +++ b/nixos/nixvim/plugins/toggleterm.nix @@ -0,0 +1,9 @@ +{ + toggleterm = { + enable = true; + settings = { + size = 30; + direction = "horizontal"; + }; + }; +}