diff options
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/config/lazy.lua | 6 | ||||
| -rw-r--r-- | lua/plugins/telescope.lua | 10 |
2 files changed, 10 insertions, 6 deletions
diff --git a/lua/config/lazy.lua b/lua/config/lazy.lua index a26b7d1..4dfe238 100644 --- a/lua/config/lazy.lua +++ b/lua/config/lazy.lua @@ -15,11 +15,5 @@ if not (vim.uv or vim.loop).fs_stat(lazypath) then end vim.opt.rtp:prepend(lazypath) --- Make sure to setup `mapleader` and `maplocalleader` before --- loading lazy.nvim so that mappings are correct. --- This is also a good place to setup other settings (vim.opt) -vim.g.mapleader = " " -vim.g.maplocalleader = "\\" - -- Setup lazy.nvim require("lazy").setup("plugins") diff --git a/lua/plugins/telescope.lua b/lua/plugins/telescope.lua new file mode 100644 index 0000000..2516498 --- /dev/null +++ b/lua/plugins/telescope.lua @@ -0,0 +1,10 @@ +return { + 'nvim-telescope/telescope.nvim', + dependencies = { 'nvim-lua/plenary.nvim' }, + keys = { + { '<leader>f', ':Telescope find_files<CR>', desc='Telescope find files' }, + { '<leader>g', ':Telescope live_grep<CR>', desc='Telescope live grep' }, + { '<leader>b', ':Telescope buffers<CR>', desc='Telescope buffers' }, + { '<leader>h', ':Telescope help_tags<CR>', desc='Telescope help tags' }, + } +} |
