Commit Graph

641 Commits

Author SHA1 Message Date
spike
53c4361575 fix broken UI for keyamps with empty desc 2022-08-24 16:02:58 +02:00
spike
c4de28730c nicer UI for keymaps inspired from telescope 2022-08-24 16:02:58 +02:00
Akianonymus
c56c492218 feat(win): Automatically resize windows if screen change is detected
add a buffer local autocmd which will trigger the redraw() function
2022-08-22 07:55:18 -04:00
bhagwan
d4ec9eea65 chore: regen vimdoc 2022-08-20 05:38:47 -07:00
Akianonymus
d7b1ee7a84 previewer: Add title_align option
change alignment of the preview title

default is left
2022-08-19 19:27:46 +05:30
Shojin Masuda
054c312b1c put diagnostic.data on get_line_diagnostics 2022-08-18 09:20:30 -04:00
bhagwan
0e0bc7a600 fix: builtin previewer scrolling when scrolloff=0 (closes #500) 2022-08-17 18:36:43 -07:00
bhagwan
d59bc58328 feat(loclist): use alt-l to send selection to the loclist (#435) 2022-08-17 17:19:42 -07:00
bhagwan
c8d0a0274e feat(redraw): use :FzfLua redraw when term size changes (#498) 2022-08-11 11:12:28 -04:00
m-fonseca
4777dd572a README: add missing ','s 2022-08-09 18:55:38 +03:00
Gregory Anders
830b685796 feat: do not override user-specified cwd for git_files
Use the `cwd` specified by the user if it exists; otherwise, fallback to
the git repo root.
2022-08-03 12:17:17 -04:00
bhagwan
bb73779107 fix(buffers): error "Process exited 0" on buf delete 2022-07-29 23:29:27 -04:00
bhagwan
c3b23be371 fix(lsp): "no client attached" error (closes #490) 2022-07-27 08:05:14 -07:00
bhagwan
0bfbe03939 chore(API): swap argument order for 'core.fzf' 2022-07-27 06:15:58 -07:00
bhagwan
8dade5e998 fix(lsp): call hierarchy (closes #481) 2022-07-19 10:43:20 -07:00
bhagwan
696d0f54e5 fix(diagnostics): when signs configured as false (closes #480) 2022-07-18 09:08:48 -07:00
bhagwan
95c859b4e4 highlights: restored default border hl to "Normal" (#473) 2022-07-10 08:19:58 -07:00
bhagwan
4ac0092a4c fix(lsp): properly count number of attached clients supporting a
feature to prevent 'async=true' coroutine from waiting forever
for a callback (#468)
2022-07-09 20:50:21 -07:00
bhagwan
d6691568b7 fix(lsp): better coroutine logic when 'async=true' (#468) 2022-07-09 20:26:24 -07:00
bhagwan
8c0408529a fix(lsp_live_workspace_symbols): failure to clear results on failed
query (#468). Also, removed ambiguous 'sync' option, use 'async' instead.
2022-07-09 17:50:24 -07:00
bhagwan
af60eb72af feat(no_action_zz): option to disable 'zz' after actions (closes #472) 2022-07-09 13:11:18 -07:00
bhagwan
dae78fc153 feat(git): improvements in git 'status|commits|bcommits':
- Option to define 'preview_pager' (e.g. `delta`) which will be piped
  onto the preview command, more convinient than having to rewrite the
  preview command or have to define it under 'previewers.git_diff'
  for 'git.status'
- Added timestamp & author name to 'commits|bcommits' default command
- Added timestamp to 'commits' default preview command
- 'bcommits' changes:
  + disabled for unnamed buffers
  + default preview now shows `git diff` for the specific file (instead
    of showing the entire commit
  + will attempt to detect the current buffers git root in case current
    working directory changed, i.e. 'bcommits' will work as long as the
    current buffer is under a git repo)
- 'branches': better branch extraction lua pattern
2022-07-09 12:53:02 -07:00
bhagwan
7a0b7fac66 make_entry.file: optimized performance and logic 2022-07-08 19:51:49 -07:00
bhagwan
4707adc1ec feat(file_ignore_patterns): consult the wiki link below
https://github.com/ibhagwan/fzf-lua/wiki#file-ignore-patterns
2022-07-08 16:01:04 -07:00
bhagwan
ee19eda2e3 feat: 'diagnostics.icon_padding' for extra wide icons (#470) 2022-07-07 22:30:53 -07:00
bhagwan
248efd1ffc fix(diagnostics): 'vim.trim' predefined signs (closes #470) 2022-07-07 21:52:13 -07:00
bhagwan
a2c7d7863c feat(diagnostics): extract icons|highlights from neovim signs 2022-07-07 18:01:56 -07:00
bhagwan
236b305a18 feat: new FzfLuaXXX highlights, updated README 2022-07-07 13:04:01 -07:00
bhagwan
989674058e helptags: wrap nvim_win_call in a pcall, regen vimdoc 2022-07-06 08:28:19 -07:00
bhagwan
5e4151d495 feat(lsp_workspace_symbols): added '<C-g>' to toggle live query:
works similar to 'grep_lgrep' action toggling between the fuzzy
matching on the entire workspace symbols and live query which
sends a new LSP query with each keystroke, fuzzy query is saved
between toggles so it can be used as an extra filter for example:
live query 'foo', press ctrl-g and enter '!.lua', to exclude all
lua files.
Addittional changes:
- diagnostics decoupled from LSP, new options under 'diagnostics'
- symbols options has their own category under 'lsp.symbols'
- 'lsp_document_diagnostics' -> 'diagnostics_document'
- 'lsp_workspace_diagnostics' -> 'diagnostics_workspace'
- backward compatibility maintained for the above changes
- all symbols providers use 'async=true' by default
2022-07-04 00:41:36 -07:00
Markus Dobler
6ab7eddfc1 fix(buf_switch): winid_from_tab_buf expects number 2022-07-02 20:39:17 +00:00
bhagwan
786d06bc51 fix(lines|blines): send to quickfix (closes #466) 2022-07-01 15:25:31 -07:00
bhagwan
10e8be0e63 chore: generated vimdoc from README 2022-06-30 15:34:26 -07:00
bhagwan
b52f92a46b fix(nvim_bin): use 'vim.v.progpath' instead of 'vim.v.argv[1]' 2022-06-30 10:28:55 -07:00
bhagwan
519dbf067b feat(preview): toggle cursorline hl when scrolling (#462)
Other changes:
- preview: added new highlight setting `CursorLineNr`
- internal changes to preview command shellescape
2022-06-30 08:49:13 -07:00
bhagwan
d7de3b51ae feat(grep_lgrep): save query prompt between toggles
fix(live_grep_resume): when using skim
lsp_workspace_symbols: 'opt.query' -> 'opts.lsp_query'
API adjustments:
- Support for `opts.query` everywhere
- Auto shellescape `opts.preview`
- Removed global default prompt
2022-06-29 21:18:10 -07:00
bhagwan
817df87a8e Major refactor, read below if you're having issues
This patch is quite massive, hopefully I got everything right in
testing, changes include:
- New API interface for "live" queries, for usage refer to:
  https://github.com/ibhagwan/fzf-lua/wiki/Advanced
- All providers now use 'fzf_exec' API (previously 'fzf_wrap')
- All "live" queries now use 'fzf_live' API
- Better resume support for "live" queries
- Fzf initial command now uses $FZF_DEFAULT_COMMAND instead of piping the
  command, this delegates the responsiblity to fzf which kills the
  command on exit resulting in better responsibness when exiting fzf
- Added 'silent_fail' option (default:'true') to prevent fzf from
  displaying [Command failed:...] when commands exit with error code
- Exposed 'config.globals' as 'require'fzf-lua'.defaults'
- Fix: 'libuv.shellescape' with special chars in fish shells
- Manpages: moved fzf option `--tiebreak=begin' to config
- Buffer actions: navigate to line if exists
- Lsp_diagnostics: properly use a coroutine
- make_entry signatures changed (entry before opts)
- Removed make_entry shortcuts from 'core'
- Removed 'coroutine.yield' where unecessary
- Fix: 'git_icons' with 'live_grep({multiprocess=false})'
- tagstack: use relative paths and replace '$HOME' with '~'
- Deprecated 'core.fzf_files'
- Fix: resume query if cancelled while loading indicator is shown
- Fix: resume query when command failed with 'silent_fail=false'
2022-06-28 23:01:33 -07:00
bhagwan
341f0641ea fzf_exec: normalize opts ('cwd' expand) 2022-06-25 01:27:36 -07:00
bhagwan
53cd37031e feat(fzf_exec): improved API, easy command transform 2022-06-25 01:09:50 -07:00
bhagwan
b17cc7220a feat(fzf_exec): easy API to run custom commands 2022-06-24 18:33:06 -07:00
Mark Oborne
5f473263b9 fix(quickfix): prevent indexing opts when nil
`opts` was being used before it was normalized causing the quickfix
command to fail when used without any options.
2022-06-24 23:26:46 +00:00
bhagwan
574ade266d defaults: set winopts.hl.search to 'IncSearch' 2022-06-24 12:19:18 -07:00
bhagwan
d44a33733e feat(help_tags): preview no longer runs :help (closes #457) 2022-06-24 11:06:11 -07:00
bhagwan
6a4392564b fix(resume): missing '<' char (closes #454) 2022-06-19 15:43:07 -07:00
bhagwan
07e34d2bac fix: preview/actions for paths that contain ':' (closes #453) 2022-06-19 13:30:21 -07:00
bhagwan
52326a6444 fix(tags): error E5560 when tags are under $HOME (#452) 2022-06-16 07:00:30 -07:00
bhagwan
7bb4973246 chore(grep): rename opt 'continue_last_search' -> 'resume' 2022-06-14 17:35:27 -07:00
bhagwan
ae99fed33f fix(live_grep_native): resume query double escape (closes #451) 2022-06-14 16:41:52 -07:00
bhagwan
86804f7462 feat(actions): do not require 'default' action (#449) 2022-06-13 10:48:11 -07:00
bhagwan
3ce5eaca0b feat(icons): option to globally control file|git icons (#188) 2022-06-13 09:52:52 -07:00