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:
parent
2a9ea0af68
commit
ae25771e56
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user