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/nixvim.nix b/nixos/nixvim/nixvim.nix index 4d5ea02..c0a008f 100644 --- a/nixos/nixvim/nixvim.nix +++ b/nixos/nixvim/nixvim.nix @@ -7,7 +7,7 @@ }: { imports = [ - ./plugins.nix + ./plugins/plugins.nix ./keymaps.nix ]; programs.nixvim = { 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..f15d275 --- /dev/null +++ b/nixos/nixvim/plugins/barbar.nix @@ -0,0 +1,10 @@ +{ + programs.nixvim.plugins.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..3fbb654 --- /dev/null +++ b/nixos/nixvim/plugins/cord.nix @@ -0,0 +1,13 @@ +{ + programs.nixvim.plugins.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..f0da28c --- /dev/null +++ b/nixos/nixvim/plugins/lualine.nix @@ -0,0 +1,57 @@ +{ + programs.nixvim.plugins.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..5b4acda --- /dev/null +++ b/nixos/nixvim/plugins/plugins.nix @@ -0,0 +1,18 @@ +{ + imports = [ + ./barbar.nix + ./toggleterm.nix + ./cord.nix + ./lualine.nix + ./telescope.nix + ]; + programs.nixvim = { + plugins = { + lspconfig.enable = true; + web-devicons.enable = true; + blink-cmp.enable = true; + blink-indent.enable = true; + }; + }; + +} diff --git a/nixos/nixvim/plugins/telescope.nix b/nixos/nixvim/plugins/telescope.nix new file mode 100644 index 0000000..148022b --- /dev/null +++ b/nixos/nixvim/plugins/telescope.nix @@ -0,0 +1,13 @@ +{ + programs.nixvim.plugins.telescope = { + enable = true; + keymaps = { + "ff" = { + action = "find_files"; + }; + "lg" = { + action = "live_grep"; + }; + }; + }; +} diff --git a/nixos/nixvim/plugins/toggleterm.nix b/nixos/nixvim/plugins/toggleterm.nix new file mode 100644 index 0000000..ff61280 --- /dev/null +++ b/nixos/nixvim/plugins/toggleterm.nix @@ -0,0 +1,9 @@ +{ + programs.nixvim.plugins.toggleterm = { + enable = true; + settings = { + size = 30; + direction = "horizontal"; + }; + }; +}