1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2024-12-22 23:08:01 +00:00

[neovim] telescope tunning

This commit is contained in:
Daniel Carrillo 2022-10-09 19:23:15 +02:00
parent 2a9ea0af68
commit ae25771e56
Signed by: dcarrillo
GPG Key ID: E4CD5C09DAED6E16
3 changed files with 11 additions and 18 deletions

View File

@ -1,19 +1,11 @@
local colorscheme = "tokyonight" local colorscheme = "tokyonight"
-- if colorscheme == "nightfox" then require("tokyonight").setup({
-- local status_nf_ok, nightfox = pcall(require, "nightfox") styles = {
-- if not status_nf_ok then sidebars = "normal",
-- return floats = "normal",
-- end },
-- })
-- local palettes = {
-- nightfox = {
-- bg1 = "#24283b",
-- },
-- }
--
-- nightfox.setup({ palettes = palettes })
-- end
local status_ok, _ = pcall(vim.cmd, "colorscheme " .. colorscheme) local status_ok, _ = pcall(vim.cmd, "colorscheme " .. colorscheme)
if not status_ok then if not status_ok then

View File

@ -70,6 +70,7 @@ keymap("n", "<leader>ff", ":Telescope find_files<CR>", opts)
keymap("n", "<C-p>", ":Telescope find_files<CR>", opts) keymap("n", "<C-p>", ":Telescope find_files<CR>", opts)
keymap("n", "<leader>fg", ":Telescope live_grep<CR>", opts) keymap("n", "<leader>fg", ":Telescope live_grep<CR>", opts)
keymap("n", "<leader>fb", ":Telescope buffers<CR>", opts) keymap("n", "<leader>fb", ":Telescope buffers<CR>", opts)
keymap("n", "<leader>fc", ":Telescope commands<CR>", opts)
-- Comment -- Comment
keymap("n", "<leader>/", "<cmd>lua require('Comment.api').toggle.linewise.current()<CR>", opts) keymap("n", "<leader>/", "<cmd>lua require('Comment.api').toggle.linewise.current()<CR>", opts)

View File

@ -14,10 +14,10 @@ telescope.setup({
mappings = { mappings = {
i = { i = {
["<Down>"] = actions.cycle_history_next, ["<C-j>"] = actions.cycle_history_next,
["<Up>"] = actions.cycle_history_prev, ["<C-k>"] = actions.cycle_history_prev,
["<C-j>"] = actions.move_selection_next, ["<Down>"] = actions.move_selection_next,
["<C-k>"] = actions.move_selection_previous, ["<Up>"] = actions.move_selection_previous,
}, },
}, },
}, },