Closed nyngwang closed 2 years ago
This is bizarre 😄. Can you paste your config for FTerm
and fzf-lua
?
To be specific the problem occurs on two shortcuts <C-F>
and <C-G>
as shown in the following settings.
config = function()
require'FTerm'.setup {
border = 'single',
hl = 'Normal',
blend = 25, -- transparency
dimensions = {
height = 0.6,
width = 1,
x = 0,
y = 1,
}
}
end,
}
vim.api.nvim_set_keymap('n', '<M-Tab>', '<cmd>lua require("FTerm").toggle()<CR>', NOREF_NOERR_TRUNC)
vim.api.nvim_set_keymap('t', '<M-Tab>', '<cmd>lua require("FTerm").toggle()<CR>', NOREF_NOERR_TRUNC)
config = function()
require'fzf-lua'.setup {
winopts = {
border = { 'â•', '─', 'â•®', '│', '╯', '─', 'â•°', '│' },
height = 0.65,
width = 0.7,
row = 0.9,
col = 200,
preview = {
default = 'bat',
title = false,
wrap = 'nowrap',
vertical = 'up:80%',
layout = 'vertical'
}
},
files = {
prompt = ' File $ ',
-- WARNING: Run `brew install bat` to install bat.
cmd = 'fd -H',
},
grep = {
prompt = ' Word $ ',
-- WARNING: Run `brew install ripgrep` to install ripgrep.
cmd = "rg --vimgrep -g '!{.git,node_modules,package-lock.json,yarn.lock,Library,tags}'",
color_icons = false,
file_icons = false,
},
previewers = {
cat = {
cmd = "cat",
args = ""
}
}
}
local nnoremap = vim.keymap.nnoremap
nnoremap { '<Leader>gs', function() require'fzf-lua'.git_status() end }
nnoremap { '<Leader>gl', function() require'fzf-lua'.git_commits() end }
nnoremap { '<Leader>gb', function() require'fzf-lua'.git_branches() end }
nnoremap { '<Leader>gp', function() require'fzf-lua'.git_files() end }
------------------------------------------------------------------------------------------------
nnoremap { '<Leader>h', function() require'fzf-lua'.command_history() end }
nnoremap { '<Leader>c', function() require'fzf-lua'.colorschemes() end }
------------------------------------------------------------------------------------------------
nnoremap { '<C-F>', function() require'fzf-lua'.live_grep() end }
nnoremap { '<C-G>', function() require'fzf-lua'.files() end }
end
}
I tried and I couldn't reproduce the error. Would you mind telling me the exact steps?
I am closing this as I don't think this is related to this plugin.
I encountered this error when using
fzf-lua
'sgit_status
function. I pressed<ESC>
after I finished reading thegit diff
of files.