forked from foxora/nix
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, "TelescopePreviewNormal", { bg = bg_90 })
|
||||||
|
|
||||||
vim.api.nvim_set_hl(0, "TelescopeBorder", { fg = color_15, 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, "TelescopePromptBorder", { fg = color_15, bg = bg_90 })
|
||||||
vim.api.nvim_set_hl(0, "TelescopeResultsBorder", { fg = color_13, 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_12, 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, "TelescopePromptTitle", { fg = color_15, bg = bg_90 })
|
||||||
vim.api.nvim_set_hl(0, "TelescopeResultsTitle", { fg = color_15, bg = bg_90 })
|
vim.api.nvim_set_hl(0, "TelescopeResultsTitle", { fg = color_15, bg = bg_90 })
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"telescope.nvim",
|
"telescope.nvim",
|
||||||
|
enabled = nixCats("telescope.enable") or false,
|
||||||
cmd = { "Telescope" },
|
cmd = { "Telescope" },
|
||||||
keys = {
|
keys = {
|
||||||
{
|
{
|
||||||
|
|
@ -62,7 +63,14 @@ return {
|
||||||
},
|
},
|
||||||
load = function(name)
|
load = function(name)
|
||||||
vim.cmd.packadd(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,
|
end,
|
||||||
after = function(plugin)
|
after = function(plugin)
|
||||||
local telescope = require("telescope")
|
local telescope = require("telescope")
|
||||||
|
|
@ -72,11 +80,6 @@ return {
|
||||||
defaults = {
|
defaults = {
|
||||||
border = true,
|
border = true,
|
||||||
borderchars = { "─", "│", "─", "│", "╭", "╮", "╯", "╰" },
|
borderchars = { "─", "│", "─", "│", "╭", "╮", "╯", "╰" },
|
||||||
-- borderchars = {
|
|
||||||
-- prompt = { "─", " ", " ", " ", "─", "─", " ", " " },
|
|
||||||
-- results = { " " },
|
|
||||||
-- preview = { "─", "│", "─", "│", "╭", "╮", "╯", "╰" },
|
|
||||||
-- },
|
|
||||||
mappings = {
|
mappings = {
|
||||||
i = {
|
i = {
|
||||||
["<C-k>"] = actions.move_selection_previous, -- move to prev result
|
["<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,
|
end,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -130,11 +130,14 @@ in {
|
||||||
undotree
|
undotree
|
||||||
mini-hipatterns
|
mini-hipatterns
|
||||||
];
|
];
|
||||||
telescope = [
|
telescope = {
|
||||||
telescope-nvim
|
enable = [
|
||||||
telescope-fzf-native-nvim
|
telescope-nvim
|
||||||
telescope-ui-select-nvim
|
telescope-ui-select-nvim
|
||||||
];
|
];
|
||||||
|
fzf = [telescope-fzf-native-nvim];
|
||||||
|
zf = [telescope-zf-native-nvim];
|
||||||
|
};
|
||||||
fyler = [
|
fyler = [
|
||||||
fyler-nvim
|
fyler-nvim
|
||||||
];
|
];
|
||||||
|
|
@ -242,7 +245,15 @@ in {
|
||||||
|
|
||||||
ui = true;
|
ui = true;
|
||||||
qol = true;
|
qol = true;
|
||||||
telescope = true;
|
|
||||||
|
telescope = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
# only enable one at a time
|
||||||
|
fzf = false;
|
||||||
|
zf = true;
|
||||||
|
};
|
||||||
|
|
||||||
fyler = true;
|
fyler = true;
|
||||||
|
|
||||||
lsp = true;
|
lsp = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue