fixes here and there

This commit is contained in:
Maciej Lebiest 2023-02-28 21:33:55 +01:00
parent eca00d215f
commit bfb3b31d94
3 changed files with 12 additions and 8 deletions

View file

@ -9,6 +9,7 @@ ENV NEOVIM_PKGS="\
ripgrep \
fd-find \
npm \
ShellCheck \
tree-sitter-cli \
wl-clipboard \
clang"

View file

@ -95,15 +95,9 @@ require("lazy").setup({
--Fuzzy search by Telescope and its dependencies:
{
'nvim-telescope/telescope.nvim', branch = 'master',
config = require('plugins.nvim-telescope').config,
dependencies = { 'nvim-lua/plenary.nvim' },
keys = {
{ "<leader>ff", "<cmd>Telescope find_files<cr>" },
{ "<leader>fg", "<cmd>Telescope live_grep<cr>" },
{ "<leader>fb", "<cmd>Telescope buffers<cr>" },
{ "<leader>fh", "<cmd>Telescope help_tags<cr>" }
}
priority = 100
},
{ 'BurntSushi/ripgrep' },

View file

@ -0,0 +1,9 @@
return {
config = function()
local builtin = require('telescope.builtin')
vim.keymap.set('n', '<leader>ff', builtin.find_files, {})
vim.keymap.set('n', '<leader>fg', builtin.live_grep, {})
vim.keymap.set('n', '<leader>fb', builtin.buffers, {})
vim.keymap.set('n', '<leader>fh', builtin.help_tags, {})
end
}