diff --git a/nvim/.config/nvim/lua/plugins/configs/fzf-lua.lua b/nvim/.config/nvim/lua/plugins/configs/fzf-lua.lua new file mode 100644 index 0000000..a5374a1 --- /dev/null +++ b/nvim/.config/nvim/lua/plugins/configs/fzf-lua.lua @@ -0,0 +1,19 @@ +return +{ + -- Configuration function to be run after the plugin is loaded + on_load = function() + require('fzf-lua').register_ui_select() + end, + + -- Keymaps to be set after the plugin is loaded + keymaps = { + { keys="ff", cmd=require('fzf-lua').files , desc="Files" }, + { keys="ft", cmd=require('fzf-lua').live_grep , desc="Text" }, + { keys="fb", cmd=require('fzf-lua').buffers , desc="Buffers" }, + { keys="fq", cmd=require('fzf-lua').quickfix , desc="Quickfix" }, + { keys="fr", cmd=require('fzf-lua').registers , desc="Registers" }, + { keys="fc", cmd=require('fzf-lua').resume , desc="Continue" }, + { keys="fd", cmd=require('fzf-lua').diagnostics_workspace, desc="Diagnostics"}, + { keys="fh", cmd=require('fzf-lua').helptags , desc="Help Tags" }, + } +} diff --git a/nvim/.config/nvim/lua/plugins/configs/telescope.lua b/nvim/.config/nvim/lua/plugins/configs/telescope.lua deleted file mode 100644 index 5dde2b8..0000000 --- a/nvim/.config/nvim/lua/plugins/configs/telescope.lua +++ /dev/null @@ -1,24 +0,0 @@ -local function tc(cmd,theme) - return "Telescope "..cmd.." theme="..theme.."" -end --- local builtin = require('telescope.builtin') - -return -{ - -- Configuration function to be run after the plugin is loaded - on_load = function() end, - - -- Keymaps to be set after the plugin is loaded - keymaps = { - { keys="tf", cmd=tc("find_files" ,"dropdown"), desc="Files" }, - { keys="tt", cmd=tc("live_grep" ,"ivy") , desc="Text" }, - { keys="tb", cmd=tc("buffers" ,"dropdown"), desc="Buffers" }, - { keys="ts", cmd=tc("search_history","ivy") , desc="History" }, - { keys="tq", cmd=tc("quickfix" ,"ivy") , desc="Quickfix" }, - { keys="tr", cmd=tc("registers" ,"ivy") , desc="Registers" }, - { keys="ta", cmd=tc("aerial" ,"ivy") , desc="Aerial" }, - { keys="tc", cmd=tc("resume" ,"dropdown"), desc="Continue" }, - { keys="td", cmd=tc("diagnostics" ,"ivy") , desc="Diagnostics"}, - { keys="th", cmd=tc("help_tags" ,"ivy") , desc="Help Tags" }, - } -} diff --git a/nvim/.config/nvim/lua/plugins/init.lua b/nvim/.config/nvim/lua/plugins/init.lua index fcf69f2..540ba09 100644 --- a/nvim/.config/nvim/lua/plugins/init.lua +++ b/nvim/.config/nvim/lua/plugins/init.lua @@ -2,8 +2,7 @@ return { -- Dependencies - 'https://github.com/nvim-lua/plenary.nvim', -- For Telescope - 'https://github.com/nvim-neotest/nvim-nio', -- For nvim-dap-ui + 'https://github.com/nvim-neotest/nvim-nio' , -- For nvim-dap-ui -- Colorschemes 'https://github.com/shatur/neovim-ayu', @@ -13,7 +12,7 @@ return { src = 'https://github.com/nvim-mini/mini.nvim', name = 'mini' }, { src = 'https://github.com/stevearc/oil.nvim', name = 'oil' }, - { src = 'https://github.com/nvim-telescope/telescope.nvim', name = 'telescope' }, + 'https://github.com/ibhagwan/fzf-lua', { src = 'https://github.com/stevearc/overseer.nvim', name = 'overseer', data = { simple_init = true } }, { src = 'https://codeberg.org/andyg/leap.nvim', name = 'leap' }, diff --git a/nvim/.config/nvim/nvim-pack-lock.json b/nvim/.config/nvim/nvim-pack-lock.json index b222d22..b9f85a9 100644 --- a/nvim/.config/nvim/nvim-pack-lock.json +++ b/nvim/.config/nvim/nvim-pack-lock.json @@ -1,5 +1,9 @@ { "plugins": { + "fzf-lua": { + "rev": "14e2ebc7ed4cef90ffb4fd192ca28c33741818eb", + "src": "https://github.com/ibhagwan/fzf-lua" + }, "helpview.nvim": { "rev": "518789535a0cb146224a428edf93a70f98b795db", "src": "https://github.com/OXY2DEV/helpview.nvim" @@ -9,7 +13,7 @@ "src": "https://github.com/folke/lazydev.nvim" }, "leap": { - "rev": "25d893149edfc831ba188f16448b255ab582544c", + "rev": "e20f33507bd2d6c671b7273f797f2d3cf521ac61", "src": "https://codeberg.org/andyg/leap.nvim" }, "mason": { @@ -17,7 +21,7 @@ "src": "https://github.com/mason-org/mason.nvim" }, "mini": { - "rev": "59f09943573c5348ca6c88393fa09ce3b66a7818", + "rev": "439cdcd6992bc9012efd7d8ed7a7b7a0f1fac32a", "src": "https://github.com/nvim-mini/mini.nvim" }, "neovim-ayu": { @@ -29,7 +33,7 @@ "src": "https://github.com/mfussenegger/nvim-dap" }, "nvim-dap-ui": { - "rev": "cf91d5e2d07c72903d052f5207511bf7ecdb7122", + "rev": "f5b6673f374626515401c5bc51b005f784a4f252", "src": "https://github.com/rcarriga/nvim-dap-ui" }, "nvim-dap-virtual-text": { @@ -37,7 +41,7 @@ "src": "https://github.com/theHamsta/nvim-dap-virtual-text" }, "nvim-lspconfig": { - "rev": "841c6d4139aedb8a3f2baf30cef5327371385b93", + "rev": "46204c8fdaa36a9aa3768780450e4bc7a210025f", "src": "https://github.com/neovim/nvim-lspconfig" }, "nvim-nio": { @@ -45,7 +49,7 @@ "src": "https://github.com/nvim-neotest/nvim-nio" }, "nvim-treesitter": { - "rev": "875515255192864c33981c3ed66ad94e561b904a", + "rev": "6620ae1c44dfa8623b22d0cbf873a9e8d073b849", "src": "https://github.com/nvim-treesitter/nvim-treesitter" }, "oil": { @@ -55,14 +59,6 @@ "overseer": { "rev": "a2194447f4c5a1baf95139c5c7b539fa7b0d012f", "src": "https://github.com/stevearc/overseer.nvim" - }, - "plenary.nvim": { - "rev": "b9fd5226c2f76c951fc8ed5923d85e4de065e509", - "src": "https://github.com/nvim-lua/plenary.nvim" - }, - "telescope": { - "rev": "5255aa27c422de944791318024167ad5d40aad20", - "src": "https://github.com/nvim-telescope/telescope.nvim" } } -} \ No newline at end of file +}