summaryrefslogtreecommitdiff
path: root/pkgs/custom-neovim/config/lua/plugins/fzf.lua
diff options
context:
space:
mode:
authortriethyl <triethylammonium@pm.me>2026-03-18 16:23:22 -0400
committertriethyl <triethylammonium@pm.me>2026-03-18 16:23:22 -0400
commit26f9b43fec441b1c17a44daab12db1b20f57254b (patch)
tree13dc2bf5c5e60b6f226d7793604960e23c6e2073 /pkgs/custom-neovim/config/lua/plugins/fzf.lua
parent93b5c03ba84dc071deaf9951bff97d7edf01e4cc (diff)
neovim: tons of misc changes
Diffstat (limited to 'pkgs/custom-neovim/config/lua/plugins/fzf.lua')
-rw-r--r--pkgs/custom-neovim/config/lua/plugins/fzf.lua63
1 files changed, 0 insertions, 63 deletions
diff --git a/pkgs/custom-neovim/config/lua/plugins/fzf.lua b/pkgs/custom-neovim/config/lua/plugins/fzf.lua
deleted file mode 100644
index 984a2ca..0000000
--- a/pkgs/custom-neovim/config/lua/plugins/fzf.lua
+++ /dev/null
@@ -1,63 +0,0 @@
-return {
- "fzf-lua",
- enabled = false,
- cmd = "FzfLua",
- after = function ()
- require("fzf-lua").setup {
- "default-title",
- files = {
- cwd_prompt = false,
- },
- }
-
- require("fzf-lua").register_ui_select()
-
- local multiline_string_to_table = function (input_str)
- local lines = {}
- for line in input_str:gmatch("[^\r\n]+") do
- table.insert(lines, line)
- end
- return lines
- end
-
- Custom_pickers = {}
-
- Custom_pickers.fzf_dir_cd = function()
- local dirs = {}
- for i, name in ipairs(multiline_string_to_table(vim.fn.system("fd -t d"))) do
- table.insert(dirs, name)
- end
-
- require("fzf-lua").fzf_exec( dirs, {
- winopts = {
- title = " Directories ",
- },
- prompt = "❯ ",
- actions = {
- ["enter"] = function(selected)
- vim.cmd.cd(selected)
- end
- }
- })
- end
-
- Custom_pickers.fzf_dir_tcd = function()
- local dirs = {}
- for i, name in ipairs(multiline_string_to_table(vim.fn.system("fd -t d"))) do
- table.insert(dirs, name)
- end
-
- require("fzf-lua").fzf_exec( dirs, {
- winopts = {
- title = " Directories ",
- },
- prompt = "❯ ",
- actions = {
- ["enter"] = function(selected)
- vim.cmd.tcd(selected)
- end
- }
- })
- end
- end
-}