1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2024-12-22 18:38:00 +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"
-- if colorscheme == "nightfox" then
-- local status_nf_ok, nightfox = pcall(require, "nightfox")
-- if not status_nf_ok then
-- return
-- end
--
-- local palettes = {
-- nightfox = {
-- bg1 = "#24283b",
-- },
-- }
--
-- nightfox.setup({ palettes = palettes })
-- end
require("tokyonight").setup({
styles = {
sidebars = "normal",
floats = "normal",
},
})
local status_ok, _ = pcall(vim.cmd, "colorscheme " .. colorscheme)
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", "<leader>fg", ":Telescope live_grep<CR>", opts)
keymap("n", "<leader>fb", ":Telescope buffers<CR>", opts)
keymap("n", "<leader>fc", ":Telescope commands<CR>", opts)
-- Comment
keymap("n", "<leader>/", "<cmd>lua require('Comment.api').toggle.linewise.current()<CR>", opts)

View File

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