From d7211b26e08e0f110c5ea50d888b070b94d59cc1 Mon Sep 17 00:00:00 2001 From: Samuel Walker Date: Wed, 23 Oct 2024 23:38:22 -0600 Subject: [PATCH] worked on neovim config --- .config/nvim/init.lua | 7 ++++++- .config/nvim/lazy-lock.json | 2 +- .config/nvim/lua/plugins/visual.lua | 3 ++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index 9b9a36e..4eb0ca8 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -44,10 +44,15 @@ map('n', 'bd', 'BufferOrderByDirectory', opts) map('n', 'bl', 'BufferOrderByLanguage', opts) map('n', 'bw', 'BufferOrderByWindowNumber', opts) +local builtin = require('telescope.builtin') +vim.keymap.set('n', 'ff', builtin.find_files, { desc = 'Telescope find files' }) +vim.keymap.set('n', 'fg', builtin.live_grep, { desc = 'Telescope live grep' }) +vim.keymap.set('n', 'fb', builtin.buffers, { desc = 'Telescope buffers' }) +vim.keymap.set('n', 'fh', builtin.help_tags, { desc = 'Telescope help tags' }) + -- Other: -- :BarbarEnable - enables barbar (enabled by default) -- :BarbarDisable - very bad command, should never be used vim.cmd('Neotree') -vim.cmd('l') vim.o.tabstop = 4 diff --git a/.config/nvim/lazy-lock.json b/.config/nvim/lazy-lock.json index a9b4663..85f9dfb 100644 --- a/.config/nvim/lazy-lock.json +++ b/.config/nvim/lazy-lock.json @@ -4,11 +4,11 @@ "coc.nvim": { "branch": "master", "commit": "9fd857818977ce9f9f6f7271034fc917dede7035" }, "gitsigns.nvim": { "branch": "main", "commit": "ee7634ab4f0a6606438fe13e16cbf2065589a5ed" }, "lazy.nvim": { "branch": "main", "commit": "cf8ecc2c5e4332760431a33534240b0cbc6680ab" }, - "mini.hipatterns": { "branch": "main", "commit": "797cbdc893cdcc2f0fbc05a23b4dae238a1fb0ae" }, "neo-tree.nvim": { "branch": "v3.x", "commit": "a77af2e764c5ed4038d27d1c463fa49cd4794e07" }, "nui.nvim": { "branch": "main", "commit": "b58e2bfda5cea347c9d58b7f11cf3012c7b3953f" }, "nvim-web-devicons": { "branch": "master", "commit": "19d257cf889f79f4022163c3fbb5e08639077bd8" }, "plenary.nvim": { "branch": "master", "commit": "2d9b06177a975543726ce5c73fca176cedbffe9d" }, + "telescope.nvim": { "branch": "master", "commit": "df534c3042572fb958586facd02841e10186707c" }, "themery.nvim": { "branch": "main", "commit": "15c29229e9a25655587462c8c64a62d9aadf0a92" }, "tokyonight.nvim": { "branch": "main", "commit": "19f39b53ef5e148bf94ea3696df36175af7e31e6" }, "transparent.nvim": { "branch": "main", "commit": "8a2749a2fa74f97fe6557f61b89ac7fd873f3c21" } diff --git a/.config/nvim/lua/plugins/visual.lua b/.config/nvim/lua/plugins/visual.lua index c946434..7f5488d 100644 --- a/.config/nvim/lua/plugins/visual.lua +++ b/.config/nvim/lua/plugins/visual.lua @@ -20,5 +20,6 @@ return { lazy = false, priority = 1000, opts = {}, -} +}, +{"nvim-telescope/telescope.nvim", dependencies = {"nvim-lua/plenary.nvim"}} }