[nvim] Replaced telescope with fzf-lua + plugin updates

This commit is contained in:
2026-03-25 22:37:20 +02:00
parent 9a9e7e6fe8
commit b1860c2b03
4 changed files with 31 additions and 41 deletions

View File

@@ -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="<leader>ff", cmd=require('fzf-lua').files , desc="Files" },
{ keys="<leader>ft", cmd=require('fzf-lua').live_grep , desc="Text" },
{ keys="<leader>fb", cmd=require('fzf-lua').buffers , desc="Buffers" },
{ keys="<leader>fq", cmd=require('fzf-lua').quickfix , desc="Quickfix" },
{ keys="<leader>fr", cmd=require('fzf-lua').registers , desc="Registers" },
{ keys="<leader>fc", cmd=require('fzf-lua').resume , desc="Continue" },
{ keys="<leader>fd", cmd=require('fzf-lua').diagnostics_workspace, desc="Diagnostics"},
{ keys="<leader>fh", cmd=require('fzf-lua').helptags , desc="Help Tags" },
}
}

View File

@@ -1,24 +0,0 @@
local function tc(cmd,theme)
return "<cmd>Telescope "..cmd.." theme="..theme.."<CR>"
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="<leader>tf", cmd=tc("find_files" ,"dropdown"), desc="Files" },
{ keys="<leader>tt", cmd=tc("live_grep" ,"ivy") , desc="Text" },
{ keys="<leader>tb", cmd=tc("buffers" ,"dropdown"), desc="Buffers" },
{ keys="<leader>ts", cmd=tc("search_history","ivy") , desc="History" },
{ keys="<leader>tq", cmd=tc("quickfix" ,"ivy") , desc="Quickfix" },
{ keys="<leader>tr", cmd=tc("registers" ,"ivy") , desc="Registers" },
{ keys="<leader>ta", cmd=tc("aerial" ,"ivy") , desc="Aerial" },
{ keys="<leader>tc", cmd=tc("resume" ,"dropdown"), desc="Continue" },
{ keys="<leader>td", cmd=tc("diagnostics" ,"ivy") , desc="Diagnostics"},
{ keys="<leader>th", cmd=tc("help_tags" ,"ivy") , desc="Help Tags" },
}
}

View File

@@ -2,7 +2,6 @@
return
{
-- Dependencies
'https://github.com/nvim-lua/plenary.nvim', -- For Telescope
'https://github.com/nvim-neotest/nvim-nio' , -- For nvim-dap-ui
-- Colorschemes
@@ -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' },

View File

@@ -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"
}
}
}