Commit Graph

17193 Commits

Author SHA1 Message Date
TJ DeVries
901dd79f6a feat: add completion to ':lua' 2021-01-26 17:04:31 -08:00
Thomas Vigouroux
4d1fc167a8
Merge pull request #13828 from vigoux/ts-bump-c-runtime
deps(treesitter): bump C parser and runtime
2021-01-26 18:51:41 +01:00
Thomas Vigouroux
6d07d18f91
deps(treesitter): bump C parser and runtime
It's been a while since we bumped the C parser version, and a few ABI
versions have been realised since.
2021-01-26 15:17:10 +01:00
Jan Edmund Lazo
78f0f00cd5
Merge pull request #13820 from janlazo/vim-8.2.2392
vim-patch:8.2.{2392,2399,2402}
2021-01-25 21:20:14 -05:00
Michael Lingelbach
1a6d89eb90
lsp: match textDocument/didChange eol behavior (#13792)
We should be consistent in sending the EOL character to servers(I think). Julia expects this to match on bufwrite, or it crashes when vim appends the newline during the write process.
2021-01-25 17:52:40 +01:00
Jan Edmund Lazo
687ff6566a
vim-patch:8.2.2402: some filetypes not detected
Problem:    Some filetypes not detected.
Solution:   Detect Ruby Signature and Puppet related files. (Doug Kearns)
8323cab31c
2021-01-24 21:56:54 -05:00
Jan Edmund Lazo
69d1094271
vim-patch:8.2.2399: fold test fails in wide terminal
Problem:    Fold test fails in wide terminal.
Solution:   Adjust the test. (Dominique Pelle, closes vim/vim#7731, closes vim/vim#7739)
7cf0c114d6
2021-01-24 14:19:54 -05:00
Jan Edmund Lazo
2ce7e4e8a7
vim-patch:8.2.2392: fennel filetype not recognized
Problem:    Fennel filetype not recognized.
Solution:   Detect with pattern and hashbang. (Chinmay Dalal, closes vim/vim#7729)
402115f1c2
2021-01-24 14:15:16 -05:00
Matthieu Coudron
69103ff0cf
Merge pull request #13807 from spywhere/min-size-auto-sign
Auto sign column with minimum size support
2021-01-23 22:46:29 +01:00
Björn Linse
444e60ab39
Merge pull request #13819 from runiq/extmark_gravity_docs
Doc: Generate API docs for buf_set_extmark gravity
2021-01-23 20:29:45 +01:00
Patrice Peterson
08f2aa5917 Doc: Generate API docs for buf_set_extmark gravity
Cf. #13679
2021-01-23 19:32:18 +01:00
Michael Lingelbach
3a3e6742f9
lsp: clear diagnostics on client shutdown (#13788) 2021-01-23 17:43:06 +01:00
Jan Edmund Lazo
24b60322a2
Merge pull request #13818 from janlazo/vim-8.2.2379
vim-patch:8.2.{2375,2379,2384,2385}
2021-01-22 12:23:58 -05:00
Jan Edmund Lazo
30ef922f39
vim-patch:8.2.2385: "gj" and "gk" do not work correctly when inside a fold
Problem:    "gj" and "gk" do not work correctly when inside a fold.
Solution:   Move check for folding. (closes vim/vim#7724, closes vim/vim#4095)
e71996bd08
2021-01-22 09:03:44 -05:00
Björn Linse
93402606fa
Merge pull request #13603 from matveyt/master
Missing argument for package.loadlib()
2021-01-22 14:14:19 +01:00
matveyt
dd089c398c Missing argument for package.loadlib()
Allow for foo.bar.baz module name

Make luaopen_module() name compatible with Lua 5.1
2021-01-22 10:12:22 +01:00
Björn Linse
bdfd023f81
Merge pull request #13813 from notomo/fix-nvim-echo-clear
api(echo): should clear cmdline before echo
2021-01-22 09:59:02 +01:00
Björn Linse
b803bfa5aa
Merge pull request #13679 from chentau/gravity
Extmarks api: allow for gravity
2021-01-22 09:55:00 +01:00
Jan Edmund Lazo
b8ea076ad1
vim-patch:8.2.2375: test for RGB color skipped in the terminal
Problem:    Test for RGB color skipped in the terminal.
Solution:   Run the GUI if possible.
09fbedc8dc

Cherry-pick Test_highlight_RGB_color() from patch v8.2.1077
to port this patch.
2021-01-21 23:35:30 -05:00
Jan Edmund Lazo
4bd7f1133b
vim-patch:8.2.2384: turtle filetype not recognized
Problem:    Turtle filetype not recognized.
Solution:   Add a rule to detect turtle files. (closes vim/vim#7722)
5e6a7aa2b2
2021-01-21 23:19:16 -05:00
Jan Edmund Lazo
94cb3b4b35
vim-patch:8.2.2379: do spell suggestions twice if 'spellsuggest' contains number
Problem:    Finding spell suggestions twice if 'spellsuggest' contains number.
Solution:   Only do internal suggestions once.  (closes vim/vim#7713)
77a849c4b3
2021-01-21 21:59:35 -05:00
Anatolii Sakhnik
1607dd071f
Update Ukrainian translation (#13785) 2021-01-21 21:24:05 -05:00
notomo
d3989ea8e8 api(echo): should clear cmdline before echo 2021-01-21 21:49:42 +09:00
Björn Linse
d68026c9ed
Merge pull request #13673 from notomo/add-nvim-echo
api: nvim_echo
2021-01-20 18:54:03 +01:00
Sirisak Lueangsaksri
83ea08ddf3 opt: add tests (#13783) 2021-01-20 23:57:21 +07:00
Sirisak Lueangsaksri
52675915a7 opt: address linting issues (#13783) 2021-01-20 23:57:21 +07:00
Sirisak Lueangsaksri
fcd6eea217 opt: update docs on signnumber (#13783) 2021-01-20 23:57:21 +07:00
Sirisak Lueangsaksri
b7d60c0483 opt: better handling number bounds (#13783) 2021-01-20 23:57:21 +07:00
Sirisak Lueangsaksri
f1f170a2e7 opt: reduce hardcoded values (#13783) 2021-01-20 23:57:21 +07:00
Sirisak Lueangsaksri
cee09bb2aa opt: minimum sign size for auto (#13783) 2021-01-20 23:57:21 +07:00
notomo
8e86f5e460 api: nvim_echo 2021-01-20 16:41:39 +01:00
Thomas Vigouroux
1785ac3e37
Merge pull request #13794 from nvim-treesitter/fix-languagetree-contains
fix(languagetree): use tree nodes instead of regions in contains
2021-01-20 15:49:48 +01:00
Steven Sojka
ed558e269a fix(languagetree): use tree nodes instead of regions in contains 2021-01-20 06:52:47 -06:00
Thomas Vigouroux
d9c1586e4a
Merge pull request #13765 from jvgrootveld/ts-default-start-end-row-on-capture
treesitter: default start and end row when omitted
2021-01-20 10:32:48 +01:00
Michael Lingelbach
d6d4e3d1ae
lsp: remove duplicate settings validation (#13789) 2021-01-18 21:02:30 -05:00
Michael Lingelbach
f9b3110549
lsp: validate and document server settings (#13698)
* update lua documentation
* run docgen
2021-01-18 14:11:37 -05:00
Mathias Fußenegger
3f63100d5b
LSP: Fix nil settings handling in workspace/configuration (#13708)
The `workspace/configuration` handler could fail with the following
error if `config.settings` is nil:

    runtime/lua/vim/lsp/util.lua:1432: attempt to index local 'settings' (a nil value)"

This ensures that `config.settings` is always initialized to an empty
table.
2021-01-18 19:33:10 +01:00
Jan Edmund Lazo
51936126d3
Merge pull request #13767 from srafi1/rm-restricted-mode-docs
Remove -Z flag from --help message
2021-01-18 09:30:36 -05:00
Maltimore
4d1e7e5b12
Update nvim.appdata.xml to reflect version 0.4.4 (#13754)
Set release date based on commit ee77d8665f
2021-01-18 09:29:32 -05:00
Chris Kipp
1a4d380b5a
LSP: Add in clientInfo to initalize_params. (#13757)
* Add in clienInfo to initalize_params.

Some servers (like Metals in my case) will actually pull this
info from the initalize_params and display it in the logs. I
know from the server perspective it helps at times to have this
available to pull from to have more details about the client and
version. You can see that this is part of the spec here:

microsoft.github.io/language-server-protocol/specification#initialize
2021-01-18 10:13:26 +01:00
Michael Lingelbach
6d659bb338
lsp: add client/registerCapability handler (#13780)
Until we support dynamicRegistration, we should handle the client/registerCapability in core. There are still some language servers that send this request despite dynamicRegistration not being registered client-side (we got an upstream fix for the node ones, but this depends on them bumping vscode-languageserver-node).
2021-01-18 10:11:19 +01:00
Linda_pp
41eea59dcf
doc: Add link to Homebrew formula in README (#13782)
The page is useful because it contains:

    How to install it
    Package information (e.g. current version)
    List of dependencies
    Analytics (how many people are using it)
2021-01-18 09:41:25 +01:00
Michael Lingelbach
61437c20b5
api: add vim.version (#13762)
retrun a structured version dict
:lua print(vim.inspect(vim.version()))

{
  api_compatible = 0,
  api_level = 7,
  api_prerelease = true,
  major = 0,
  minor = 5,
  patch = 0
}
2021-01-18 09:37:18 +01:00
“jvgrootveld”
9bed991cfb treesitter: Fix linter warning and add helper function to remove duplicated logic
This function returns the start and stop value if set else the node's range is used
When the node's range is used, the stop is incremented by 1 to make the search inclusive
2021-01-18 08:17:12 +01:00
Jan Edmund Lazo
702208daa6
Merge pull request #13775 from janlazo/vim-8.2.2353
vim-patch:8.2.{2353,2355,2360,2361,2366,2368}
2021-01-17 15:01:22 -05:00
Jan Edmund Lazo
7cced24e93
vim-patch:8.2.2368: insufficient tests for setting options
Problem:    Insufficient tests for setting options.
Solution:   Add a few tests. (Dominique Pellé, closes vim/vim#7695)
85773bf32b

Cherry-pick some test cases for Test_set_error()
from patches v8.2.0540, v8.2.0551.
2021-01-17 14:17:40 -05:00
Jan Edmund Lazo
78620dbd28
ci(GHA): install perl on osx
Fix missing header files in system perl.
2021-01-17 12:42:28 -05:00
Jan Edmund Lazo
402f2bda13
vim-patch:8.2.2361: Vim9: no highlight for "s///gc" when using 'opfunc'
Problem:    Vim9: no highlight for "s///gc" when using 'opfunc'.
Solution:   Reset 'lazyredraw' temporarily. (closes vim/vim#7687)
7c886db915
2021-01-17 12:42:28 -05:00
Jan Edmund Lazo
6a01b3fcc3
vim-patch:8.2.2366: when using ":sleep" the cursor is always displayed
Problem:    When using ":sleep" the cursor is always displayed.
Solution:   Do not display the cursor when using ":sleep!". (Jeremy Lerner,
            closes vim/vim#7688)
e2edc2ed4a

Cursor showing/hiding is moved from core to TUI.
":sleep!" behaves the same as ":sleep".
2021-01-17 12:42:28 -05:00
Jan Edmund Lazo
abcd982bf0
vim-patch:8.2.2360: test leaves file behind
Problem:    Test leaves file behind.
Solution:   Delete the right file. (Dominique Pellé, closes vim/vim#7689)
a3b494d6af
2021-01-17 12:42:27 -05:00