Commit Graph

250 Commits

Author SHA1 Message Date
Hexin
8220306d01 Fix issue where clearing namespace fails when using fast-wrap at first line
The following error occurs:
Error executing vim.schedule lua callback: ...om/windwp/nvim-autopairs/lua/nvim-autopairs/fastwrap.lua:86: Line number outside range
2021-10-12 06:06:54 +07:00
zztrieuzz
b5d077d2a0 fix: allow set ignored_next_char='' #150
bug fastwrap can override ignored_next_char
2021-10-11 16:11:32 +07:00
zztrieuzz
85fd134e6a ci: add stale 2021-10-05 18:50:16 +07:00
zztrieuzz
72b2b64285 fix: add replace_map_cr dynamic change on cr mapping
close #147
2021-10-03 07:04:39 +07:00
zztrieuzz
e93e047051 add doc 2021-10-01 21:02:08 +07:00
zztrieuzz
94e97c7cca fix: allow remove filetype when create rule
cond.not_filetypes() is not remove rule, that rule still exist.
We need to remove rule from constructor by using syntax -filetype
sample:
Rule("a","a","-vim")
2021-10-01 20:43:37 +07:00
zztrieuzz
09569be17f refactor: remove load treesitter on startup. 2021-10-01 19:08:56 +07:00
Vikas Raj
ff985c7141
enable single quote for rust (#144)
* enable single quote for rust
2021-10-01 08:41:21 +07:00
zztrieuzz
0e5a11555e update ci 2021-10-01 08:34:13 +07:00
Felix Clark
8ce5ea3b52 disable single quote completion in rust 2021-09-29 22:10:05 +07:00
zztrieuzz
9196a8fa36 chore: use emmylua doc on rule 2021-09-23 19:04:59 +07:00
zztrieuzz
78aeb2a80c Merge branch 'master' of github.com:windwp/nvim-autopairs 2021-09-23 15:56:45 +07:00
zztrieuzz
e108a70f91 feat: map <c-w> to delete pair 2021-09-23 11:23:42 +07:00
zeertzjq
4ce29bf258 doc: a small change in coq_nvim config example
When no item in the popup menu is selected, the intended behavior of `<CR>` should be cancelling the completion and triggering auto pairs CR, so it is fine to use `<c-e>` to close the popup menu.
2021-09-22 15:13:30 +07:00
zztrieuzz
3a40d753e7 fix: set buf rule when disable 2021-09-22 08:02:57 +07:00
zztrieuzz
19bb83320a fix: fastwrap bug update buffer rule 2021-09-20 18:26:09 +07:00
zztrieuzz
30d6ce1e39 fix: specify rules for buffer
before this we only save rule for all buffer but the floating window
keep override rules of the current window without even.
so I need to save rules for different buffer.

fix #137
2021-09-20 08:25:40 +07:00
zztrieuzz
438ad5bb02 refactor: change to vim api 2021-09-20 08:24:51 +07:00
zztrieuzz
e465f581f9 fix: is_in_quote
is_in_quote is not correct on complex string
2021-09-18 16:17:37 +07:00
zztrieuzz
4fbb53b8b1 fix: remove option to disable pairs on blockwise
Remove it because a check condition to insert an autopair from blockwise
visual mode is not correcting. The last mode from vim.fn.visualmode can
be sure you are insert from visual blockwise mode. User can <esc> visual
blockwise mode and change to normal then enter insert and that value from
vim.fn.visualmode still same.

https://github.com/neovim/neovim/issues/4399
2021-09-16 09:51:47 +07:00
nonce
4676cc95f0
Update README.md (#136) 2021-09-16 08:58:35 +07:00
GBProd
009546e2db
Allow setup nvim-cmp confirm behavior (#133) 2021-09-15 21:51:14 +07:00
zztrieuzz
9af1c4ab03 Merge branch 'master' of github.com:windwp/nvim-autopairs 2021-09-15 20:03:21 +07:00
windwp
8cf7f23116 feat: disable autopair on blockwise mode insert
fix #135
fix endwise_spec
2021-09-15 19:59:41 +07:00
sk
9a3770dccf
fix(cmp): initialize table when opt is nil (#134) 2021-09-14 22:00:16 +07:00
windwp
9d76310855 fix(cmp): add wrap with vim.defer 2021-09-14 06:52:23 +07:00
windwp
c8a42b03e8 fix: change to check ts_node only.
function `is_endwise_node` is not correct.I really want to
check if that node already have a close tag then it will not add an
endwise pairs but seem it is not possible right now.
Because tree-sitter will group a wrong node when it have wrong
syntax(missing end wise pair).
2021-09-14 06:43:46 +07:00
JezerM
1d6387a614 Added map_char option to modify map_complete auto-insertion 2021-09-14 05:36:44 +07:00
Micke Lisinge
cae3332e5a Add support for elixir 2021-09-14 05:14:36 +07:00
windwp
c80b4ac3fa add: ISSUE_TEMPLATE 2021-09-11 08:31:37 +07:00
windwp
5f8c0b6fdd
Merge pull request #130 from ten3roberts/master
Add fastwrap offset ( Fix #128 )
2021-09-11 07:11:52 +07:00
Tim Roberts
cd4c08c060 Add fastwrap offset ( Fix #128 ) 2021-09-10 22:39:53 +02:00
windwp
aa425e0813 fix: condition not inside quote 2021-09-09 20:53:52 +07:00
windwp
19af99011a refactor: test file with setup_func 2021-09-09 10:35:38 +07:00
windwp
f0822ddc38 feat: support multi byte character
fix #126
2021-09-08 10:56:09 +07:00
windwp
b9bb171325 fix: disable update rules on floating window.
fix #107 fix #121
2021-09-04 20:18:12 +07:00
windwp
8197c69a55 fix #118
It seem to be a problem of nvim-treesitter. It need to indent 2 times to
make indent working
2021-09-02 07:29:38 +07:00
windwp
08c20d972c
Merge pull request #120 from ourigen/rmd-backticks
Apply triple backticks rule to `rmd` filetypes
2021-09-01 06:00:50 +07:00
ourigen
cd97772f88
Apply triple backticks rule to rmd filetypes 2021-08-31 16:41:22 +00:00
windwp
f13e9ce7a4
Merge pull request #119 from jolars/master
Handle triple backticks for pandoc and rmarkdown
2021-08-31 18:00:14 +07:00
Johan Larsson
e05c3966e0 Handle triple backticks for pandoc and rmarkdown
Properly pair up triple backticks ``` when filetype is rmarkdown or
pandoc, similar to #41.
2021-08-31 11:57:34 +02:00
windwp
e717abbc1e
fix #116 2021-08-30 22:04:38 +07:00
windwp
0ec2d9baa1 Merge branch 'master' of github.com:windwp/nvim-autopairs 2021-08-30 09:25:39 +07:00
windwp
1b7391225c Fix #115 2021-08-30 09:25:23 +07:00
windwp
70ed2702c9
Merge pull request #113 from zeertzjq/disable-bs
allow disabling bs mapping & add coq config example
2021-08-28 09:56:39 +07:00
windwp
7bd73161a6 fix #112 2021-08-28 07:14:39 +07:00
zeertzjq
59a22537e6 allow disabling bs mapping & add coq config example 2021-08-28 08:02:47 +08:00
windwp
2fa1f773bd add style.toml 2021-08-27 06:32:25 +07:00
windwp
99884cbf3d
Merge pull request #106 from megalithic/feat/master/pass-in-nvim-cmp-mapping-setup
Supports passing in nvim-cmp's mapping config for finer control
2021-08-27 06:30:57 +07:00
windwp
9150bffb33 Merge branch 'master' into feat/master/pass-in-nvim-cmp-mapping-setup 2021-08-27 06:30:11 +07:00