From 99b7613dde127f4174f719c70c6f51418c4381a5 Mon Sep 17 00:00:00 2001 From: Jeremy Wall Date: Wed, 23 Aug 2023 19:04:11 -0400 Subject: [PATCH] feat: key binding for running a codelens --- nix/base-system/init.lua | 3 ++- nix/darwin/flake.lock | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/nix/base-system/init.lua b/nix/base-system/init.lua index b821151..f826fbf 100644 --- a/nix/base-system/init.lua +++ b/nix/base-system/init.lua @@ -355,7 +355,7 @@ end) -- Telelscope configuration local telescope = require('telescope') local telescope_builtins = require('telescope.builtin') -local telescope_actions = require('telescope.actions') +--local telescope_actions = require('telescope.actions') -- https://github.com/nvim-telescope/telescope.nvim telescope.setup({ @@ -371,6 +371,7 @@ vim.keymap.set("n", "sl", telescope_builtins.lsp_workspace_symbols) vim.keymap.set("n", "dl", telescope_builtins.diagnostics) vim.keymap.set("n", "rg", telescope_builtins.live_grep) vim.keymap.set("n", "bl", function() telescope_builtins.buffers({}) end) +vim.keymap.set("n", "rr", vim.lsp.codelens.run) -- Show whatever errors we have in our trouble pane vim.keymap.set("n", "se", "TroubleToggle", { silent = true, noremap = true }) diff --git a/nix/darwin/flake.lock b/nix/darwin/flake.lock index e0db752..2e3af31 100644 --- a/nix/darwin/flake.lock +++ b/nix/darwin/flake.lock @@ -34,12 +34,12 @@ }, "locked": { "lastModified": 1, - "narHash": "sha256-2QL7ewPUK7h3868qChArUaSba0xvUod8J1vpaPQo+Sw=", - "path": "/nix/store/k56fbhy1997yid1h1kfksx7rmhs4gsxv-source/nix/base-system", + "narHash": "sha256-LgQtRMnE0Y5PV4fRX3war7RtEixqP3VaxG3dnUTuar0=", + "path": "/nix/store/dlkbgkad5wnyhlaynh16hrdk7735gd4c-source/nix/base-system", "type": "path" }, "original": { - "path": "/nix/store/k56fbhy1997yid1h1kfksx7rmhs4gsxv-source/nix/base-system", + "path": "/nix/store/dlkbgkad5wnyhlaynh16hrdk7735gd4c-source/nix/base-system", "type": "path" } },