From: Lukas Hägele Date: Sat, 3 Oct 2026 12:07:58 +0000 (+0200) Subject: use telescope for picking man pages X-Git-Url: https://git.lhaegele.de/?a=commitdiff_plain;h=a3978c7dab6605ba06f8b78a28bca747d2f9c7a3;p=dotfiles_nvim.git use telescope for picking man pages --- diff --git a/lua/config/keymap.lua b/lua/config/keymap.lua index 3c421d5..ac323f9 100644 --- a/lua/config/keymap.lua +++ b/lua/config/keymap.lua @@ -41,5 +41,3 @@ end) -- build vim.keymap.set("n", "", "makecopen", { desc = "run makefile and open quickfix list" }) --- open man page -vim.keymap.set("n", "fm", ":Man 2 ", { desc = "prefill command line with man page command" }) diff --git a/lua/config/plugins/telescope.lua b/lua/config/plugins/telescope.lua index 8d421e1..5f48177 100644 --- a/lua/config/plugins/telescope.lua +++ b/lua/config/plugins/telescope.lua @@ -33,6 +33,9 @@ return { -- "find page in help" vim.keymap.set("n", "fh", require('telescope.builtin').help_tags) + -- "find page in man" + vim.keymap.set("n", "fm", function() require('telescope.builtin').man_pages({sections = {"ALL"}}) end) + -- "find file in project" vim.keymap.set("n", "fp", require('telescope.builtin').find_files)