mirror of
https://github.com/ilyakooo0/nvim-autopairs.git
synced 2024-09-11 07:15:44 +03:00
fix end_wise rule
This commit is contained in:
parent
332a52198d
commit
18ceac6c70
@ -22,7 +22,7 @@ local cond = require('nvim-autopairs.conds')
|
||||
| not_inside_quote | check is inside a quote |
|
||||
|
||||
### TreeSitter Condition
|
||||
```lua
|
||||
```lua
|
||||
local ts_conds = require('nvim-autopairs.ts-conds')
|
||||
```
|
||||
|
||||
|
@ -87,9 +87,9 @@ function Rule:only_cr(cond)
|
||||
return self
|
||||
end
|
||||
|
||||
function Rule:end_wise()
|
||||
function Rule:end_wise(cond)
|
||||
self.is_endwise = true
|
||||
return self:only_cr()
|
||||
return self:only_cr(cond)
|
||||
end
|
||||
|
||||
local function can_do(conds, opt)
|
||||
|
@ -21,6 +21,7 @@ local data = {
|
||||
after = [[end ]]
|
||||
},
|
||||
{
|
||||
only = true,
|
||||
name = "add newline have endwise" ,
|
||||
filepath = './tests/endwise/init.lua',
|
||||
filetype = "lua",
|
||||
|
Loading…
Reference in New Issue
Block a user