From a3978c7dab6605ba06f8b78a28bca747d2f9c7a3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lukas=20H=C3=A4gele?= Date: Sat, 3 Oct 2026 14:07:58 +0200 Subject: [PATCH] use telescope for picking man pages --- lua/config/keymap.lua | 2 -- lua/config/plugins/telescope.lua | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) 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) -- 2.39.5