hrsh7th
796f925915
Fix #703
2022-01-07 00:38:42 +09:00
hrsh7th
49de058222
Fix #637
2021-12-14 13:59:03 +09:00
Dmytro Meleshko
727ddee59e
Fix rendering of wide characters in the custom completion window ( #641 )
2021-12-13 13:05:55 +09:00
hrsh7th
a61c36a639
fmt
2021-12-01 15:03:59 +09:00
Iron-E
ed000eb3d4
fix: default highlights overriding existing highlights ( #591 )
...
`highlight! default` overrides the existing highlight in order to set a
default link. So any highlight group that exists before will be wiped
over.
2021-11-30 13:29:02 +09:00
hrsh7th
ac476e05df
Remove misc.readonly
...
Fix #571
2021-11-23 23:22:22 +09:00
hrsh7th
1944b46336
Allow to take the full SourceConfig from source API ( #561 )
...
* - SourceConfig.opts -> SourceConfig.option
- Add SourceConfig.trigger_characters
- Allow accessing full SourceConfig from source
* fmt&lint
2021-11-23 21:17:03 +09:00
hrsh7th
9b5d64d906
Fix #567
2021-11-23 19:37:25 +09:00
hrsh7th
4d800fbcab
Fix cmdline screen cursor
2021-11-16 13:42:38 +09:00
hrsh7th
3e5ee9c789
Don't feed <C-f> manually but check auto-indentation
2021-11-16 04:16:37 +09:00
hrsh7th
3a2afb3cae
Add cmdline expansion test
2021-11-15 13:11:42 +09:00
hrsh7th
c194a3dbba
Add tests
2021-11-15 12:44:41 +09:00
hrsh7th
753f5b7c92
Fix #516 ( #517 )
...
* Fix #516
* Fix
* Fix and tests
* fmt lint
2021-11-14 02:47:31 +09:00
hrsh7th
6071062289
Fix #504
2021-11-10 04:28:32 +09:00
Dmytro Meleshko
faaf1c9629
Handle block visual/select modes, refactor mode handling ( #498 )
2021-11-09 19:41:16 +09:00
hrsh7th
453a62f882
Add textwidth tests
2021-11-08 22:23:53 +09:00
hrsh7th
2fca457453
Re-fix autoindent with tests
2021-11-08 22:16:58 +09:00
hrsh7th
313773584d
Fix #494
2021-11-08 21:55:06 +09:00
hrsh7th
f831dbc107
strict mapping handling
2021-11-08 20:38:08 +09:00
hrsh7th
1628c934d1
Fix tests
2021-11-08 15:47:35 +09:00
hrsh7th
ec788bebd0
Fix #480
2021-11-08 15:05:37 +09:00
hrsh7th
1a79d7e549
Fix #481
2021-11-08 14:59:20 +09:00
hrsh7th
1774ff0f84
Fix cmdline confirmation
2021-11-05 22:44:43 +09:00
hrsh7th
d0231d06de
Improve async.step
2021-11-05 21:32:30 +09:00
hrsh7th
e1f880b7e0
Use apply_text_edits to avoid making the unexpected indentation by '<CR>'
2021-11-05 21:29:34 +09:00
Martijn Hoogendoorn
bf31b71f03
Escape <Bar> when setting indentkeys ( #474 )
...
In `keymap.autoindent`, `!^F` is added to `indentkeys`, then `<C-f>` is
fed. In the end `indentkeys` is reset to its original value.
We need to escape any `|` in `indentkeys` when setting the option
because otherwise they are seen as the command separator.
2021-11-05 11:47:06 +09:00
hrsh7th
01fcf869bb
Fix expansion bug
2021-11-04 20:49:28 +09:00
hrsh7th
68a37a669b
Support session
2021-11-04 02:53:05 +09:00
hrsh7th
dc6b458fd2
tmp fix for serveral bugs
2021-11-04 02:31:42 +09:00
hrsh7th
2a58b8f926
Fix #421
2021-11-03 03:16:45 +09:00
hrsh7th
c67ed9d8bc
Fix #463
2021-11-03 02:29:06 +09:00
hrsh7th
017d3abc57
Organize keymap implementation ( #454 )
...
* Organize keymap implementation
* Pass tests
* Improve
* Restore tests
2021-11-02 11:59:26 +09:00
hrsh7th
1c33887afb
Fix keymap bug
2021-11-02 02:06:34 +09:00
hrsh7th
b7f79a19c6
Fix #443
2021-11-02 01:52:51 +09:00
hrsh7th
674d2b1389
Rewrite keymap.lua ( #452 )
...
* Move feedkeys related codes to `cmp.utils.feedkeys`
* Improve mapping handling
* Fix test
* fmt
2021-11-01 22:15:28 +09:00
hrsh7th
e8cb695b0b
Fix #436
2021-11-01 14:00:59 +09:00
Charly Delay
b10bb327f3
misc.merge: ensure that misc.none is never returned ( #441 )
...
Before this change:
1. `misc.merge({a = misc.none}, {a = nil})` returned `{a = misc.none}`
2. `misc.merge({a = nil}, {a = misc.none})` returned `{a = misc.none}`
(1) can cause error if a non-existing mapping is set to `config.disable`
(which is an alias for `misc.none`).
(2) does not cause any issue to date, but is inconsistent with the
expected behavior of `misc.merge(…)`.
After this change:
1. `misc.merge({a = misc.none}, {a = nil})` returns `{a = nil}`
2. `misc.merge({a = nil}, {a = misc.none})` returns `{a = nil}`
Fixes #440 .
2021-10-30 19:05:20 +09:00
anstadnik
ab7f368547
Add mappings for visual mode ( #438 )
2021-10-30 13:55:26 +09:00
hrsh7th
732f67dead
Fix #427
2021-10-29 13:09:41 +09:00
hrsh7th
881ca573db
Re-support script mapping
2021-10-28 00:50:50 +09:00
hrsh7th
a58916386b
fmt
2021-10-27 12:39:26 +09:00
hrsh7th
cae2e8f48b
RFC: cmdline completion ( #362 )
...
* manual support dot-repeat
* cmdwin and terminal
* cmdline only
* Fix
* fix
* Improve
* Fix test
* Support macro
* disable cmdline for now
* Simplify
* fmt
* consume once
* Ignore = type
* cmdline
* fmt
* Improve
* update
* fmt
* Support incsearch
* fix
* Add api
* Avoid cmdline completion if the native_menu enabled
* fix for macro
* Improve
* fmt
* Insert-mode only by default
* Update
* avoid conflict
* Improve default mapping
* Fix
* fix
* similar to native
* Update
* Fix README.md
* Improve
* Use <afile>
2021-10-27 12:38:46 +09:00
hrsh7th
b5899f05c5
Fix #414
2021-10-26 23:37:11 +09:00
hrsh7th
ea6dde8081
Add tests for #226
2021-10-25 23:11:59 +09:00
hrsh7th
880137f5e8
Fix #226
2021-10-25 23:00:22 +09:00
hrsh7th
f1da3adddc
Add cmp.config.disable for opt-out default setting
2021-10-25 22:50:38 +09:00
Alex Tylor
b546f50f09
Expose get_selected_entry() from view module to main cmp module fixes #385 ( #386 )
...
* Expose get_selected_entry() from view module to main cmp module fixes #385
* add get_active_entry() also
* fix linting
* remove unused vars
Co-authored-by: alex.tylor <atylor@gmail.com >
2021-10-22 17:47:55 +09:00
hrsh7th
775a371660
Fix #375
2021-10-19 14:47:41 +09:00
hrsh7th
c57969580d
Fix #374
2021-10-19 14:38:10 +09:00
hrsh7th
289d0929be
Remove meaningless code
2021-10-19 00:22:25 +09:00