nvim: telescope tuning

This commit is contained in:
Daniel Lundin 2024-06-11 22:48:15 +02:00
parent d666c403dc
commit f0e98b6b46
No known key found for this signature in database
5 changed files with 31 additions and 30 deletions

View file

@ -1,6 +1,5 @@
{ {
"extras": [ "extras": [
"lazyvim.plugins.extras.coding.codeium",
"lazyvim.plugins.extras.dap.core", "lazyvim.plugins.extras.dap.core",
"lazyvim.plugins.extras.formatting.prettier", "lazyvim.plugins.extras.formatting.prettier",
"lazyvim.plugins.extras.lang.go", "lazyvim.plugins.extras.lang.go",
@ -15,10 +14,11 @@
"lazyvim.plugins.extras.test.core", "lazyvim.plugins.extras.test.core",
"lazyvim.plugins.extras.ui.edgy", "lazyvim.plugins.extras.ui.edgy",
"lazyvim.plugins.extras.ui.treesitter-context", "lazyvim.plugins.extras.ui.treesitter-context",
"lazyvim.plugins.extras.util.gitui" "lazyvim.plugins.extras.util.gitui",
"lazyvim.plugins.extras.util.project"
], ],
"news": { "news": {
"NEWS.md": "5950" "NEWS.md": "6077"
}, },
"version": 6 "version": 6
} }

View file

@ -13,9 +13,9 @@ return {
table.insert(opts.sources, { name = "emoji" }) table.insert(opts.sources, { name = "emoji" })
opts.view = { docs = { auto_open = false }, entries = { follow_cursor = true } } opts.view = { docs = { auto_open = false }, entries = { follow_cursor = true } }
-- opts.completion = { opts.completion = {
-- autocomplete = false, autocomplete = false,
-- } }
local winhighlight = local winhighlight =
"Normal:NoiceCmdlinePopupTitle,FloatBorder:NoiceCmdlinePopupBorder,CursorLine:PMenuSel,Search:Search" "Normal:NoiceCmdlinePopupTitle,FloatBorder:NoiceCmdlinePopupBorder,CursorLine:PMenuSel,Search:Search"
@ -54,4 +54,16 @@ return {
enable_chat = false, enable_chat = false,
}, },
}, },
{
"monkoose/neocodeium",
event = "VeryLazy",
config = function()
local neocodeium = require("neocodeium")
neocodeium.setup()
vim.keymap.set("i", "<C-j>", neocodeium.accept)
vim.keymap.set("i", "<A-f>", neocodeium.accept)
vim.keymap.set("i", "<C-h>", neocodeium.cycle_or_complete)
end,
},
} }

View file

@ -43,7 +43,7 @@ return {
horizontal = { horizontal = {
prompt_position = "top", prompt_position = "top",
mirror = false, mirror = false,
preview_width = 0.4, preview_width = 0.49,
-- preview_height = 0.5, -- preview_height = 0.5,
}, },
width = 0.9, width = 0.9,
@ -57,10 +57,10 @@ return {
["<C-w>"] = false, -- <C-u> clear prompt ["<C-w>"] = false, -- <C-u> clear prompt
}, },
}, },
path_display = { "filename_first" }, -- path_display = { "filename_first" },
previewer = false, -- previewer = false,
preview = { preview = {
hide_on_startup = true, -- hide_on_startup = true,
}, },
sorting_strategy = "ascending", sorting_strategy = "ascending",
winblend = 0, winblend = 0,
@ -68,4 +68,8 @@ return {
} }
end, end,
}, },
{
"natecraddock/telescope-zf-native.nvim",
},
} }

View file

@ -96,15 +96,4 @@ return {
}, },
}, },
}, },
{
"monkoose/neocodeium",
event = "VeryLazy",
config = function()
local neocodeium = require("neocodeium")
neocodeium.setup()
vim.keymap.set("i", "<C-j>", neocodeium.accept)
vim.keymap.set("i", "<C-h>", neocodeium.cycle_or_complete)
end,
},
} }

View file

@ -31,6 +31,7 @@ return {
max_width = 50, max_width = 50,
max_height = 20, max_height = 20,
show_borders = true, show_borders = true,
toggle_event = { "InsertEnter", "InsertLeave" },
}, },
}, },
@ -117,14 +118,9 @@ return {
}, },
{ {
"linrongbin16/fzfx.nvim", "ahmedkhalf/project.nvim",
dependencies = { "nvim-tree/nvim-web-devicons", "junegunn/fzf" }, opts = {
manual_mode = false,
-- specify version to avoid break changes },
version = "v5.*",
config = function()
require("fzfx").setup()
end,
}, },
} }