feat: key binding for running a codelens

This commit is contained in:
Jeremy Wall 2023-08-23 19:04:11 -04:00
parent 089679126c
commit 99b7613dde
2 changed files with 5 additions and 4 deletions

View File

@ -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", "<Leader>sl", telescope_builtins.lsp_workspace_symbols)
vim.keymap.set("n", "<Leader>dl", telescope_builtins.diagnostics)
vim.keymap.set("n", "<Leader>rg", telescope_builtins.live_grep)
vim.keymap.set("n", "<Leader>bl", function() telescope_builtins.buffers({}) end)
vim.keymap.set("n", "<Leader>rr", vim.lsp.codelens.run)
-- Show whatever errors we have in our trouble pane
vim.keymap.set("n", "<Leader>se", "<cmd>TroubleToggle<cr>", { silent = true, noremap = true })

6
nix/darwin/flake.lock generated
View File

@ -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"
}
},