在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):ibhagwan/fzf-lua开源软件地址(OpenSource Url):https://github.com/ibhagwan/fzf-lua开源编程语言(OpenSource Language):Lua 99.5%开源软件介绍(OpenSource Introduction):
fzf
|
Command | List |
---|---|
buffers |
open buffers |
files |
find or fd on a path |
oldfiles |
opened files history |
quickfix |
quickfix list |
loclist |
location list |
lines |
open buffers lines |
blines |
current buffer lines |
tabs |
open tabs |
args |
argument list |
Command | List |
---|---|
grep |
search for a pattern with grep or rg |
grep_last |
run search again with the last pattern |
grep_cword |
search word under cursor |
grep_cWORD |
search WORD under cursor |
grep_visual |
search visual selection |
grep_project |
search all project lines (fzf.vim's :Rg ) |
grep_curbuf |
search current buffer lines |
lgrep_curbuf |
live grep current buffer |
live_grep |
live grep current project |
live_grep_resume |
live grep continue last search |
live_grep_glob |
live_grep with rg --glob support |
live_grep_native |
performant version of live_grep |
Command | List |
---|---|
tags |
search project tags |
btags |
search buffer tags |
tags_grep |
grep project tags |
tags_grep_cword |
tags_grep word under cursor |
tags_grep_cWORD |
tags_grep WORD under cursor |
tags_grep_visual |
tags_grep visual selection |
tags_live_grep |
live grep project tags |
Command | List |
---|---|
git_files |
git ls-files |
git_status |
git status |
git_commits |
git commit log (project) |
git_bcommits |
git commit log (buffer) |
git_branches |
git branches |
git_stash |
git stash |
Command | List |
---|---|
lsp_references |
References |
lsp_definitions |
Definitions |
lsp_declarations |
Declarations |
lsp_typedefs |
Type Definitions |
lsp_implementations |
Implementations |
lsp_document_symbols |
Document Symbols |
lsp_workspace_symbols |
Workspace Symbols |
lsp_live_workspace_symbols |
Workspace Symbols (live query) |
lsp_code_actions |
Code Actions |
lsp_incoming_calls |
Incoming Calls |
lsp_outgoing_calls |
Outgoing Calls |
diagnostics_document |
Document Diagnostics |
diagnostics_workspace |
Workspace Diagnostics |
lsp_document_diagnostics |
alias to diagnostics_document |
lsp_workspace_diagnostics |
alias to diagnostics_workspace |
Command | List |
---|---|
resume |
resume last command/query |
builtin |
fzf-lua builtin commands |
help_tags |
help tags |
man_pages |
man pages |
colorschemes |
color schemes |
highlights |
highlight groups |
commands |
neovim commands |
command_history |
command history |
search_history |
search history |
marks |
:marks |
jumps |
:jumps |
changes |
:changes |
registers |
:registers |
tagstack |
:tags |
keymaps |
key mappings |
filetypes |
filetypes |
menus |
menus |
spell_suggest |
spelling suggestions |
packadd |
:packadd |
:help vim.ui.select
for more info
Command | List |
---|---|
register_ui_select |
register fzf-lua as the UI interface for vim.ui.select |
deregister_ui_select |
de-register fzf-lua with vim.ui.select |
Requires
nvim-dap
Command | List |
---|---|
dap_commands |
list,run nvim-dap builtin commands |
dap_configurations |
list,run debug configurations |
dap_breakpoints |
list,delete breakpoints |
dap_variables |
active session variables |
dap_frames |
active session jump to frame |
ADVANCED CUSTOMIZATION : to create your own fzf-lua commands see Wiki/ADVANCED
Customization can be achieved by calling the setup()
function (optional) or
individually sending parameters to a builtin command, A few examples below:
Different
fzf
layout:
:lua require('fzf-lua').files({ fzf_opts = {['--layout'] = 'reverse-list'} })
Using
files
with a different command and working directory:
:lua require'fzf-lua'.files({ prompt="LS> ", cmd = "ls", cwd="~/<folder>" })
Using
live_grep
withgit grep
:
:lua require'fzf-lua'.live_grep({ cmd = "git grep --line-number --column --color=always" })
colorschemes
with non-default window size:
:lua require'fzf-lua'.colorschemes({ winopts = { height=0.33, width=0.33 } })
Use setup()
If you wish for a setting to persist and not have to send it using the call
arguments, e.g:
require('fzf-lua').setup{
winopts = {
...
}
}
Can also be called from a .vim
file:
lua << EOF
require('fzf-lua').setup{
...
}
EOF
Below is a list of most (still, not all default settings), please also consult the issues if there's something you need and you can't find as there have been many obscure requests which have been fulfilled and are yet to be documented. If you're still having issues and/or questions do not hesitate to open an issue and I'll be more than happy to help.
local actions = require "fzf-lua.actions"
require'fzf-lua'.setup {
-- fzf_bin = 'sk', -- use skim instead of fzf?
-- https://github.com/lotabout/skim
global_resume = true, -- enable global `resume`?
-- can also be sent individually:
-- `<any_function>.({ gl ... })`
global_resume_query = true, -- include typed query in `resume`?
winopts = {
-- split = "belowright new",-- open in a split instead?
-- "belowright new" : split below
-- "aboveleft new" : split above
-- "belowright vnew" : split right
-- "aboveleft vnew : split left
-- Only valid when
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论