feat: include telescope.nvim
This commit is contained in:
@@ -32,9 +32,21 @@ vim.pack.add({
|
|||||||
"https://github.com/windwp/nvim-autopairs",
|
"https://github.com/windwp/nvim-autopairs",
|
||||||
"https://github.com/lukas-reineke/lsp-format.nvim",
|
"https://github.com/lukas-reineke/lsp-format.nvim",
|
||||||
"https://github.com/nvimtools/none-ls.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", "<leader>b", telescope.buffers, {})
|
||||||
|
vim.keymap.set("n", "<leader>f", telescope.find_files, {})
|
||||||
|
vim.keymap.set("n", "<leader>t", telescope.live_grep, {})
|
||||||
|
vim.keymap.set("n", "<leader>m", function()
|
||||||
|
telescope.man_pages({
|
||||||
|
sections = {"2", "3", "4", "5"},
|
||||||
|
})
|
||||||
|
end, {})
|
||||||
|
|
||||||
require("nvim-autopairs").setup({})
|
require("nvim-autopairs").setup({})
|
||||||
require("null-ls").setup({ on_attach = require("lsp-format").on_attach })
|
require("null-ls").setup({ on_attach = require("lsp-format").on_attach })
|
||||||
require("lsp-format").setup({})
|
require("lsp-format").setup({})
|
||||||
|
|||||||
Reference in New Issue
Block a user