diff --git a/home/pc/common/programs/nvim/config.lua b/home/pc/common/programs/nvim/config.lua index 4ca58b5..efae604 100644 --- a/home/pc/common/programs/nvim/config.lua +++ b/home/pc/common/programs/nvim/config.lua @@ -32,9 +32,21 @@ vim.pack.add({ "https://github.com/windwp/nvim-autopairs", "https://github.com/lukas-reineke/lsp-format.nvim", "https://github.com/nvimtools/none-ls.nvim", - "https://github.com/nvim-lua/plenary.nvim" + "https://github.com/nvim-lua/plenary.nvim", + "https://github.com/nvim-telescope/telescope.nvim", }) +local telescope = require("telescope.builtin") + +vim.keymap.set("n", "b", telescope.buffers, {}) +vim.keymap.set("n", "f", telescope.find_files, {}) +vim.keymap.set("n", "t", telescope.live_grep, {}) +vim.keymap.set("n", "m", function() + telescope.man_pages({ + sections = {"2", "3", "4", "5"}, + }) +end, {}) + require("nvim-autopairs").setup({}) require("null-ls").setup({ on_attach = require("lsp-format").on_attach }) require("lsp-format").setup({})