aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* addressing reviewsMatthieu Coudron2020-03-01
|
* foldcolumn: allow auto:XMatthieu Coudron2020-02-29
| | | | | | | | Similar to signcolumn, allow foldcolumn to adapt itself to the number of folds. Regression: vim supports a maximum fdc of 12, this limits it to 9.
* Merge pull request #11910 from mfussenegger/references-ctxMatthieu Coudron2020-02-27
|\ | | | | LSP/references: Add context to locations returned by server
| * 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
* Merge pull request #11946 from bfredl/ts-syncBjörn Linse2020-02-26
|\ | | | | treesitter: update vendored tree-sitter runtime
| * treesitter: update vendored tree-sitter runtimeBjörn Linse2020-02-25
|/ | | | | | | | | | tree-sitter/tree-sitter commit 6cb8d24de2d99c4c50c9a0fd1e719ca5b3abc87f Included files are: lib/include/tree-sitter/*.h lib/src/*.[ch] lib/src/unicode/* LICENSE
* TUI: reset background color before scroll #11909Jakub Łuczyński2020-02-23
| | | fixes #11893
* Merge pull request #11890 from cryptomilk/master-gcc10-fno-commonBjörn Linse2020-02-23
|\ | | | | Fix issues revealed by gcc10 setting -fno-common by default
| * cmake: Check for -fno-common and use it if availableAndreas Schneider2020-02-23
| |
| * nvim: Correctly setup global channelsAndreas Schneider2020-02-23
| | | | | | | | | | | | | | | | | | As gcc10 uses -fno-common by default, global variables declared with the same name more than once is not allowed anymore revealing this issue. We need to define it as extern to access it. See also https://bugzilla.redhat.com/show_bug.cgi?id=1799680
| * nvim:msgpack: Correctly set up global ch_before_blocking_eventsAndreas Schneider2020-02-23
| | | | | | | | | | | | | | gcc10 builds with -fno-common by default. This mean you can't define a global variable with the same name twice. See also https://bugzilla.redhat.com/show_bug.cgi?id=1799680
| * nvim: Fix enum declaration of RemapValuesAndreas Schneider2020-02-23
| | | | | | | | | | | | | | | | | | | | | | Instead of declaring an enum, this creates a global variable. As gcc10 uses -fno-common by default, global variables declared with the same name more than once is not allowed anymore revealing this issue. Each time this header is included, we define the enum name as a global variable. See also https://bugzilla.redhat.com/show_bug.cgi?id=1799680
| * nvim:viml: Fix enum declaration of ExprParserFlagsAndreas Schneider2020-02-23
| | | | | | | | | | | | | | | | | | | | | | Instead of declaring an enum, this creates a global variable. As gcc10 uses -fno-common by default, global variables declared with the same name more than once is not allowed anymore revealing this issue. Each time this header is included, we define the enum name as a global variable. See also https://bugzilla.redhat.com/show_bug.cgi?id=1799680
| * nvim:eval: Fix enum declaration for ListLenSpecialsAndreas Schneider2020-02-23
| | | | | | | | | | | | | | | | | | | | | | Instead of declaring an enum, this creates a global variable. As gcc10 uses -fno-common by default, global variables declared with the same name more than once is not allowed anymore revealing this issue. Each time this header is included, we define the enum name as a global variable. See also https://bugzilla.redhat.com/show_bug.cgi?id=1799680
* | Merge pull request #11934 from h-michael/restoreBjörn Linse2020-02-23
|\ \ | |/ |/| clang/scan-build: restore required code
| * clang/scan-build: restore required codeHirokazu Hata2020-02-23
| | | | | | | | ref: https://github.com/neovim/neovim/pull/11900#discussion_r381860165
* | CI/travis: workaround broken homebrewJustin M. Keyes2020-02-22
| | | | | | | | | | | | | | | | | | | | | | | | 6.70s$ rvm $brew_ruby do brew bundle --verbose --global /usr/local/bin/brew tap homebrew/bundle ==> Tapping homebrew/bundle Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle'... Tapped (102 files, 251.1KB). Error: Unknown command: bundle https://travis-ci.community/t/macos-build-fails-because-of-homebrew-bundle-unknown-command/7296/10 https://twitter.com/AJenbo/status/1175976531480457216
* | PVS/V618: fix printf-style args #11888Justin M. Keyes2020-02-22
|/ | | | We intentionally do not translate API errors. ref: https://github.com/neovim/neovim/issues/6150
* lsp/completion: show duplicates in completion popup #11920Mathias Fußenegger2020-02-21
| | | | | | | | | | | | | Allow duplicates so that in languages with overloaded functions it will show all signatures. E.g. instead of having a single (last one wins) add(int index, String element) It shows all signatures: add(String e) : boolean add(int index, String element) : void
* doc: LOG_CALLSTACK: mention "-no-pie" [ci skip]Jakub Łuczyński2020-02-21
| | | | close #11898
* Merge #11914 'vim-patch:8.1.{1122,1868}'Justin M. Keyes2020-02-20
|\
| * vim-patch:8.1.1122: char2nr() does not handle composing charactersJan Edmund Lazo2020-02-20
| | | | | | | | | | | | | | | | Problem: char2nr() does not handle composing characters. Solution: Add str2list() and list2str(). (Ozaki Kiichi, closes vim/vim#4190) https://github.com/vim/vim/commit/9d40128afd7fcd038ff6532722b55b1a8c189ce8 'utf8' optional param is noop unlike Vim.
| * vim-patch:8.1.1868: multi-byte chars in 'listchars' fail with 'linebreak' setJan Edmund Lazo2020-02-20
|/ | | | | | | | Problem: Multibyte characters in 'listchars' don't work correctly if 'linebreak' is also enabled. (Martin Tournoij) Solution: Make it work correctly. (Christian Brabandt, closes vim/vim#4822, closes vim/vim#4812) https://github.com/vim/vim/commit/69cbbecf548f390197259ca30cfe147c3e59ce5a
* quickfix.c: Fix vimgrep regression #11907cballam2020-02-19
| | | | | | | Fix ex_vimgrep to properly ignore filetype when running vimgrep. This restores vimgrep to behaviour before function refactoring. fix #9842 fix #11856
* Merge pull request #11908 from bfredl/qf_msg-fixupBjörn Linse2020-02-19
|\ | | | | test: always use "set more" with :digraph test
| * test: always use "set more" with :digraph testBjörn Linse2020-02-19
|/ | | | otherwise we risk the same issue as with ex_cmds/digraphs_spec.lua
* Merge #11895 'lsp: fix textDocument/completion handling'Justin M. Keyes2020-02-18
|\
| * lsp: make functions private and use filter functionHirokazu Hata2020-02-19
| |
| * lsp: respect the sort order if there is sortTextHirokazu Hata2020-02-19
| |
| * lsp: fix textDocument/completion handlingHirokazu Hata2020-02-19
| | | | | | | | | | | | | | fix: #11826 Some lanuguage servers return complementary candidates whose prefixes do not match are also returned. So we exclude completion candidates whose prefix does not match. ex) Microsoft python-language-server, rust-analyzer
| * lua: move test helper function, map and filter, to vim.shared moduleHirokazu Hata2020-02-18
| |
* | clang/scan-build: fix dead stores #11900Hirokazu Hata2020-02-18
| |
* | Merge #11887 'loop_close: close all handles'Justin M. Keyes2020-02-18
|\ \ | |/ |/|
| * loop_close: close all handlesJustin M. Keyes2020-02-17
| | | | | | | | | | | | | | | | | | | | - Move uv_stop(), it still causes a "leak" on exit somehow. - Tenatively restore `UV_RUN_DEFAULT`. It shouldn't hang since we clobber the handles via `uv_walk((h)=>uv_close(h))`. Although this still "leaks" on exit, it's faster than the 2-second timeout. fix #11820 fix #7376
| * loop_close: call uv_stop(), fix bugJustin M. Keyes2020-02-17
|/ | | | | | | | | | | | | | | | | - Call uv_stop(). - Restore `uv_loop_close` condition (braindead cosmetic change from a2efc9cf8b0f that caused uv_loop_close *not* to be called if wait=false, sorry). Not doing `uv_walk(() => uv_close)`: see source comment for explanation. fix #11820 fix #7376 Q: Should we restore use of `UV_RUN_DEFAULT`/`UV_RUN_ONCE` (removed in a2efc9cf8b0f)? A: The while-loop (hopefully) achieves the same purpose while avoiding a hang.
* loop_close: timout after 2 seconds #11821Justin M. Keyes2020-02-16
| | | | | never UV_RUN_DEFAULT ref #11820 ref #7376
* test: always dump logs on failure #11886Justin M. Keyes2020-02-16
| | | | | Whenever `eq()`, `ok()`, etc. fails, include log tail in the failure message. This helps to correlate log messages with a particular test failure.
* Merge #11873 from janlazo/vim-8.1.0786Justin M. Keyes2020-02-16
|\ | | | | vim-patch:8.0.1660,8.1.{43,786,1201,2129,2131,2187,2223,2259},8.2.{241,267}
| * vim-patch:8.2.0267: no check for a following cmd when calling a function failsJan Edmund Lazo2020-02-16
| | | | | | | | | | | | | | Problem: No check for a following command when calling a function fails. Solution: Also check for a following command when inside a try block. (closes vim/vim#5642) https://github.com/vim/vim/commit/e51bb17dd0d51384375830ee2a1df30c08121443
| * vim-patch:8.1.0043: ++bad argument of :edit does not work properlyJan Edmund Lazo2020-02-16
| | | | | | | | | | | | | | | | Problem: ++bad argument of :edit does not work properly. Solution: Return FAIL from get_bad_opt() only when there is no valid argument. (Dominique Pelle, Christian Brabandt, closes vim/vim#2966, closes vim/vim#2947) https://github.com/vim/vim/commit/7580849df9d6c7c515f5ed784019336d8a8ec0f0
| * vim-patch:8.0.1660: the terminal API "drop" command doesn't support optionsJan Edmund Lazo2020-02-16
| | | | | | | | | | | | Problem: The terminal API "drop" command doesn't support options. Solution: Implement the options. https://github.com/vim/vim/commit/333b80acf3a44e462456e6d5730e47ffa449c83d
| * vim-patch:8.1.1201: output of :command is hard to readJan Edmund Lazo2020-02-16
| | | | | | | | | | | | | | Problem: Output of :command is hard to read. Solution: Make some columns wider, some narrower. Truncate the command when listing all. https://github.com/vim/vim/commit/725310d89e1ba268bf410472b7de054c6c260161