-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Description
Edit: I also found out that when i quit blame window with blame created keybinding like 'q' the error persist, which does not happen when i quit with BlameToggle
Basically, telescope is working normally till i open git blame then it:
- telescope grep files, when inserting some chars(not every one!) it works as if im in keyboard insert
- telescope files works normally
- telescope buffer works as grep files, which is bad
each of telescope command i run as such:
{ "<leader>sg", "<cmd>Telescope live_grep<CR>", desc = "Grep files", icon = "" },
{ "<leader>f", "<cmd>Telescope find_files<CR>", desc = "Find File" },
{ "<leader>b", "<cmd>lua require("telescope.builtin").buffers()<CR>", desc = "List Buffers", icon = "" },
- nvim v0.10.1
- config for blame.nvim:
{
"FabijanZulj/blame.nvim",
cmd = "BlameToggle",
lazy = true,
opts = {
blame_options = { '-w' },
date_format = "%d.%m.%Y",
virtual_style = "right",
merge_consecutive = false,
max_summary_width = 40,
colors = nil,
commit_detail_view = "split",
-- format_fn = formats.commit_date_author_fn,
mappings = {
commit_info = "K",
stack_push = "<TAB>",
stack_pop = "<BS>",
show_commit = "<CR>",
close = { "q" },
}
},
- telescope config:
{
"nvim-telescope/telescope.nvim",
cmd = "Telescope",
dependencies = {
{ 'nvim-telescope/telescope-media-files.nvim' },
{
"nvim-telescope/telescope-fzf-native.nvim",
build =
"cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release && cmake --install build --prefix build",
},
},
tag = "0.1.7",
config = function()
local _, actions = pcall(require, "telescope.actions")
local function filenameFirst(_, path)
local tail = vim.fs.basename(path)
local parent = vim.fs.dirname(path)
if parent == "." then return tail end
return string.format("%s\t\t%s", tail, parent)
end
vim.api.nvim_create_autocmd("FileType", {
pattern = "TelescopeResults",
callback = function(ctx)
vim.api.nvim_buf_call(ctx.buf, function()
vim.fn.matchadd("TelescopeParent", "\t\t.*$")
vim.api.nvim_set_hl(0, "TelescopeParent", { link = "Comment" })
end)
end,
})
require("telescope").setup({
defaults = require("telescope.themes").get_ivy {
path_display = filenameFirst,
selection_strategy = "reset",
selection_caret = " ",
dynamic_preview_title = true,
-- layout_strategy = "flex",
color_devicons = true,
prompt_prefix = " ",
file_previewer = require("telescope.previewers").vim_buffer_cat.new,
grep_previewer = require("telescope.previewers").vim_buffer_vimgrep.new,
qflist_previewer = require("telescope.previewers").vim_buffer_qflist.new,
layout_config = {
-- anchor = "C",
prompt_position = "bottom",
-- height = 0.90,
-- width = 0.99,
},
mappings = {
i = {
["<esc>"] = actions.close,
["<C-j>"] = actions.move_selection_next,
["<C-k>"] = actions.move_selection_previous,
["<C-n>"] = actions.send_to_qflist + actions.open_qflist,
},
-- n = {
-- ["<C-j>"] = actions.move_selection_next,
-- ["<C-k>"] = actions.move_selection_previous,
-- ["gq"] = actions.send_to_qflist + actions.open_qflist,
-- },
},
},
extensions_list = { "themes", "terms" },
extensions = {
fzf = {
fuzzy = true, -- false will only do exact matching
override_generic_sorter = true, -- override the generic sorter
override_file_sorter = true, -- override the file sorter
case_mode = "smart_case", -- or "ignore_case" or "respect_case"
},
},
-- other configuration values here
})
require('telescope').load_extension('fzf')
require('telescope').load_extension('media_files')
end,
}
cyrillkuettel
Metadata
Metadata
Assignees
Labels
No labels