aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim
Commit message (Collapse)AuthorAge
...
* LSP: Refine formatting tabSize #11834Jesse-Bakker2020-02-10
| | | | | | | | | | | | Use the logic explained in the softtabstop help section for defining the tabSize parameter in formatting requests. This means that: - if softtabstop is 0, tabstop is used - if softtabstop < 0, shiftwidth is used - if softtabstop > 0, softtabstop is used When inserting spaces instead of tabs, softtabstop is used in vim. Therefor it would be more logical to use it when formatting instead of the current tabstop.
* treesitter: use internal "decorations" bufferBjörn Linse2020-02-10
|
* lsp: Support text edit on inactive buffer (#11843)Mathias Fußenegger2020-02-10
| | | | | | | | | Using `vim.lsp.buf.rename()` can result in receiving a TextEdit that affects a file for which there is no active or loaded buffer. In that case `api.nvim_buf_get_lines(...)` returned an empty result, leading to an error. Closes https://github.com/neovim/neovim/issues/11790
* LSP: set InitializeParams.rootPath value #11838Hirokazu Hata2020-02-08
| | | InitializeParams.rootPath is deprecated now. But some language servers still use it.
* treesitter: add standard &rtp/parser/ search path for parsersBjörn Linse2020-02-07
|
* LSP: show diagnostic in qf/loclist #11777Matthieu Coudron2020-01-28
| | | | | instead of the content of the file at this line. ref https://github.com/neovim/nvim-lsp/issues/69
* terminal: absolute CWD in term:// URI #11289Chris LaRose2020-01-26
| | | | | | | | | This makes it possible to restore the working directory of :terminal buffers when reading those buffers from a session file. Fixes #11288 Co-authored-by: Justin M. Keyes <justinkz@gmail.com>
* doc [ci skip] #11656Justin M. Keyes2020-01-12
|
* LSP: highlight groups test, docJustin M. Keyes2020-01-08
|
* LSP: differentiate diagnostic underline by severityAlvaro Muñoz2020-01-08
|
* LSP: place hover window by vertical space #11657Ville Hakulinen2020-01-03
| | | | Make the hover window position itself vertically wherever is the most space available.
* lua: metatable for empty dict valueBjörn Linse2020-01-01
|
* LSP: eliminate lsp.print_debug_info…()Justin M. Keyes2019-12-31
| | | | | Reduce API surface. We should not add functions unless they are really needed. Users should be nudged to use vim.inspect() directly.
* LSP: eliminate lsp.stop_all_clients()Justin M. Keyes2019-12-31
| | | | | | Reduce API surface. We don't need so many variations of functions. Too many functions means verbose, largely redundant documentation, tests, and cognitive burden.
* gen_vimdoc.py: generate LSP docsJustin M. Keyes2019-12-31
|
* Revert "runtime: Add vim.lsp.get_client_by_name" #11623Ashkan Kiani2019-12-29
| | | reverts 680693e263576e34d5947c43ab0ae3ff0ebfeab5 #11603
* runtime: Add vim.lsp.get_client_by_name (#11603)Hirokazu Hata2019-12-28
| | | | Since the client name is more obvious than the client id for the user, add an API to get the lsp client by the client name.
* LSP: Handle rpc RequestCancelled specifically. (#11606)Ashkan Kiani2019-12-24
| | | | | | | This was creating extra noise in errors that we should've been handling internally. Fixes #11515
* tree-sitter: implement query functionality and highlighting prototype ↵Björn Linse2019-12-22
| | | | [skip.lint]
* LSP: Use async completion for omnifunc. (#11578)Ashkan Kiani2019-12-20
|
* LSP: Improve the display of the default hover callback. (#11576)Ashkan Kiani2019-12-20
| | | Strips the code blocks from markdown and does syntax highlighting.
* LSP: fix omnifunc findstart (#11522)Mike Hartington2019-12-20
|
* LSP: Add jump when calling gotodef (#11521)Jakub Łuczyński2019-12-07
|
* Add vim.startswith and vim.endswith (#11248)Ashkan Kiani2019-12-01
|
* lsp: allow the user to config LspDiagnosticError etc by standard meansBjörn Linse2019-11-28
|
* LSP: Move default buf callbacks to vim.lsp.callbacks (#11452)Ashkan Kiani2019-11-26
| | | | | | | - In the process, refactored focusable_preview to a util function. - Add text for locations_to_items of the current line. - Improve location callback to handle multiple return values by using set_qflist. - Remove update_tagstack and leave note for future travelers.
* doc + extmarks tweaks #11421Justin M. Keyes2019-11-25
| | | | - nvim_buf_get_extmarks: rename "amount" => "limit" - rename `set_extmark_index_from_obj`
* Bring vim into local scopeAshkan Kiani2019-11-24
|
* Add support for textDocument/references.Ashkan Kiani2019-11-24
| | | | | | Add set_qflist and set_loclist. - Also add locations_to_items, which calculates byte offsets for character positions in files and avoids unnecessary operations.
* Merge branch 'master' into lsp-followupAshkan Kiani2019-11-24
|\
| * Lua: vim.env, vim.{g,v,w,bo,wo} #11442Ashkan Kiani2019-11-24
| | | | | | | | | | | | | | | | - Add vim variable meta accessors: vim.env, vim.{g,v,w,bo,wo} - Redo gen_char_blob to generate multiple blobs instead of just one so that multiple Lua modules can be inlined. - Reorder vim.lua inclusion so that it can use previously defined C functions and utility functions like vim.shared and vim.inspect things. - Inline shared.lua into nvim, but also keep it available in runtime.
* | UI tweaks.Ashkan Kiani2019-11-23
| | | | | | | | | | | | - Hide diagnostics on client exit - Stop insert on popup focus. - Hide popup on insertchar (for signature_help)
* | Improve the character_offset code.Ashkan Kiani2019-11-22
| |
* | Improve performance of util.set_lines + bugfixAshkan Kiani2019-11-22
| | | | | | | | | | Also permit character_offset for col past the end of line (useful in range formatting).
* | Fix encoding translation in other places.Ashkan Kiani2019-11-21
| |
* | Remove comments.Ashkan Kiani2019-11-21
| |
* | Fix position params for encoding.Ashkan Kiani2019-11-21
| |
* | Account for character length in jump position.Ashkan Kiani2019-11-21
| |
* | Fix hovers staying on bufhiddenAshkan Kiani2019-11-21
| |
* | UpdatesAshkan Kiani2019-11-21
| | | | | | | | | | | | | | | | - Use correct implementation of text_edits. - Send indent options to rangeFormatting and formatting. - Remove references to vim bindings and filetype from lsp.txt - Add more examples to docs. - Add before_init to allow changing initialize_params.
* | Merge remote-tracking branch 'origin/master' into lsp-followupAshkan Kiani2019-11-21
|\|
| * lsp: transmit "\n" after last line when 'eol' is setBjörn Linse2019-11-21
| | | | | | | | | | Otherwise some servers like clangd will emit spurious "no newline at end of file" warnings.
* | Remove resolve_bufnr/lualintAshkan Kiani2019-11-20
| |
* | Use the apply_text_edits from util.Ashkan Kiani2019-11-20
| |
* | Fix reference in rename.Ashkan Kiani2019-11-20
| |
* | Add full text_edit implementation.Ashkan Kiani2019-11-20
| | | | | | | | | | | | | | | | - Implements textDocument/formatting, textDocument/rangeFormatting, workspace/applyEdit. TODO: - still has edge cases around replacement probably. Only tested with inserts on the same position.
* | Extend list_extend to take start/finish.Ashkan Kiani2019-11-20
| |
* | Use err_message in default_callbacksAshkan Kiani2019-11-20
| |
* | Satisfy lualint.Ashkan Kiani2019-11-20
| |
* | Fix rename support.Ashkan Kiani2019-11-20
| |