Commit Graph

17532 Commits

Author SHA1 Message Date
Mathias Fussenegger
16827817bb lsp: Use incremental sync by default
With the new implementation added in
https://github.com/neovim/neovim/pull/14079 I think this is now working
well enough to enable it by default.

There are high CPU usage issues popping up now and then and they might
at least partially be related to the full-text sync.
2021-03-11 20:13:52 +01:00
Michael Lingelbach
5d20fc4fc5
Merge pull request #14107 from mfussenegger/gen-docs
Update lsp, lua and api docs (gen_vimdoc.py)
2021-03-11 08:26:59 -08:00
Mathias Fussenegger
02271009ca Update lsp, lua and api docs (gen_vimdoc.py) 2021-03-11 16:16:26 +01:00
Michael Lingelbach
6b7cde3dd0 lsp: fix highlighting for lsp markdown code blocks 2021-03-10 17:26:22 -08:00
Raymond W. Ko
097ec71bd8
aarch64/linux: fix build by updating LuaJIT (#14096) 2021-03-10 18:14:14 -05:00
Michael Lingelbach
4ed860a64c
Merge pull request #14073 from mjlbach/feature/syntax_highlight_rule
lsp: add custom syntax rule for floating window
2021-03-10 14:15:24 -08:00
Josa Gesell
d1074e0077
lsp: Resolve codeLense server capabilities (#14056) 2021-03-10 17:02:09 -05:00
TJ DeVries
564dd7d8db
lsp: get_language_id (#14092)
* Allow specifying a languageId for a lsp

For some languages the filetype might not match the languageId the
language server accepts. In these cases the config for the language
server can contain a function which gets the current buffer and filetype
and returns a languageId. When it isn't provided the filetype is used
instead.

Example:
```lua
require'lspconfig'.sourcekit.setup{
    get_language_id = function(bufnr, ft)
        return 'swift'
    end;
}
```

Closes #13093

* lsp: Change to get_language_id

Co-authored-by: Jan Dammshäuser <mail@jandamm.de>
2021-03-10 16:53:23 -05:00
Michael Lingelbach
c29494b719
Merge pull request #14095 from mjlbach/lsp_incremental_endline_fix
lsp: fix endline such that it cannot point outside the buffer range
2021-03-10 09:37:30 -08:00
Michael Lingelbach
53414555eb lsp: fix endline such that it cannot point outside the buffer range 2021-03-10 09:17:20 -08:00
Michael Sartain
300e71de9c
runtime/termdebug 82be4849eed0b8fbee45bc8da99b685ec89af59a (#13660)
port termdebug dissasembly window only (termdebug.vim)

This patch adds disassembly window to Termdebug

  :Asm should bring up disassembly window

or setting:

  g:termdebug_disasm_window

Values greater than 1 will set disasm window height.

Code works by calling gdb disassemble command, demangling output and
storing in Termdebug-asm-listing buffer + window.

Current pc address is parsed from 'addr=' cursor msg and we search for
that address in the disasm window. When the search fails, we execute a
new "disassemble $pc" command.

When in a location without a proper stack frame, "disassemble $pc" can
fail and in this case we add a +length argument and try again.

Tested with x86_64 gdb v10.1 and v8.2.1, and aarch64 gdb v7.12.
2021-03-10 08:20:22 -05:00
Björn Linse
7844ca2e05
Merge pull request #14065 from bfredl/overlaymode
more virt_text display options
2021-03-10 13:28:07 +01:00
Björn Linse
425bc438ae decorations: add additional styling of virt_text overlays 2021-03-10 12:11:05 +01:00
Michael Lingelbach
d49177afd9 lsp: add custom syntax rules for lsp floating window 2021-03-09 21:15:10 -08:00
Michael Lingelbach
0869cbd55c
Merge pull request #14079 from mjlbach/incremental_sync
lsp: add incremental text synchronization
2021-03-09 21:03:31 -08:00
Michael Lingelbach
e4e51c69d7 lsp: add incremental text synchronization
* Implementation derived from and validated by vim-lsc authored by Nate
  Bosch
2021-03-09 20:14:08 -08:00
Jan Edmund Lazo
cc23c95bcc
Merge pull request #14088 from janlazo/vim-8.2.2577
vim-patch:8.1.0783,8.2.{1507,2152,2438,2577}
2021-03-09 19:44:26 -05:00
Jan Edmund Lazo
7da8056607
vim-patch:8.2.2438: out of bounds compiler warning
Problem:    Out of bounds compiler warning.
Solution:   Increase the size of uf_name.
6a12e3342d

Do not set size of uf_name to avoid compiler warnings.
Port only the comments.
2021-03-09 18:38:04 -05:00
Jan Edmund Lazo
effd234960
vim-patch:8.2.1507: using malloc() directly
Problem:    Using malloc() directly.
Solution:   Use ALLOC_ONE().  Remove superfluous typecast.  (Hussam al-Homsi,
            closes vim/vim#6768)
51b6eb47b3
2021-03-09 18:38:04 -05:00
Jan Edmund Lazo
f7f7146588
vim-patch:8.2.2577: compiler warning for type conversion
Problem:    Compiler warning for type conversion.
Solution:   Add a typecast. (Mike Williams)
9355ae4149

N/A patches for version.c:

vim-patch:8.1.0783: compiler warning for signed/unsigned

Problem:    Compiler warning for signed/unsigned.
Solution:   Add type cast.  Change type of buffer. (Ozaki Kiichi, closes vim/vim#3827)
63c0ccd2b6

Neovim was refactored to prefer char type for string functions, not char_u.

vim-patch:8.2.2152: screenpos() does not include the WinBar offset

Problem:    screenpos() does not include the WinBar offset.
Solution:   Use W_WINROW() instead of directly using w_window. (closes vim/vim#7487)
8dd46e72cf

W_WINROW() was removed so port only the test changes.
The test is currently skipped.
2021-03-09 18:38:04 -05:00
Björn Linse
e355cc8cc5
Merge pull request #13875 from smolck/vim_fn_error_on_api
vim.fn: throw error when trying to use API function
2021-03-09 23:12:23 +01:00
smolck
d1899bb5f4 use pcall_err 2021-03-09 15:23:42 -06:00
Mathias Fussenegger
b73e653703 treesitter: Update to 0.19.3 2021-03-09 19:21:26 +01:00
Björn Linse
7c204af87a
Merge pull request #13686 from bfredl/fastevent
state: throttle batched event processing when input is available
2021-03-08 17:55:59 +01:00
Björn Linse
f901149de4 state: throttle batched event processing when input is available
before, calling vim.schedule() from inside an event would execute
the scheduled callback immediately after this event without
checking for user input in between. Break event processing
whenever user input or an interrupt is available.
2021-03-08 16:08:58 +01:00
Jan Edmund Lazo
c12ea02e0b
Merge pull request #14070 from janlazo/vim-8.2.2564
vim-patch:8.1.1016,8.2.{890,1513,1805,2345,2564}
2021-03-07 15:56:23 -05:00
Matthieu Coudron
5c4fbe34f9
Merge pull request #13993 from teto/gendoc
improve vimdoc generation
2021-03-07 17:20:09 +01:00
erw7
667e3bfb6e
Merge pull request #13004 from jgehrig/jg-neovim-qt-runtime
fix Windows missing QtSVG DLL
2021-03-07 20:05:05 +09:00
Jan Edmund Lazo
8996a12d82
vim-patch:8.2.1513: cannot interrupt shell used for filename expansion
Problem:    Cannot interrupt shell used for filename expansion. (Dominique
            Pellé)
Solution:   Do set tmode in mch_delay(). (closes vim/vim#6770)
0981c8729e

Neovim does not run settmode() in os_delay() so this patch is mostly N/A.
Do not port Vim's flags (ie. MCH_DELAY_SETTMODE) for mch_delay().
2021-03-06 22:11:42 -05:00
Jan Edmund Lazo
f135e511c0
vim-patch:8.1.1016: MS-Windows: No color in shell when using "!" in 'guioptions
Problem:    MS-Windows: No color in shell when using "!" in 'guioptions.
Solution:   Don't stop termcap when using a terminal window for the shell.
            (vim-jp, closes vim/vim#4117)
049ca59236

N/A patches for version.c:

vim-patch:8.2.0890: no color in terminal window when 'termguicolor' is set

Problem:    No color in terminal window when 'termguicolor' is set.
Solution:   Clear the underline color. (closes vim/vim#6186)
1e5f8f6d65

vim-patch:8.2.1805: Unix: terminal mode changed when using ":shell"

Problem:    Unix: terminal mode changed when using ":shell".
Solution:   Avoid calling settmode() when not needed. (issue vim/vim#7079)
80361a5f2b

vim-patch:8.2.2345: no focus events in a terminal

Problem:    No focus events in a terminal.
Solution:   Add the t_fd and t_fe termcap entries and implement detecting
            focus events. (Hayaki Saito, Magnus Groß, closes vim/vim#7673,
            closes vim/vim#609, closes vim/vim#5526)
681fc3fa78

vim-patch:8.2.2564: focus events end Insert mode if 'esckeys' is not set

Problem:    Focus events end Insert mode if 'esckeys' is not set.
Solution:   Do not enable focus events when 'esckeys' is off. (closes vim/vim#7926)
51b477f74f
2021-03-06 22:03:29 -05:00
Michael Lingelbach
0496b572ac
Merge pull request #13919 from TheAlakazam/lsplogfix
fix: fix empty line in lsp log after each run
2021-03-06 09:40:57 -08:00
Björn Linse
b3dd856f2b
Merge pull request #14052 from phaazon/fix/typo
Fix a typo in the Lua documentation for nvim_add_highlight().
2021-03-06 13:21:44 +01:00
Björn Linse
399b47fddb
Merge pull request #14066 from LeeWannacott/clarify-nvim-put
Clarify that nvim_put()'s {after} and {follow} parameters expect boolean values true, or false.
2021-03-06 13:17:42 +01:00
Lee Wannacott
d8dff33e4b Added If true to show that {after} and {follow} parameters of nvim_put() are expecting boolean values 2021-03-07 00:54:13 +13:00
Lee Wannacott
ea99e7f2ab Forgot to add colon to the {follow} parameters statement 2021-03-07 00:31:58 +13:00
Lee Wannacott
cde94598ed Clarify that nvim_put()'s {after} and {follow} parameters expect boolean values true, or false. 2021-03-07 00:06:13 +13:00
Piyush Jaipuriyar
82c09f7c0b lsp: add explicit entry on lsp log start
fix: address typo and review comments
2021-03-06 10:39:40 +05:30
Michael Lingelbach
3fbff98cfd
Merge pull request #13793 from mjlbach/fix_terminating_eol_diagnostic
[RDY] lsp: fix diagnostic reported on terminating EOL character
2021-03-05 07:27:50 -08:00
Andy K. Massimino
8601e8b0d6 vim-patch:8.2.1703: ":highlight clear" does not restore default link
Problem:    ":highlight clear" does not restore default link.
Solution:   Remember the default link and restore it. (Antony Scriven,
            closes vim/vim#6970, closes vim/vim#4405)
213da551de
2021-03-05 01:45:54 -05:00
Andy K. Massimino
4e6b31d978 vim-patch:8.2.1693: "hi def" does not work for cleared highlight
Problem:    "hi def" does not work for cleared highlight.
Solution:   Check the "sg_cleared" flag. (Maxim Kim, closes vim/vim#6956,
            closes vim/vim#4405)
05eb5b9cae
2021-03-05 01:45:50 -05:00
Jan Edmund Lazo
8f4b9b8b7d
Merge pull request #14048 from saadparwaiz1/runtime/haskell
Update Runtime Files For Haskell
2021-03-04 22:48:16 -05:00
Michael Lingelbach
115488105d
Merge pull request #14059 from mjlbach/fix/no_notification_lsp_sigterm
lsp: don't invoke vim.notify on sigterm of language server
2021-03-04 16:02:43 -08:00
Michael Lingelbach
58be81d645 lsp: don't invoke vim.notify on sigterm of language server 2021-03-04 13:50:49 -08:00
Michael Lingelbach
c50b737d6f
Merge pull request #14047 from mjlbach/feature/notify_on_crash
lsp: invoke vim.notify when client exits with code or signal other than 0
2021-03-04 12:27:46 -08:00
Michael Lingelbach
bdb2512325 lsp: invoke vim.notify when client exits with code or signal other than 0 2021-03-04 10:55:50 -08:00
Matthieu Coudron
e55c27fc6e more generic shebang for lua2dox_filter
previous one was not working/ or use /bin/sh
2021-03-04 15:44:40 +01:00
Matthieu Coudron
513ac58043 fix: section_name must be a dict {filename:name}
else it was triggering an error during regeneration of the files.
2021-03-04 15:44:40 +01:00
Matthieu Coudron
55d6699dfd chore: rename progress_callback to progress_handler 2021-03-04 15:42:05 +01:00
Matthieu Coudron
a167ae6d5d fix(flake): can now generate vimdoc
and removed warning about deprecated usage of stdenv.lib

also can run `make pylint shlint`.
2021-03-04 15:42:05 +01:00
tk-shirasaka
f2fc44d50b
[RDY] Fix click on foldcolumn if it has tabline (#13982)
* Fix click on foldcolumn if it has tabline
* Fixes to correctly determine if tablie was clicked when multigrid is enabled
* Separate foldcolumn checks into functions
* Add test case for click on foldcolumn with split window
* Fix foldcolumn click used nvim_input() on multigrid enabled
2021-03-04 13:54:22 +01:00