aboutsummaryrefslogtreecommitdiff
path: root/runtime
Commit message (Collapse)AuthorAge
* lsp: callback for references now opens qf (#12171)Thore Weilbier2020-04-23
| | | | | | | | In contrast to other callbacks for LSP requests like `textDocument/documentSymbols`, does the one for references not open the quickfix window after the quickfix list was filled. This left the user in a situation he don't know what or if something had happen. Related to: neovim/neovim#12170
* lsp: do not assert even if the code does not exist in ErrorCodes (#11981)Hirokazu Hata2020-04-21
| | | | | | | | There is ErrorCodes in the LSP specification, but in ResponseError.code it is not used and the actual type is number. Some language servers response original error cods and this is valid spec. So we shouldn't assert even if the code does not exist in ErrorCodes. ref: https://microsoft.github.io/language-server-protocol/specifications/specification-current/#responseMessage
* lsp: textDocument/definition can return Location or Location[] (#12014)Khangal2020-04-21
| | | | | * https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_definition Co-authored-by: Khangal Jargalsaikhan <khangal.j@irbis.sg>
* doc: fix vim.lsp.stop_all_clients doc (#12055)Hirokazu Hata2020-04-21
|
* Merge pull request #11989 from Weypare/textEditMatthieu Coudron2020-04-20
|\ | | | | LSP/completion: add textEdit support
| * LSP/completion: Add completion text helper functionAndrey Avramenko2020-04-20
| |
| * LSP/completion: add textEdit supportAndrey Avramenko2020-03-06
| | | | | | | | | | According to lsp specification, value of insertText should be ignored if textEdit is provided.
* | lsp: export convert_signature_help_to_markdown_lines (#11950)Hirokazu Hata2020-04-19
| | | | | | This function is also useful for users to create their own `textDocument/signatureHelp` callback function.
* | lua: allow deepcopy of functions (#12136)Tristan Konolige2020-04-19
| |
* | lsp: replace the event that closes the signature help preview window from ↵Hirokazu Hata2020-04-18
| | | | | | | | | | | | InsertCharPre to CursolMovedI (#11954) In the case of InsertCharPre, it is inconvenient because the signature help is displayed when backspaced in insert mode, so change it to CursolMovedI.
* | LSP: fix breakage when severity isn't specified (#12027)Ghjuvan Lacambre2020-04-18
| | | | | | | | | | | | Before this commit, the LSP client would throw errors when messages without severity would be sent by the server. We make severity default to `Error` as a kludge before proper heuristics to discover the severity of a message are found.
* | Merge pull request #12141 from vigoux/treesitter_fixMatthieu Coudron2020-04-18
|\ \ | | | | | | | | | | | | | | | [RFC] Update treesitter runtime Get rid of our utf8proc dependency Note that we unconditionnally escape treesitter queries, might need to be revisited.
| * | treesitter: escape backslashes in queriesThomas Vigouroux2020-04-18
| | | | | | | | | | | | | | | | | | | | | | | | Treesitter changed their decoders and apparently thus causing this change. This decoder change happened on ee9a3c0ebb218990cf391ed987be7f2448c54a73.
* | | vim-patch:8.2.0589: .bsd file type not recognizedJan Edmund Lazo2020-04-17
|/ / | | | | | | | | | | Problem: .bsd file type not recognized. Solution: Recognize .bsd as BSDL. (Daniel Kho, closes vim/vim#5945) https://github.com/vim/vim/commit/0fc1288aefce25da0a2fb2a0aab75b0bd314403f
* | doc:Fix incorrect nvim config paths in documentation (#12134)Micah Halter2020-04-16
| | | | | | Updates remaining ~/.vim with ~/.config/nvim
* | lsp: provide a default for missing reference kind (#12127)George Zhao2020-04-16
| | | | | | | | | | | | | | Fix #12122 >Error executing vim.schedule lua callback: /usr/local/share/nvim/runtime/lua/vim/lsp/util.lua:560: Expected lua string Some lsp server(e.g. https://github.com/bash-lsp/bash-language-server) not have kind in reference, reference["kind"] is nil
* | win,runtime: Fix problem when win32yank was a symbolic link in WSL [skip ci] ↵erw72020-04-15
| | | | | | | | | | | | | | | | | | (#12124) On some versions of Windows, WSL is unable to execute symbolic links to Windows executables (microsoft/WSL#3999). As a workaround for that problem this changes to use resolve() on WSL if win32yank was a symbolic link. fixes #12113.
* | vim-patch:8.2.0549: user systemd files not recognizedJan Edmund Lazo2020-04-13
| | | | | | | | | | | | Problem: User systemd files not recognized. Solution: Add filetype patterns. (Kevin Locke, closes vim/vim#5914) https://github.com/vim/vim/commit/3b922f11380c7dbf94ee45bc09d688b772d9707f
* | vim-patch:8.2.0415: bsdl filetype is not detectedJan Edmund Lazo2020-04-13
| | | | | | | | | | | | Problem: Bsdl filetype is not detected. Solution: Add an entry in the filetype list. (Daniel Kho, closes vim/vim#5810) https://github.com/vim/vim/commit/40d235e7305ce6ff696e8301c62a41f1f07f8aca
* | netrw.vim: gx should ignore terminal buffers #12091Santos Gallegos2020-04-08
| | | | | | | | | | | | netrw thinks it's a remote file due the name of a terminal buffer (term://), but a terminal buffer isn't a file. Fixes https://github.com/neovim/neovim/issues/4612#issuecomment-600321171
* | api/ui: win_viewport event for visible range and cursor position in windowBjörn Linse2020-04-01
| |
* | vim.uri: fix uri_to_fname (#12059)Hirokazu Hata2020-03-30
| | | | | | | | | | fix: #12056 If the colon of the drive letter of windows is URI encoded, it doesn't match the expected pattern, so decode it first.
* | Merge pull request #11746 from Billy4195/add_wildmenu_keyMatthieu Coudron2020-03-28
|\ \ | | | | | | [RFC] Wildmenu support C-E and C-Y as popupmenu
| * | doc: Fix wildmenu doc inconsistencies and typosZantox2020-03-28
| | | | | | | | | | | | | | | Fix typos, capitalization to match block, and remove the angle brackets on the CTRL keys to match other documentation.
| * | doc: C-Y and C-E in wildmenu completionBilly Su2020-02-18
| | | | | | | | | | | | Add description of C-Y and C-E in wildmenu completion
* | | vim-patch:8.1.0864 Make 'scrolloff' and 'sidescrolloff' options window local ↵Will Eccles2020-03-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#11854) Problem: cannot have a local value for 'scrolloff' and 'sidescrolloff' Author: Bram Moolenar https://github.com/vim/vim/commit/375e3390078e740d3c83b0c118c50d9a920036c7
* | | Merge pull request #11927 from Jesse-Bakker/lsp-buf-versionBjörn Linse2020-03-16
|\ \ \ | | | | | | | | LSP: Use buffer version instead of changedtick for edits
| * | | Use buffer version instead of changedtick for editsJesse Bakker2020-02-27
| | | |
* | | | vim-patch:8.2.0360: yaml files are only recognized by the file extensionJan Edmund Lazo2020-03-07
| |_|/ |/| | | | | | | | | | | | | | Problem: Yaml files are only recognized by the file extension. Solution: Check for a line starting with "%YAML". (Jason Franklin) https://github.com/vim/vim/commit/8eab73132838e977092d7b46f70b4ecf6274fd6a
* | | lsp: make showMessage and logMessage callbacks different (#11942)Hirokazu Hata2020-03-02
| | | | | | | | | | | | According to the LSP specification, showMessage is what is displayed and logMessage is what is stored. Since these are different things, I devide the callback into those that match.
* | | Merge pull request #11716 from teto/folds_auto_backupMatthieu Coudron2020-03-02
|\ \ \ | | | | | | | | [RFC] foldcolumn autowidth
| * | | updating docMatthieu Coudron2020-03-02
| | | |
* | | | lua: add vim.tbl_len() #11889Hirokazu Hata2020-03-01
| | | |
* | | | vim-patch:8.1.1466: not updating priority on existing signJan Edmund Lazo2020-03-01
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Not updating priority on existing sign. Solution: Set the sign priority. Add a test. (Yegappan Lakshmanan) https://github.com/vim/vim/commit/58a7f87c8653b4cb5b0794b6b88e2ec140d3d2c3
* | | | vim-patch:8.1.0881: can execute shell commands in rvim through interfacesJan Edmund Lazo2020-03-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Can execute shell commands in rvim through interfaces. Solution: Disable using interfaces in restricted mode. Allow for writing file with writefile(), histadd() and a few others. https://github.com/vim/vim/commit/8c62a08faf89663e5633dc5036cd8695c80f1075
* | | | vim-patch:8.1.1510: a plugin cannot easily expand a command like done internallyJan Edmund Lazo2020-03-01
| | | | | | | | | | | | | | | | | | | | | | | | Problem: A plugin cannot easily expand a command like done internally. Solution: Add the expandcmd() function. (Yegappan Lakshmanan, closes vim/vim#4514) https://github.com/vim/vim/commit/80dad48c5095d30873a42ec82628bdb213125d8e
* | | | man.vim: Handle `man` errors when looking for man-pathsRob Pilling2020-02-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fallback to simply globbing the tag we're given. This matches the original behaviour of `man.vim`, prior to c6afad78d39aa. fixes #11794 closes #11918
* | | | Merge #11805 'vim-patch:8.1.0619'Justin M. Keyes2020-02-29
|\ \ \ \
| * | | | vim-patch:8.1.0619: :echomsg and :echoerr do not handle List and DictJan Edmund Lazo2020-02-29
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: :echomsg and :echoerr do not handle List and Dict like :echo does. (Daniel Hahler) Solution: Be more tolerant about the expression result type. https://github.com/vim/vim/commit/461a7fcfce3cd6414f990037e6468af3b5ccf119 Add lua functional tests for :echo,:echon,:echomsg,:echoerr because nvim did not port "test_" functions from Vim that modify internal state. Testing :echoerr via try/catch is sufficient.
* | | | lsp: add 'textDocument/documentSymbol’ callbackHirokazu Hata2020-03-01
| | | | | | | | | | | | | | | | Spec: https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_documentSymbol
* | | | lsp: add bufnr to callback function argumentsHirokazu Hata2020-02-28
|/ / / | | | | | | | | | | | | DocumentSymbol type doesn't have location field. So when we'll add 'textDocument/documentSymbol’ handler, we can't decide which file have we jump to.
* | | LSP: Remove diagnostic message handling in locations_to_itemsMathias Fussenegger2020-02-27
| | | | | | | | | | | | | | | `locations_to_items` is for turning `Location[]` into items, not for `Diagnostic[]`
* | | LSP/references: Add context to locations returned by serverMathias Fussenegger2020-02-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changes the `textDocument/references' callback to annotate the locations returned by the server with the content present at the locations range. The quickfix list then looks as follows: cr8/insert_fake_data.py|17 col 32| from .misc import parse_table, parse_version cr8/insert_fake_data.py|43 col 15| version = parse_version(r['rows'][0][0]) cr8/java_magic.py|8 col 22| from cr8.misc import parse_version cr8/java_magic.py|30 col 19| version = parse_version(fst) cr8/java_magic.py|33 col 16| return parse_version(version_str) Instead of: cr8/insert_fake_data.py|17 col 32| cr8/insert_fake_data.py|43 col 15| cr8/java_magic.py|8 col 22| cr8/java_magic.py|30 col 19| cr8/java_magic.py|33 col 16|
* | | Merge pull request #11880 from bfredl/tree-sitter-regexBjörn Linse2020-02-27
|\ \ \ | | | | | | | | add regex support in treesitter queries
| * | | lua: add regex support, and `@match` support in treesitter queriesBjörn Linse2020-02-26
| | | |
| * | | treesitter: redraw on changed queryBjörn Linse2020-02-26
| |/ /
* | | Add signs for Lsp diagnostics (#11668)Alvaro Muñoz2020-02-27
| | | | | | | | | | | | | | | | | | * Add signs for Lsp diagnostics * defer sign definition until init.vim is loaded
* | | LSP/hover: Do not throw away contents if first line is empty (#11939)Mathias Fußenegger2020-02-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | haskell-ide-engine sends `hover` payloads as follows: { contents = { kind = "markdown", value = "\n```haskell\nfoo :: Either String (Integer, Text)\n```\n`foo` *local*" }, range = { end = { character = 5, line = 57 }, start = { character = 2, line = 57 } } } `value` starts with `\n`. The logic in `convert_input_to_markdown_lines` threw away the whole information.
* | | add support to show diagnostics count in statusline (#11641)Alvaro Muñoz2020-02-26
| | | | | | | | | | | | | | | * add support to show diagnostics count in statusline * documentation
* | | LSP: implement documentHighlight (#11638)Alvaro Muñoz2020-02-26
|/ / | | | | | | | | | | | | | | * implement documentHighlight * fix bug * document highlight groups * use uppercase for help section title * documentation