Commit Graph

41 Commits

Author SHA1 Message Date
Simon Hauser
4b3efd2341 fix: lsp_workspace_symbols (#1535) 2021-12-02 18:00:26 +01:00
Chinmay Dalal
7462999202 fix: make lsp_* async (#1506) 2021-12-02 07:51:13 +01:00
klausweiss
b2f16c788e fix: LSP code actions not working for some language servers (#1381) 2021-11-13 14:11:08 +01:00
Rafael Delboni
b5c63c6329 fix: Bug with nil action error (#1340)
only affects 0.5.1
2021-10-12 23:17:42 +02:00
fdschmidt93
c19eae901c feat: filtering for dynamic workspace symbols (#1336)
* enable `symbols` filtering opt for builtin.dynamic_workspace_symbols
2021-10-12 18:48:55 +02:00
Simon Hauser
ec6c13fc09 fix: code action for rust analyzer (#1311) 2021-10-07 13:49:14 +02:00
Jose Alvarez
a005e58a48 fix(lsp): check if action.command.arguments is nil (#1274) 2021-09-22 08:37:45 +02:00
Matsu
aaffa84ebb feat: Remove version field if zero from codeaction calls (#738)
should fix code actions for jdtls

Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>
2021-09-15 18:31:51 +02:00
Rodrigodd
d022ccaf11 feat: lsp type definitions (#1224) 2021-09-12 11:36:28 +02:00
TJ DeVries
162cf7b534 fix(lsp): Handle new signature for lsp handlers 2021-09-05 21:07:41 -04:00
TJ DeVries
a97af306c4 feat(performance): Major performance improvements using async v2 from @oberblastmeister (#987)
* start: Working w/ async jobs

* short circuit to using bad finder if you pass writer.
2021-08-20 11:11:24 -04:00
Jan Steinke
615efe666b Allow range parameters on command parser (#1123) 2021-08-19 19:11:22 +02:00
Marten Trip
06e55d3b3a fix: builtin list_or_jump now handles non list replies from the server (#1101)
fix for servers such as zls and clojure_lsp
2021-08-11 20:03:31 +02:00
zeertzjq
d7cdfcbeb6 feat: add option jump_type to lsp_definitions and lsp_implementations (#1077) 2021-08-04 22:33:13 +02:00
Dhruv Manilawala
aa7c13ea36 fix: escape newlines in code action title (#1012) 2021-08-04 22:16:18 +02:00
Simon Hauser
79644ab677 chore: use stylua for formatting (#1040)
* chore: stylua job and config

* reformat with stylua
2021-07-23 11:42:37 -04:00
caojoshua
d5a8e48aa6 Consistent filepath display and code cleanup. (#839)
BREAKING CHANGE: see :help telescope.changelog-839 for more information

Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
2021-07-08 10:30:44 +02:00
JINNOUCHI Yasushi
0c1bc129da chore: use plenary.strings and remove strings functions from utils (#690)
Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
2021-06-14 20:47:33 +02:00
fdschmidt93
e27c87f88a feat: add filtering by symbol(s) to lsp_{document,workspace}_symbols (#903) 2021-06-10 23:10:18 +02:00
William Boman
88f7b27222 handle errors from buf_request_sync (#819) 2021-05-06 23:00:31 +03:00
William Boman
3adeab2bed fix: support multiple clients in lsp code actions (#722)
* fix: support multiple clients in lsp code actions

* no goto

* reduce diff a bit

* use displayer, also include lsp client name for each entry

* review comments
2021-04-20 17:48:29 -07:00
Viktor Kojouharov
13dae8c4d9 lsp: Implement lsp.implementations similar to lsp.definitions (#743)
Fixes #730
2021-04-20 17:31:43 -07:00
oberblastmeister
253d3aaa6b added a new DynamicFinder (which can be used with rust_analyzer) (#705)
* started tree finder

* made tree more ergonmic

* deleted unneeded comments

* added stack root and node

* added preprocessing

* using staticfinder instead of separate finder, custom entry maker

* added selections and remember

* removed unused stuff

* fixed warnings

* fixed remember and selections pop

* started branch

* added go function

* changed up test

* removed root parameter from go function

* changed back to not do_close

* removed node and leaf classes

* removed stack class instead for table.insert and table.remove

* fixed warning

* started branch

* added better preprocessor and tree class

* started some tests

* finished making tests pass

* cleaned up

* fixed make entry and updated example

* started

* added some stuff

* deleted uneeded stuff

* added cancelable

* changed workspace requester

* use better cancellation mechanism

* removed accidental stuff

* removed useless print

* delete more useless stuff

* rename to dynamic

* added request cancellation

* CHECK IF NIL

* removed unused

* added trash global variable
2021-04-13 14:39:14 -04:00
ovikk13
89a6161c81 Fix #707: lsp_workspace_symbols add support for multiple clients. (#718) 2021-04-03 20:11:38 +03:00
oberblastmeister
ff428c9187 feat: lsp definitions (#631)
* added lsp definitoins

* don't call locations_to_items when there is one

Co-authored-by: Jae-Won Chung <jaywonchung@snu.ac.kr>

* added missing end

* added description

* added to feature map

* Update lua/telescope/builtin/lsp.lua

Co-authored-by: fdschmidt93 <39233597+fdschmidt93@users.noreply.github.com>

* Update lua/telescope/builtin/lsp.lua

Co-authored-by: Jae-Won Chung <jaywonchung@snu.ac.kr>

Co-authored-by: Jae-Won Chung <jaywonchung@snu.ac.kr>
Co-authored-by: fdschmidt93 <39233597+fdschmidt93@users.noreply.github.com>
2021-03-09 14:17:56 -05:00
fdschmidt93
908752fc67 feat: workspace diagnostics, jump to and improved styling (#599)
Changes: `Telescope lsp_diagnostics` is now `Telescope lsp_document_diagnostics`
New: `Telescope lsp_workspace_diagnostics`

Co-authored-by: Fabian David Schmidt <fabian.david.schmidt@hotmail.com>
Co-authored-by: elianiva <dicha.arkana03@gmail.com>
2021-03-04 15:01:17 +01:00
fdschmidt93
db7615578b feat: lsp diagnostics and prefiltering by entry attribute (#543)
prefiltering for lsp_document_symbols and lsp_workspace_symbols.
example: type `:var:` to show all vars
2021-03-03 22:33:03 +01:00
TJ DeVries
0fef4c3e17 fix: remove gotos because this breaks lua 5.1 (#583) 2021-03-03 17:51:44 +01:00
Simon Hauser
ca92ec1a83 fix: a lot of small things and adds more customization for caret (#554)
Attention:
prompt_prefix will no longer add a space at the end. So if you still want a space at the end make sure your configuration has one.
The default should not be changed. So if you haven't copied prompt_prefix in your config this doesn't affect you.

Feat:
- prompt prefix does no longer always end with space
- selection_caret configurable. Default: `> `
- result_prefix configurable. Default: `  `
- more actions for git_branches
  - <c-t> does track the branch
  - <c-r> does rebase branch
  - also added delete branch action but not configured. See readme on how to do that

Fixes:
- fix docgen ci
- Better error for lsp_workspace_symbols
- better formatting for CONTRIBUTING.md
- move from systemlist to plenary.job
- git branch now supports checkout on remote branches
2021-02-27 16:26:25 +01:00
TJ DeVries
d7c02e3b52 feat: Action improvements (#472)
* feat: replace_map

* feat: Add action_set and action_state

* fix: Move all actions.get_ to action_state.get_

* fix: replace all internal references of _goto_file_selection_edit

* feat: add some docs

* fix: lint

* feat: actions.select

* remove mentions and usage of goto_file_selection APIs

* feat: special case attach_mappings to be overridable and defaultable

* Having goto_file_selection mappings will cause a error

as well as replacing deprecated goto_file_selection methodes

For config and replacing use this instead:
- actions.select_default
- actions.select_horizonal
- actions.select_vertical
- actions.select_tab

Only replacing:
- actions.set.edit -- for replacing all select functions

* adds actions.state.select_key_to_edit_key

Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
2021-02-22 11:30:57 -05:00
anott03
5995a8be8f Undo #465 (#469)
We have broke all extension that do some sort of goto_file_selection:replace

Problem described here: https://github.com/nvim-telescope/telescope.nvim/pull/465#issuecomment-767831897
Possible solution: https://github.com/nvim-telescope/telescope.nvim/pull/465#issuecomment-767808213
2021-01-27 17:22:11 +01:00
anott03
ccbb7f5638 fix: move to actions.select as default action (#465) 2021-01-25 19:20:01 +01:00
tamago324
e555cd375f feat: all entry_makers are now overridable and icons for builtin.buffers (#364) 2020-12-27 17:15:52 +01:00
Senghan Bright
76f94588d3 LSP check capabilities (#356)
* check server capabilities before using LSP finders

* client indices do not always start at [1]

* succeed on first supported client

* use apply_checks method

* removed debug comment

* rename mappings table
2020-12-20 10:46:58 +01:00
Senghan Bright
084a30b8fa More colours (#351)
* add vim hl_groups for autocmds finder

* spacing

* add displayer/colouring for git_commits

* LSP colouring and restore filename for workspace symbols

* resolve review issues.

* fix: handle 'show_line', 'ignore_filename', 'hide_filename'

* fix lsp workspace defaults

* allow for setting show_line when ignore filename is true

* move lsp_doc_symbol lineinfo to 2nd column

* reformat treesitter display to match LSP

* use utility functions for setting opts defaults

* add fix-me note for unlikely configuration permutation

* use hl_chars format for inline lineinfo
2020-12-19 20:25:08 +01:00
Senghan Bright
68c5870345 Add more colour (#346)
* add colour to buffers finder

* new display function for LSP workspace/doc symbols

* add more hl_groups and opts paramter

* use make_display() for man_pages finder.

* use make_display for registers finder and add color

* don't use quickfix make_entry() for builtin finder

* make_entry() for builtin finder

* remove debug output

* revert change to internal.builtin finder

* fix_spacing
2020-12-18 15:41:55 +01:00
TJ DeVries
dfeebffd93 fix: Checks for next server on buffer 2020-12-14 11:41:16 -05:00
Simon Hauser
141dc6d55e ci: Add luacheck ci job (#317)
* Add luacheck ci job

* Fix most of the linting issues

* fixup: lint

Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>
2020-12-09 15:46:41 -05:00
Simon Hauser
c276db06e2 Feat: Opt in vim buffers for previewers (#298)
Enable with:
require('telescope').setup {
  defaults = {
    file_previewer = previewers.vim_buffer_cat.new,
    grep_previewer = previewers.vim_buffer_vimgrep.new,
    qflist_previewer = previewers.vim_buffer_qflist.new,
  }
}
2020-12-09 16:58:22 +01:00
windwp
16f11b6c27 feat: add lsp range code actions (#297)
https://github.com/neovim/neovim/pull/12962

authored by: @windwp
2020-11-28 09:16:17 +03:00
Simon Hauser
4a8ea7763e Refactor builtin (#287) 2020-11-26 08:16:58 +01:00