From 702b02cdf6ca8bfab004941614641023a4720980 Mon Sep 17 00:00:00 2001 From: jasmine Date: Wed, 14 May 2025 11:29:44 +0800 Subject: [PATCH 1/3] remove software liceneses --- config/plugins/utils/software-licenses.nix | 13 ------------- config/plugins/utils/telescope.nix | 10 ---------- 2 files changed, 23 deletions(-) delete mode 100644 config/plugins/utils/software-licenses.nix diff --git a/config/plugins/utils/software-licenses.nix b/config/plugins/utils/software-licenses.nix deleted file mode 100644 index 3ddc586..0000000 --- a/config/plugins/utils/software-licenses.nix +++ /dev/null @@ -1,13 +0,0 @@ -{pkgs, ...}: { - extraPlugins = [ - (pkgs.vimUtils.buildVimPlugin { - name = "software-licenses"; - src = pkgs.fetchFromGitHub { - owner = "chip"; - repo = "telescope-software-licenses.nvim"; - rev = "fb5fc33"; - hash = "sha256-luyCjkZSm1F6qoRpP5hHRAx4632u6JFuX2s7m2s8y60="; - }; - }) - ]; -} diff --git a/config/plugins/utils/telescope.nix b/config/plugins/utils/telescope.nix index 0ba7de2..9002a02 100644 --- a/config/plugins/utils/telescope.nix +++ b/config/plugins/utils/telescope.nix @@ -1,8 +1,4 @@ {...}: { - imports = [ - ./software-licenses.nix # View common software licenses. - ]; - plugins.telescope = { enable = true; @@ -48,12 +44,6 @@ desc = "Search project files"; }; }; - "sl" = { - action = "software-licenses find"; - options = { - desc = "Search Software Licenses"; - }; - }; # List "glc" = { From d7c5e8e43ad8cf390462c09c0d1b270765982abb Mon Sep 17 00:00:00 2001 From: jasmine Date: Wed, 14 May 2025 11:48:46 +0800 Subject: [PATCH 2/3] chore: refactor --- config/default.nix | 2 +- config/plugins/{utils => ui}/whichkey.nix | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename config/plugins/{utils => ui}/whichkey.nix (100%) diff --git a/config/default.nix b/config/default.nix index 78f0bd9..7b5b384 100644 --- a/config/default.nix +++ b/config/default.nix @@ -18,6 +18,7 @@ ./plugins/ui/lualine.nix ./plugins/ui/neo-tree.nix ./plugins/ui/web-devicons.nix + ./plugins/ui/whichkey.nix # LSP and formatting ./plugins/lsp/conform.nix @@ -34,6 +35,5 @@ ./plugins/utils/telescope.nix ./plugins/utils/todo-comments.nix ./plugins/utils/vimtex.nix - ./plugins/utils/whichkey.nix ]; } diff --git a/config/plugins/utils/whichkey.nix b/config/plugins/ui/whichkey.nix similarity index 100% rename from config/plugins/utils/whichkey.nix rename to config/plugins/ui/whichkey.nix From 9d6eb23ea3fba742f12076767c03b7fec4d4861a Mon Sep 17 00:00:00 2001 From: jasmine Date: Wed, 14 May 2025 11:49:02 +0800 Subject: [PATCH 3/3] change layout --- config/plugins/ui/whichkey.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/plugins/ui/whichkey.nix b/config/plugins/ui/whichkey.nix index d88365d..27c4f9e 100644 --- a/config/plugins/ui/whichkey.nix +++ b/config/plugins/ui/whichkey.nix @@ -1,6 +1,9 @@ {...}: { plugins.which-key = { enable = true; + settings = { + preset = "modern"; + }; }; # Prefixes, No operation.