mirror of
https://github.com/neovim/neovim.git
synced 2026-04-02 21:59:28 +00:00
docs: misc (#38578)
This commit is contained in:
@@ -345,7 +345,7 @@ describe('vim._with', function()
|
||||
exec_lua,
|
||||
[[
|
||||
_G.f = function()
|
||||
error('This error should not interfer with execution', 0)
|
||||
error('This error should not interfere with execution', 0)
|
||||
end
|
||||
-- Should not produce error same as `vim.cmd('silent! lua _G.f()')`
|
||||
vim._with({ emsg_silent = true }, f)
|
||||
|
||||
@@ -3914,7 +3914,7 @@ func Test_complete_fuzzy_collect()
|
||||
call feedkeys("Gofuzzy\<C-X>\<C-N>\<C-N>\<C-N>\<C-N>\<CR>\<Esc>0", 'tx!')
|
||||
call assert_equal('completefuzzycollect', getline(line('.') - 1))
|
||||
|
||||
" keywords in 'dictonary'
|
||||
" keywords in 'dictionary'
|
||||
call writefile(['hello', 'think'], 'Xtest_dict.txt', 'D')
|
||||
set dict=Xtest_dict.txt
|
||||
call feedkeys("Sh\<C-X>\<C-K>\<C-N>\<CR>\<Esc>0", 'tx!')
|
||||
@@ -3932,7 +3932,7 @@ func Test_complete_fuzzy_collect()
|
||||
call assert_equal('fuzzycollect', getline('.'))
|
||||
|
||||
" when 'fuzzy' is not set, and 'infercase' and 'ignorecase' are set, then
|
||||
" uppercase completes from lowercase words in dictonary
|
||||
" uppercase completes from lowercase words in dictionary
|
||||
set completeopt&
|
||||
set infercase ignorecase
|
||||
call writefile(['hello'], 'Xtest_case.txt', 'D')
|
||||
|
||||
@@ -167,8 +167,8 @@ func Test_sign()
|
||||
|
||||
sign define Sign5 text=X\ linehl=Comment
|
||||
sign undefine Sign5
|
||||
" The use of execute in the next line is just to ensure the space for
|
||||
" the text value is obvious and does not get accidently deleted.
|
||||
" The use of :execute in the next line is just to ensure the space for
|
||||
" the text value is obvious and does not get accidentally deleted.
|
||||
execute "sign define Sign5 linehl=Comment text=X\ "
|
||||
sign undefine Sign5
|
||||
|
||||
|
||||
Reference in New Issue
Block a user