changed telescope colors and am trying out zf instead of fzf
This commit is contained in:
parent
65995c2245
commit
98a52ebe74
3 changed files with 36 additions and 16 deletions
|
|
@ -95,9 +95,9 @@ local function load_colors()
|
|||
vim.api.nvim_set_hl(0, "TelescopePreviewNormal", { bg = bg_90 })
|
||||
|
||||
vim.api.nvim_set_hl(0, "TelescopeBorder", { fg = color_15, bg = bg_90 })
|
||||
vim.api.nvim_set_hl(0, "TelescopePromptBorder", { fg = color_14, bg = bg_90 })
|
||||
vim.api.nvim_set_hl(0, "TelescopeResultsBorder", { fg = color_13, bg = bg_90 })
|
||||
vim.api.nvim_set_hl(0, "TelescopePreviewBorder", { fg = color_12, bg = bg_90 })
|
||||
vim.api.nvim_set_hl(0, "TelescopePromptBorder", { fg = color_15, bg = bg_90 })
|
||||
vim.api.nvim_set_hl(0, "TelescopeResultsBorder", { fg = color_15, bg = bg_90 })
|
||||
vim.api.nvim_set_hl(0, "TelescopePreviewBorder", { fg = color_15, bg = bg_90 })
|
||||
|
||||
vim.api.nvim_set_hl(0, "TelescopePromptTitle", { fg = color_15, bg = bg_90 })
|
||||
vim.api.nvim_set_hl(0, "TelescopeResultsTitle", { fg = color_15, bg = bg_90 })
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
return {
|
||||
{
|
||||
"telescope.nvim",
|
||||
enabled = nixCats("telescope.enable") or false,
|
||||
cmd = { "Telescope" },
|
||||
keys = {
|
||||
{
|
||||
|
|
@ -62,7 +63,14 @@ return {
|
|||
},
|
||||
load = function(name)
|
||||
vim.cmd.packadd(name)
|
||||
vim.cmd.packadd("telescope-fzf-native.nvim")
|
||||
|
||||
if nixCats("telescope.fzf") then
|
||||
vim.cmd.packadd("telescope-fzf-native.nvim")
|
||||
end
|
||||
|
||||
if nixCats("telescope.zf") then
|
||||
vim.cmd.packadd("telescope-zf-native.nvim")
|
||||
end
|
||||
end,
|
||||
after = function(plugin)
|
||||
local telescope = require("telescope")
|
||||
|
|
@ -72,11 +80,6 @@ return {
|
|||
defaults = {
|
||||
border = true,
|
||||
borderchars = { "─", "│", "─", "│", "╭", "╮", "╯", "╰" },
|
||||
-- borderchars = {
|
||||
-- prompt = { "─", " ", " ", " ", "─", "─", " ", " " },
|
||||
-- results = { " " },
|
||||
-- preview = { "─", "│", "─", "│", "╭", "╮", "╯", "╰" },
|
||||
-- },
|
||||
mappings = {
|
||||
i = {
|
||||
["<C-k>"] = actions.move_selection_previous, -- move to prev result
|
||||
|
|
@ -87,7 +90,13 @@ return {
|
|||
},
|
||||
})
|
||||
|
||||
pcall(telescope.load_extension, "fzf")
|
||||
if nixCats("telescope.fzf") then
|
||||
telescope.load_extension("fzf")
|
||||
end
|
||||
|
||||
if nixCats("telescope.zf") then
|
||||
telescope.load_extension("zf-native")
|
||||
end
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -130,11 +130,14 @@ in {
|
|||
undotree
|
||||
mini-hipatterns
|
||||
];
|
||||
telescope = [
|
||||
telescope-nvim
|
||||
telescope-fzf-native-nvim
|
||||
telescope-ui-select-nvim
|
||||
];
|
||||
telescope = {
|
||||
enable = [
|
||||
telescope-nvim
|
||||
telescope-ui-select-nvim
|
||||
];
|
||||
fzf = [telescope-fzf-native-nvim];
|
||||
zf = [telescope-zf-native-nvim];
|
||||
};
|
||||
fyler = [
|
||||
fyler-nvim
|
||||
];
|
||||
|
|
@ -242,7 +245,15 @@ in {
|
|||
|
||||
ui = true;
|
||||
qol = true;
|
||||
telescope = true;
|
||||
|
||||
telescope = {
|
||||
enable = true;
|
||||
|
||||
# only enable one at a time
|
||||
fzf = false;
|
||||
zf = true;
|
||||
};
|
||||
|
||||
fyler = true;
|
||||
|
||||
lsp = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue