aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua
Commit message (Collapse)AuthorAge
...
| * | 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
| |
| * treesitter: refactor and use lua regexesThomas Vigouroux2020-08-13
| |
* | Remove unused function (#12719)Patrice Peterson2020-08-08
|/
* Revert "lsp: Fix text edits with the same start position (#12434)" (#12564)Andreas Johansson2020-07-30
| | | This reverts commit 44fe8828f06a22bc9aa3617a6fd8aae447a838de.
* Make the window `nomodifiable` when it's createdCédric Barreteau2020-07-20
|
* LSP: make the hover window nomodifiableCédric Barreteau2020-07-20
|
* doc: Add documentation for some `vim.lsp.buf` functions (#12552)cbarrete2020-07-19
| | | | | | | | | * Add documentation for some `vim.lsp.buf` functions * Add inline Lua documentation * Use generated documentation for LSP buffer functions Co-authored-by: Cédric Barreteau <>