aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua
Commit message (Collapse)AuthorAge
...
* lsp: only send buf requests to servers that support the request (#12764)francisco souza2020-10-25
| | | | | | | | | | | | | Refactors how required capabilities are detected and validated, and make sure requests are only sent to clients that support it (and only fail if no clients support the provided method). The validation happens at the buf_request level, because we assume that if someone is sending the request directly through the client, they know what they're doing. Also, let unknown methods go through. This is extracted from #12518 and closes #12755. Co-authored-by: francisco souza <fsouza@users.noreply.github.com>
* lsp: Fix "client has shut down" errors during initializing (#13103)Mathias Fußenegger2020-10-22
| | | | | | | | | | Language servers can already send log messages to the client while the server is still being initialized. This currently leads to "client has shut down" messages which are confusing to the user as the server is properly starting. To fix this this changes the `get_client_by_id` method to also return a client if it is still initializing.
* Merge pull request #13043 from tkuneck/fix-min-float-win-sizeJan Edmund Lazo2020-10-17
|\ | | | | [RDY] Opts.wrap_at is sometimes a bool, ensure it falls back to a valid num…
| * Opts.wrap_at is sometimes a bool, ensure it falls back to a valid number in ↵Tony Kuneck2020-10-04
| | | | | | | | the call to math.min
* | Merge pull request #12053 from tjdevries/tjdevries/nicer_validateTJ DeVries2020-10-17
|\ \ | | | | | | vim.validate(): include stacktrace in message
| * | test/vim.validate(): assert normalized stacktraceJustin M. Keyes2020-10-05
| | | | | | | | | | | | | | | | | | | | | - The previous commit lost information in the tests. Instead, add some more "normalization" substitutions in pcall_err(), so that the general shape of the stacktrace is included in the asserted text. - Eliminate contains(), it is redundant with matches()
| * | vim.validate(): include stacktrace in messageTJ DeVries2020-10-05
| |/
* | treesitter: allow multiple highlighters per bufferThomas Vigouroux2020-10-12
| |
* | treesitter: allow custom parser for highlighterThomas Vigouroux2020-10-12
| | | | | | | | | | | | | | | | | | | | | | Also allow to get parser ranges. This will be useful for language injection, allowing us to tweak the parser's ranges on the fly. Update runtime/lua/vim/treesitter.lua Co-authored-by: Paul Burlumi <paul@burlumi.com>
* | treesitter: runtime queriesThomas Vigouroux2020-10-11
| | | | | | | | | | | | | | | | | | | | | | | | | | Runtime queries just work like ftplugins, that is: - Queries in the `after` directory are sourced _after_ the "base" query - Otherwise, the last define query takes precedence. Queries can be found in the `queries` directory. Update runtime/lua/vim/treesitter/query.lua Co-authored-by: Paul Burlumi <paul@burlumi.com>
* | api: multiple decoration providers at onceBjörn Linse2020-10-10
|/
* LSP: Fix separator width on hover (fixes #13006, #12998) (#13007)Christian Clason2020-09-30
| | | | * fix insert_separator conditional * only draw separator over wrapped width
* treesitter: add string parser (#13008)Thomas Vigouroux2020-09-30
|
* lsp: Add vim.lsp.buf.range_code_action() (#12962)notomo2020-09-24
| | | | | Allows to execute code_action for a given range. :'<,'>lua vim.lsp.buf.range_code_action()
* lsp: Handle ContentModified the same way as RequestCancelled (#12803)Rasmus Ishøy Michelsen2020-09-22
| | | | | * Added the ContentModified error to be hidden from users, like RequestCancelled * Fixed tests (and ill-formed lua code) * Simplified if-expression
* lsp: remove popup No signature available. (#12915)Raphael2020-09-18
| | | | | | | | | | | | * lsp: remove popup No signature available. If no signatures. we shouldn't popup No signature available ..It will make noise when use ` api.nvim_command("autocmd CompleteDone <buffer> lua vim.lsp.buf.signature_help()")` * fix ci test failed remove whitespace * print message when no signature help * Add comment
* lsp: fix failed switch window error (#12900)Raphael2020-09-14
| | | | | * fix failed switch window error * checks if window already exists
* doc: Add docs for uri functions (#12887)TJ DeVries2020-09-14
|
* luahl: global the luahlBjörn Linse2020-09-13
|
* fix: use luahl in treesitterThomas Vigouroux2020-09-13
|
* lsp: fix lsp.buf.formatting_sync() null response (#12752)beardedsakimonkey2020-09-12
| | | Co-authored-by: tim apple <tim@tims-MacBook-Pro.local>
* lsp: Fix parameter markdown rendering for signature help (#12832)Xuyuan Pang2020-09-12
|
* wip trying to fix the highlighterThomas Vigouroux2020-09-09
|
* treesitter: use new on_bytes interfaceBjörn Linse2020-09-09
| | | | | | | | | | This will significantly reduce the parsing work needed e.g. when rehighlighting after every keypress in insert mode. Also add safety check for tree-sitter trying to read past the end of a line. This can happen after we sent an incorrect buffer update.
* treesitter: revert wrong optimization in highlightsThomas Vigouroux2020-09-09
|
* Merge pull request #12858 from kyazdani42/fix/no-ts-hl-without-query-valueThomas Vigouroux2020-09-06
|\ | | | | treesitter: check hl group exists before passing it in nvim_get_hl_id_by_name
| * apply bfredl suggestionkiyan422020-09-06
| |
| * treesitter: check hl group exists before passing it in nvim_get_hl_id_by_namekiyan422020-09-05
| |
* | lint: just bit twiddlin'Björn Linse2020-09-06
| |
* | treesitter: simplify match_predsThomas Vigouroux2020-09-06
| |
* | treesitter: use lua-match? instead of match?Thomas Vigouroux2020-09-06
| |
* | fix(highlight): compare rows vs columns in range highlight check (#12852)Steven Sojka2020-09-05
|/
* Merge pull request #12847 from nvim-treesitter/ts-list-predicatesBjörn Linse2020-09-04
|\ | | | | treesitter: allow to list supported predicates
| * treesitter: allow to list supported predicatesThomas Vigouroux2020-09-04
| |
* | treesitter: update to use buf_set_extmarkThomas Vigouroux2020-09-03
|/
* Merge #12468 'lsp: logging'Justin M. Keyes2020-09-01
|\
| * lsp: add key name to the output log valueHirokazu Hata2020-08-26
| | | | | | | | Unless we look at the code every time, we will not know what the value is, so add the key name.
| * lsp: remove output log at rpc.notifyHirokazu Hata2020-08-26
| | | | | | | | Since "rpc.send.payload" outputs the log with almost the same contents, delete the output here.
* | lsp/make_position_param(): handle empty buffer #12825Gıyaseddin Tanrıkulu2020-09-01
| | | | | | | | | | | | | | | | | | | | | | Fix #12623 problem: nvim_buf_get_lines(0) returns empty during startup, where no buffers are loaded yet. solution: return empty object Happens during startup, where buffer may not be loaded yet, because... `source_startup_scripts()` is done before `edit_buffers()`: https://github.com/neovim/neovim/blob/9bb552875d205d2f869c66137563f93b77a6d08e/src/nvim/main.c#L362 https://github.com/neovim/neovim/blob/9bb552875d205d2f869c66137563f93b77a6d08e/src/nvim/main.c#L480
* | treesitter: avoid escaping complete query stringsStephan Seitz2020-08-31
| | | | | | | | | | Escape "\\" only for `vim-match?` not for `match?` Fixes #12595
* | docs, remove 'guifontset' #11708Justin M. Keyes2020-08-31
| | | | | | | | | | | | | | | | | | | | | | | | | | - remove redundant autocmd list This "grouped" list is useless, it only gets in the way when searching for event names. - intro.txt: cleanup - starting.txt: update, revisit - doc: `:help bisect` - mbyte.txt: update aliases 1656367b90bd. closes #11960 - options: remove 'guifontset'. Why: - It is complicated and is used by almost no one. - It is unlikely to be implemented by Nvim GUIs (complicated to parse, specific to Xorg...).
* | lsp: Fix bad sortText comparison (#12485)Anmol Sethi2020-08-30
|/ | | | | | The spec indicates we have to fallback to comparing by label if sortText is falsy. Closes #12431
* Add FIXMEsPatrice Peterson2020-08-23
|
* Add docs for most vim.lsp methodsPatrice Peterson2020-08-23
| | | | Most of the lsp.log will be addressed in a separate PR.
* Merge pull request #12739 from vigoux/ts-refactor-predicatesTJ DeVries2020-08-14
|\ | | | | treesitter: refactor
| * treesitter: allow to force predicate additionThomas Vigouroux2020-08-13
| |
| * treesitter: add predicate negationThomas Vigouroux2020-08-13
| |
| * treesitter: add and test vim-match? predicateThomas Vigouroux2020-08-13
| |
| * treesitter: add contains? predicateThomas Vigouroux2020-08-13
| |
| * treesitter(docs): update and refresh docsThomas Vigouroux2020-08-13
| |