From f7dc3aaae22311a97d2f618cec2f564829e33af0 Mon Sep 17 00:00:00 2001 From: Jonni Liljamo Date: Mon, 30 Sep 2024 18:59:52 +0300 Subject: [PATCH] feat(tiny-code-action): init --- config/plugins/default.nix | 1 + config/plugins/tiny-code-action.nix | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 config/plugins/tiny-code-action.nix diff --git a/config/plugins/default.nix b/config/plugins/default.nix index 00e6e45..a9893ae 100644 --- a/config/plugins/default.nix +++ b/config/plugins/default.nix @@ -9,6 +9,7 @@ ./oil.nix ./precognition.nix ./telescope.nix + ./tiny-code-action.nix ./toggleterm.nix ./treesitter.nix ./which-key.nix diff --git a/config/plugins/tiny-code-action.nix b/config/plugins/tiny-code-action.nix new file mode 100644 index 0000000..cff6210 --- /dev/null +++ b/config/plugins/tiny-code-action.nix @@ -0,0 +1,25 @@ +{pkgs, ...}: { + extraPlugins = [ + (pkgs.vimUtils.buildVimPlugin { + name = "tiny-code-action"; + src = pkgs.fetchFromGitHub { + owner = "rachartier"; + repo = "tiny-code-action.nvim"; + rev = "a332d5d"; + hash = "sha256-k4X/94mPeox9IpU95x0XRkxWUzpWRxrWOrNibIZcbcA="; + }; + }) + ]; + + extraConfigLua = '' + require('tiny-code-action').setup({}) + ''; + + keymaps = [ + { + action="lua require('tiny-code-action').code_action()"; + key = "ca"; + options.desc = "code action"; + } + ]; +} -- 2.44.1