mirror of
https://github.com/ilyakooo0/nvim-autopairs.git
synced 2024-09-11 07:15:44 +03:00
update README
This commit is contained in:
parent
1e75891fc6
commit
b4a4d53089
@ -16,7 +16,7 @@ require('nvim-autopairs').setup()
|
||||
``` lua
|
||||
|
||||
local disable_filetype = { "TelescopePrompt" }
|
||||
local ignored_next_char = "%w"
|
||||
local ignored_next_char = string.gsub([[ [%w%%%'%[%"%.] ]],"%s+", "")
|
||||
|
||||
```
|
||||
|
||||
@ -72,7 +72,7 @@ vim.g.completion_confirm_key = ""
|
||||
MUtils.completion_confirm=function()
|
||||
if vim.fn.pumvisible() ~= 0 then
|
||||
if vim.fn.complete_info()["selected"] ~= -1 then
|
||||
return vim.fn["compe#confirm"](npairs.esc("<c-r>"))
|
||||
return vim.fn["compe#confirm"](npairs.esc("<cr>"))
|
||||
else
|
||||
return npairs.esc("<cr>")
|
||||
end
|
||||
|
@ -76,6 +76,7 @@ local _, ts_utils = pcall(require, 'nvim-treesitter.ts_utils')
|
||||
_G.TU = ts_utils
|
||||
|
||||
local function Test(test_data)
|
||||
log.debug("aaa")
|
||||
for _, value in pairs(test_data) do
|
||||
it("test "..value.name, function()
|
||||
local text_before = {}
|
||||
|
@ -1,4 +1,5 @@
|
||||
local utils = require('nvim-autopairs.utils')
|
||||
local log = require('nvim-autopairs._log')
|
||||
|
||||
local eq = assert.are.same
|
||||
|
||||
@ -52,7 +53,13 @@ local data = {
|
||||
},
|
||||
}
|
||||
|
||||
log.debug("WORK FINE")
|
||||
log.debug("WORK FINE")
|
||||
log.debug("WORK FINE")
|
||||
describe('utils test substring ', function()
|
||||
it("test log",function()
|
||||
log.debug("WORK FINE")
|
||||
end)
|
||||
for _, value in pairs(data) do
|
||||
it('test sub: ' .. value.text, function()
|
||||
local result = utils.text_sub_char(value.text, value.start, value.num)
|
||||
@ -60,3 +67,4 @@ describe('utils test substring ', function()
|
||||
end)
|
||||
end
|
||||
end)
|
||||
vim.wait(100)
|
||||
|
Loading…
Reference in New Issue
Block a user