feat(nvim): mess around with Telescope & Catppuccin

chezmoi
sgoudham 2 years ago
parent 000fc62164
commit 1a68968684
Signed by: hammy
GPG Key ID: 44E818FD5457EEA4

@ -41,6 +41,7 @@ return {
}, },
custom_highlights = { custom_highlights = {
ErrorMsg = { fg = cp.red, style = { "bold" } }, ErrorMsg = { fg = cp.red, style = { "bold" } },
["@function.builtin"] = { fg = cp.blue },
LspInfoBorder = { link = "FloatBorder" }, LspInfoBorder = { link = "FloatBorder" },
PmenuSel = { bg = cp.surface0 }, PmenuSel = { bg = cp.surface0 },
FloatBorder = { fg = cp.overlay0, bg = "NONE" }, FloatBorder = { fg = cp.overlay0, bg = "NONE" },

@ -6,13 +6,35 @@ return {
require("telescope").load_extension("fzy_native") require("telescope").load_extension("fzy_native")
require("telescope").load_extension("catppuccin") require("telescope").load_extension("catppuccin")
require("telescope").load_extension("smart_open") require("telescope").load_extension("smart_open")
local actions = require("telescope.actions")
require("telescope").setup({
defaults = {
mappings = {
i = {
["<A-j>"] = actions.move_selection_next,
["<A-k>"] = actions.move_selection_previous,
["<A-n>"] = actions.cycle_history_next,
["<A-p>"] = actions.cycle_history_prev,
},
n = {
["<A-j>"] = actions.move_selection_next,
["<A-k>"] = actions.move_selection_previous,
["<A-n>"] = actions.preview_scrolling_down,
["<A-p>"] = actions.preview_scrolling_up,
},
},
},
})
end, end,
keys = { keys = {
{ "<leader>ff", "<cmd>Telescope smart_open<cr>", "Find files" }, { "<leader>ff", "<cmd>Telescope smart_open<cr>", "Find Files" },
{ "<leader>fp", "<cmd>Telescope projects<cr>", "All Projects" }, { "<leader>fp", "<cmd>Telescope projects<cr>", "All Projects" },
{ "<leader>fr", "<cmd>Telescope oldfiles<cr>", "Recent Files" }, { "<leader>fr", "<cmd>Telescope oldfiles<cr>", "Recent Files" },
{ "<leader>fg", "<cmd>Telescope live_grep<cr>", "Live grep" }, { "<leader>fg", "<cmd>Telescope live_grep<cr>", "Find Text" },
{ "<leader>fc", "<cmd>Telescope catppuccin<cr>", "Catppuccin Colours" }, { "<leader>fh", "<cmd>Telescope highlights<cr>", "Find Highlights" },
{ "<leader>fc", "<cmd>Telescope current_buffer_fuzzy_find<cr>", "Find In File" },
{ "<leader>fC", "<cmd>Telescope catppuccin<cr>", "Catppuccin Colours" },
{ "<leader>fj", "<cmd>Telescope jumplist<cr>", "Jumplist" }, { "<leader>fj", "<cmd>Telescope jumplist<cr>", "Jumplist" },
}, },
cmd = "Telescope", cmd = "Telescope",

Loading…
Cancel
Save