diff --git a/Dockerfile b/Dockerfile index 43f039b..f9a4c62 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,6 +9,7 @@ ENV NEOVIM_PKGS="\ ripgrep \ fd-find \ npm \ + ShellCheck \ tree-sitter-cli \ wl-clipboard \ clang" diff --git a/lua/lazy-load.lua b/lua/lazy-load.lua index b113ebe..21a2cbb 100644 --- a/lua/lazy-load.lua +++ b/lua/lazy-load.lua @@ -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 = { - { "ff", "Telescope find_files" }, - { "fg", "Telescope live_grep" }, - { "fb", "Telescope buffers" }, - { "fh", "Telescope help_tags" } - - } - + priority = 100 }, { 'BurntSushi/ripgrep' }, diff --git a/lua/plugins/nvim-telescope.lua b/lua/plugins/nvim-telescope.lua new file mode 100644 index 0000000..b00bdc0 --- /dev/null +++ b/lua/plugins/nvim-telescope.lua @@ -0,0 +1,9 @@ +return { + config = function() + local builtin = require('telescope.builtin') + vim.keymap.set('n', 'ff', builtin.find_files, {}) + vim.keymap.set('n', 'fg', builtin.live_grep, {}) + vim.keymap.set('n', 'fb', builtin.buffers, {}) + vim.keymap.set('n', 'fh', builtin.help_tags, {}) + end +}