From c36c12b234a417a8f7c41c8aea5a7a82af9a9877 Mon Sep 17 00:00:00 2001 From: Superredstone Date: Sun, 8 Feb 2026 10:08:52 +0100 Subject: [PATCH] refactor: group plugins and clipboard configuration --- config/cmp.nix | 44 +++++++++++++++++++++++--------------------- config/default.nix | 12 +++++++----- 2 files changed, 30 insertions(+), 26 deletions(-) diff --git a/config/cmp.nix b/config/cmp.nix index e52b797..06559b1 100644 --- a/config/cmp.nix +++ b/config/cmp.nix @@ -1,26 +1,28 @@ { ... }: { - plugins.lspkind.enable = true; - plugins.cmp-nvim-lsp-signature-help.enable = true; - plugins.cmp = { - enable = true; - autoEnableSources = true; - settings = { - sources = [ - { name = "nvim_lsp"; } - { name = "nvim_lsp_signature_help"; } - { name = "path"; } - { name = "buffer"; } - { name = "dap"; } - ]; - mapping = { - "" = "cmp.mapping.select_next_item()"; - "" = "cmp.mapping.select_prev_item()"; - "" = "cmp.mapping.scroll_docs(4)"; - "" = "cmp.mapping.scroll_docs(-4)"; - "" = "cmp.mapping.complete()"; - "" = "cmp.mapping.close()"; - "" = "cmp.mapping.confirm({ behavior = cmp.ConfirmBehavior.Insert, select = true })"; + plugins = { + lspkind.enable = true; + cmp-nvim-lsp-signature-help.enable = true; + cmp = { + enable = true; + autoEnableSources = true; + settings = { + sources = [ + { name = "nvim_lsp"; } + { name = "nvim_lsp_signature_help"; } + { name = "path"; } + { name = "buffer"; } + { name = "dap"; } + ]; + mapping = { + "" = "cmp.mapping.select_next_item()"; + "" = "cmp.mapping.select_prev_item()"; + "" = "cmp.mapping.scroll_docs(4)"; + "" = "cmp.mapping.scroll_docs(-4)"; + "" = "cmp.mapping.complete()"; + "" = "cmp.mapping.close()"; + "" = "cmp.mapping.confirm({ behavior = cmp.ConfirmBehavior.Insert, select = true })"; + }; }; }; }; diff --git a/config/default.nix b/config/default.nix index 886a47c..afae90f 100644 --- a/config/default.nix +++ b/config/default.nix @@ -12,9 +12,11 @@ extraPackages = with pkgs; [ wl-clipboard ]; - clipboard.register = "unnamedplus"; - clipboard.providers.wl-copy.enable = true; - clipboard.providers.wl-copy.package = pkgs.wl-clipboard; - clipboard.providers.xclip.enable = true; - clipboard.providers.xclip.package = pkgs.xclip; + clipboard = { + register = "unnamedplus"; + providers.wl-copy.enable = true; + providers.wl-copy.package = pkgs.wl-clipboard; + providers.xclip.enable = true; + providers.xclip.package = pkgs.xclip; + }; }