mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 10:45:16 -07:00
parent
cedf155fb5
commit
07db909eb5
@ -51,7 +51,7 @@ LSP
|
|||||||
• vim.lsp.buf_request_all The `error` key has been renamed to `err` inside
|
• vim.lsp.buf_request_all The `error` key has been renamed to `err` inside
|
||||||
the result parameter of the handler.
|
the result parameter of the handler.
|
||||||
• *vim.lsp.with()* Pass configuration to equivalent
|
• *vim.lsp.with()* Pass configuration to equivalent
|
||||||
functions in `vim.lsp.buf.*'.
|
functions in `vim.lsp.buf.*`.
|
||||||
• |vim.lsp.handlers|
|
• |vim.lsp.handlers|
|
||||||
No longer support client to server response handlers. Only server to
|
No longer support client to server response handlers. Only server to
|
||||||
client requests/notification handlers are supported.
|
client requests/notification handlers are supported.
|
||||||
|
@ -227,7 +227,7 @@ LUA
|
|||||||
|
|
||||||
• |vim.fs.rm()| can delete files and directories.
|
• |vim.fs.rm()| can delete files and directories.
|
||||||
• |vim.validate()| now has a new signature which uses less tables,
|
• |vim.validate()| now has a new signature which uses less tables,
|
||||||
is more peformant and easier to read.
|
is more performant and easier to read.
|
||||||
• |vim.str_byteindex()| and |vim.str_utfindex()| gained overload signatures
|
• |vim.str_byteindex()| and |vim.str_utfindex()| gained overload signatures
|
||||||
supporting two new parameters, `encoding` and `strict_indexing`.
|
supporting two new parameters, `encoding` and `strict_indexing`.
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*pi_netrw.txt* For Vim version 8.2. Last change: 2020 Aug 15
|
*pi_netrw.txt* Nvim
|
||||||
|
|
||||||
------------------------------------------------
|
------------------------------------------------
|
||||||
NETRW REFERENCE MANUAL by Charles E. Campbell
|
NETRW REFERENCE MANUAL by Charles E. Campbell
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*pi_tar.txt* For Vim version 8.2. Last change: 2020 Jan 07
|
*pi_tar.txt* Nvim
|
||||||
|
|
||||||
+====================+
|
+====================+
|
||||||
| Tar File Interface |
|
| Tar File Interface |
|
||||||
|
@ -414,7 +414,7 @@ TUI:
|
|||||||
- 'term' reflects the terminal type derived from |$TERM| and other environment
|
- 'term' reflects the terminal type derived from |$TERM| and other environment
|
||||||
checks. For debugging only; not reliable during startup. >vim
|
checks. For debugging only; not reliable during startup. >vim
|
||||||
:echo &term
|
:echo &term
|
||||||
- "builtin_x" means one of the |builtin-terms| was chosen, because the expected
|
- "builtin_x" means one of the |builtin-terms| was chosen, because the expected
|
||||||
terminfo file was not found on the system.
|
terminfo file was not found on the system.
|
||||||
- Nvim will use 256-colour capability on Linux virtual terminals. Vim uses
|
- Nvim will use 256-colour capability on Linux virtual terminals. Vim uses
|
||||||
only 8 colours plus bright foreground on Linux VTs.
|
only 8 colours plus bright foreground on Linux VTs.
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
" Vim filetype plugin
|
" Vim filetype plugin
|
||||||
" Language: Nvim :checkhealth buffer
|
" Language: Nvim :checkhealth buffer
|
||||||
" Last Change: 2022 Nov 10
|
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
-- Neovim filetype plugin file
|
-- Neovim filetype plugin file
|
||||||
-- Language: Treesitter query
|
-- Language: Treesitter query
|
||||||
-- Last Change: 2024 Jul 03
|
|
||||||
|
|
||||||
if vim.b.did_ftplugin == 1 then
|
if vim.b.did_ftplugin == 1 then
|
||||||
return
|
return
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
-- Neovim indent file
|
-- Neovim indent file
|
||||||
-- Language: Treesitter query
|
-- Language: Treesitter query
|
||||||
-- Last Change: 2024 Jul 03
|
|
||||||
|
|
||||||
-- it's a lisp!
|
-- it's a lisp!
|
||||||
vim.cmd([[runtime! indent/lisp.vim]])
|
vim.cmd([[runtime! indent/lisp.vim]])
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
" Vim syntax file
|
" Vim syntax file
|
||||||
" Language: Nvim :checkhealth buffer
|
" Language: Nvim :checkhealth buffer
|
||||||
" Last Change: 2022 Nov 10
|
|
||||||
|
|
||||||
if exists("b:current_syntax")
|
if exists("b:current_syntax")
|
||||||
finish
|
finish
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
-- Neovim syntax file
|
-- Neovim syntax file
|
||||||
-- Language: Treesitter query
|
-- Language: Treesitter query
|
||||||
-- Last Change: 2024 Jul 03
|
|
||||||
|
|
||||||
-- it's a lisp!
|
-- it's a lisp!
|
||||||
vim.cmd([[runtime! syntax/lisp.vim]])
|
vim.cmd([[runtime! syntax/lisp.vim]])
|
||||||
|
@ -303,7 +303,7 @@ static const char *highlight_init_both[] = {
|
|||||||
"default link @tag.builtin Special",
|
"default link @tag.builtin Special",
|
||||||
|
|
||||||
// :help
|
// :help
|
||||||
// Higlight "===" and "---" heading delimiters specially.
|
// Highlight "===" and "---" heading delimiters specially.
|
||||||
"default @markup.heading.1.delimiter.vimdoc guibg=bg guifg=bg guisp=fg gui=underdouble,nocombine ctermbg=NONE ctermfg=NONE cterm=underdouble,nocombine",
|
"default @markup.heading.1.delimiter.vimdoc guibg=bg guifg=bg guisp=fg gui=underdouble,nocombine ctermbg=NONE ctermfg=NONE cterm=underdouble,nocombine",
|
||||||
"default @markup.heading.2.delimiter.vimdoc guibg=bg guifg=bg guisp=fg gui=underline,nocombine ctermbg=NONE ctermfg=NONE cterm=underline,nocombine",
|
"default @markup.heading.2.delimiter.vimdoc guibg=bg guifg=bg guisp=fg gui=underline,nocombine ctermbg=NONE ctermfg=NONE cterm=underline,nocombine",
|
||||||
|
|
||||||
|
@ -1119,7 +1119,7 @@ int utf_char2bytes(const int c, char *const buf)
|
|||||||
/// stateful algorithm to determine grapheme clusters. Still available
|
/// stateful algorithm to determine grapheme clusters. Still available
|
||||||
/// to support some legacy code which hasn't been refactored yet.
|
/// to support some legacy code which hasn't been refactored yet.
|
||||||
///
|
///
|
||||||
/// To check if a char would combine with a preceeding space, use
|
/// To check if a char would combine with a preceding space, use
|
||||||
/// utf_iscomposing_first() instead.
|
/// utf_iscomposing_first() instead.
|
||||||
///
|
///
|
||||||
/// Based on code from Markus Kuhn.
|
/// Based on code from Markus Kuhn.
|
||||||
|
@ -228,7 +228,7 @@ static void set_init_default_backupskip(void)
|
|||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
p = vim_getenv(names[i]);
|
p = vim_getenv(names[i]);
|
||||||
plen = 0; // will be calcuated below
|
plen = 0; // will be calculated below
|
||||||
}
|
}
|
||||||
if (p != NULL && *p != NUL) {
|
if (p != NULL && *p != NUL) {
|
||||||
bool has_trailing_path_sep = false;
|
bool has_trailing_path_sep = false;
|
||||||
|
@ -880,7 +880,7 @@ static void pum_adjust_info_position(win_T *wp, int height, int width)
|
|||||||
/// Used for nvim__complete_set
|
/// Used for nvim__complete_set
|
||||||
///
|
///
|
||||||
/// @param selected the selected compl item.
|
/// @param selected the selected compl item.
|
||||||
/// @parma info Info string.
|
/// @param info Info string.
|
||||||
/// @return a win_T pointer.
|
/// @return a win_T pointer.
|
||||||
win_T *pum_set_info(int selected, char *info)
|
win_T *pum_set_info(int selected, char *info)
|
||||||
{
|
{
|
||||||
|
@ -47,7 +47,7 @@ struct TermKey {
|
|||||||
int canonflags;
|
int canonflags;
|
||||||
unsigned char *buffer;
|
unsigned char *buffer;
|
||||||
size_t buffstart; // First offset in buffer
|
size_t buffstart; // First offset in buffer
|
||||||
size_t buffcount; // NUMBER of entires valid in buffer
|
size_t buffcount; // NUMBER of entries valid in buffer
|
||||||
size_t buffsize; // Total malloc'ed size
|
size_t buffsize; // Total malloc'ed size
|
||||||
size_t hightide; // Position beyond buffstart at which peekkey() should next start
|
size_t hightide; // Position beyond buffstart at which peekkey() should next start
|
||||||
// normally 0, but see also termkey_interpret_csi
|
// normally 0, but see also termkey_interpret_csi
|
||||||
|
@ -32,7 +32,7 @@ describe('CompleteDone', function()
|
|||||||
feed('<Esc>')
|
feed('<Esc>')
|
||||||
eq('cancel', eval('g:donereason'))
|
eq('cancel', eval('g:donereason'))
|
||||||
end)
|
end)
|
||||||
it('when overriden by another complete()', function()
|
it('when overridden by another complete()', function()
|
||||||
call('complete', call('col', '.'), { 'bar', 'baz' })
|
call('complete', call('col', '.'), { 'bar', 'baz' })
|
||||||
eq('cancel', eval('g:donereason'))
|
eq('cancel', eval('g:donereason'))
|
||||||
end)
|
end)
|
||||||
|
@ -343,7 +343,7 @@ describe('startup', function()
|
|||||||
local screen = Screen.new(25, 3)
|
local screen = Screen.new(25, 3)
|
||||||
-- Remote UI connected by --embed.
|
-- Remote UI connected by --embed.
|
||||||
-- TODO: a lot of tests in this file already use the new default color scheme.
|
-- TODO: a lot of tests in this file already use the new default color scheme.
|
||||||
-- once we do the batch update of tests to use it, remove this workarond
|
-- once we do the batch update of tests to use it, remove this workaround
|
||||||
screen._default_attr_ids = nil
|
screen._default_attr_ids = nil
|
||||||
command([[echo has('ttyin') has('ttyout')]])
|
command([[echo has('ttyin') has('ttyout')]])
|
||||||
screen:expect([[
|
screen:expect([[
|
||||||
|
@ -114,7 +114,7 @@ describe('vim.system', function()
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
if t.is_os('win') then
|
if t.is_os('win') then
|
||||||
it('can resolve windows command extentions.', function()
|
it('can resolve windows command extensions', function()
|
||||||
t.write_file('test.bat', 'echo hello world')
|
t.write_file('test.bat', 'echo hello world')
|
||||||
system_sync({ 'chmod', '+x', 'test.bat' })
|
system_sync({ 'chmod', '+x', 'test.bat' })
|
||||||
system_sync({ './test' })
|
system_sync({ './test' })
|
||||||
|
@ -3499,7 +3499,7 @@ describe('LSP', function()
|
|||||||
}
|
}
|
||||||
return vim.lsp.util.convert_signature_help_to_markdown_lines(signature_help, 'zig', { '(' })
|
return vim.lsp.util.convert_signature_help_to_markdown_lines(signature_help, 'zig', { '(' })
|
||||||
end)
|
end)
|
||||||
-- Note that although the higlight positions below are 0-indexed, the 2nd parameter
|
-- Note that although the highlight positions below are 0-indexed, the 2nd parameter
|
||||||
-- corresponds to the 3rd line because the first line is the ``` from the
|
-- corresponds to the 3rd line because the first line is the ``` from the
|
||||||
-- Markdown block.
|
-- Markdown block.
|
||||||
local expected = { 3, 4, 3, 11 }
|
local expected = { 3, 4, 3, 11 }
|
||||||
|
@ -544,7 +544,7 @@ describe('clipboard (with fake clipboard.vim)', function()
|
|||||||
]])
|
]])
|
||||||
feed('gg^<C-v>') -- Goto start of top line enter visual block mode
|
feed('gg^<C-v>') -- Goto start of top line enter visual block mode
|
||||||
feed('3ljy^k') -- yank 4x2 block & goto initial location
|
feed('3ljy^k') -- yank 4x2 block & goto initial location
|
||||||
feed('P') -- Paste it infront
|
feed('P') -- Paste it before cursor
|
||||||
expect([[
|
expect([[
|
||||||
aabbaabbcc
|
aabbaabbcc
|
||||||
ddeeddeeff
|
ddeeddeeff
|
||||||
|
Loading…
Reference in New Issue
Block a user