83 Commits (5e4151d495a1c528496efa5d9a853bf2af4ac3db)

Author SHA1 Message Date
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
2 years ago
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
2 years ago
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'
2 years ago
bhagwan 7bb4973246 chore(grep): rename opt 'continue_last_search' -> 'resume' 2 years ago
bhagwan 57402a41ac fix(jump_to_single_result_action): when 'forced_uri' (closes #448) 2 years ago
bhagwan d02d6f2f6b feat(lsp|symbols): regex filtering option (#441)
also, rework how header string is constructed and display
document/workspace symbols query/regex in header string
2 years ago
bhagwan 343322108d fix(lsp): symbols when 'lsp.protocol.CompletionItemKind' is default 2 years ago
bhagwan 523962ae53 fix(lsp): symbol formatting on 'resume' 2 years ago
bhagwan 59069a393b feat(lsp): enable symbol formatting for 'live_workspace_symbols' 2 years ago
bhagwan 09e2b982fb feat(lsp): make symbol highlights configurable 2 years ago
bhagwan ea287de481 feat(lsp): use symbol icons and highlight using CmpItemKindXXX hls 2 years ago
bhagwan 033ffc986b lsp_live_workspace_symbols: fix query resume 2 years ago
Arsham Shirvani dd61e15199 ref(lsp): add server_capabilities support on 0.8
In neovim v0.8 the resolved_capabilities is deprecated and is replaced
by the server_capabilities. The capability property of the handlers
table is split into resolved_capability and server_capability, and in
the wrap_module_fncs is set back based on the neovim's version.
2 years ago
bhagwan 52dedd28d8 feat(lsp): added 'lsp_(incoming|outgoing)_calls' (closes #399) 2 years ago
bhagwan 1bf2a294c8 lsp_code_actions: use vim.diagnostic to acquire line diagnostics
diagnostics: remove LSP client attached test (#388)
2 years ago
Arsham Shirvani 5060b677e0 feat(lsp): add incoming call handler 2 years ago
bhagwan eb9f33b345 added `cwd` header display to LSP providers 2 years ago
bhagwan 59de53fbbe lsp_code_actions: 'deepcopy' fallback, 'ui_select' control opt (#353) 2 years ago
bhagwan ab19fda7da LSP: misc fixes for neovim nightly 2 years ago
bhagwan 5b7fb9fb50 fzf delimiter adjustments for fish shell 2 years ago
bhagwan 9a0f625804 normaize fzf FIELD INDEX EXPRESSION, see below:
- refactor fzf field index experssion and line field number options
- enable native fzf previewers (bat/cat/head) for all file/buffer providers
- buffers|lines|blines|tabs now respect default previewer
2 years ago
bhagwan 930cc5f487 added support for nvim-dap (#101) 2 years ago
bhagwan a487c6752f force LSP jumps to use 'vim.lsp.util.jump_to_location' (closes #336) 2 years ago
bhagwan 59fdcdc3e0 always use 'vim.ui.select' for code actions when neovim > 0.6 2 years ago
bhagwan f504b9b09a internal: send opts with 'code_actions.act' 2 years ago
bhagwan 7e7f6d8cc3 add offset_encoding to code_action apply_workspace_edit (#314) 2 years ago
bhagwan 4f8751db52 LSP prompt renamed to 'prompt_postfix' (closes #308) 2 years ago
bhagwan 95b63ef731 'jump_to_single_result_action' removed extra item in array 2 years ago
bhagwan 0637c1b686 add offset_encoding to LSP location APIs (closes #306) 2 years ago
bhagwan 79371f0d9f bugfix: "No diagnostics found" with neovim 0.6.1 (closes #292) 2 years ago
bhagwan 41b657e823 LSP diagnostics update for deprecations in neovim 0.6.1 2 years ago
bhagwan 21f19cac1a new option 'global_resume_query': split resume from typed query (#271) 2 years ago
bhagwan 1ece1ab09a added 'resume': will resume **any** list, custom or builtin (#241) 2 years ago
bhagwan 58031b63d9 internal: default option condition optimization 3 years ago
bhagwan 2d6967be4b LSP: properly set 'async = true' default for symbols 3 years ago
bhagwan 419a57a78f LSP: set 'async = false' on all but workspace/document symbols 3 years ago
bhagwan 92e21423a1 lsp_code_actions: acquire client only if needed to resolve action 3 years ago
bhagwan 100f62dee1 lsp_code_actions: resolve action for jdtls (ty Telescope!) 3 years ago
bhagwan 956a092e55 internal: removed unnecessary 'require' 3 years ago
bhagwan fa006b8d9f jdtls LSP code actions zero version field fix 3 years ago
bhagwan 056ee93169 globally apply fix from #197 (table ref copy overrides globals) 3 years ago
bhagwan e02451600a 'live_grep' freezes on large text files (#211) 3 years ago
bhagwan 471d853a9e LSP: fixed error message on LSP client failure 3 years ago
bhagwan 936c10dc71 async LSP: support multiple LSP clients attached to the same file 3 years ago
bhagwan 44abade325 clone code action options to prevent default act override (issue #197) 3 years ago
bhagwan 544d5eabc8 new preview scrollbar option and highlights, win|preview options rework 3 years ago
bhagwan e9c70a8d9f bugfix: code action not applied properly (closes issue #179) 3 years ago
bhagwan 7025700c66 properly detect LSP client after LSP restart (closes issue #174) 3 years ago
bhagwan 59d8f6eed5 add cursor location to jumplist (closes issue #147) 3 years ago
bhagwan a11f5eb9d4 rework fzf flags, close issue #149 3 years ago