tzachar
1558d110d7
Bottom up mode for custom menu ( #848 )
...
* Try to fix col adjustment (#843 )
* Try to fix col adjuastment
* Improve duplicated text handling
* Bottom up mode for custom entry menu
When in command line mode, the custom entry window opens up to an
unexpected height, depending on the current count of completion items.
The above makes it hard to anticipate where to look at, and makes life a bit
harder.
This patch adds an option to open the custom entries view in a bottom up
mode, and flips the regular behaviour of next/prev entry in this mode.
Setup is as easy as:
```
cmp.setup.cmdline(':', {
view = {
entries = {name = 'custom', direction = 'bottom_up' }
}
}
```
* fix stylua complaints
* sylua barfs
* solve some corner cases
* properly reverse entries table
* make custom view follow cursor
* respect default as top_down
* stylua
* more stylua
Co-authored-by: hrsh7th <hrsh7th@gmail.com >
2022-04-08 22:33:09 +09:00
hrsh7th
dc3113a79f
Add sort (required nvim-treesitter)
2022-03-30 20:41:32 +09:00
Nicolas Mattia
c60cb7a100
Make sure config is not nil ( #836 )
...
This ensures that the config is at least `{}` and never `nil`.
Otherwise, calling `cmp.setup()` errors out.
2022-03-16 13:42:57 +09:00
hrsh7th
33fc65f174
test&lint&fmt
2022-02-13 14:38:31 +09:00
hrsh7th
7e473b99d3
Support multiple filetypes
...
Fix #786
2022-02-12 21:05:17 +09:00
hrsh7th
26a9184c88
Add filetype config
...
Use view.entries == 'native' instead of experimental.native_menu
2022-02-11 15:20:24 +09:00
hrsh7th
da4c071f6b
Fix #648
2021-12-14 22:41:45 +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
ea10d5bd2f
Normalize keymapping configuration
...
Fix #475
Fix #570
Fix #533
2021-11-23 20:58:04 +09:00
hrsh7th
56ad7c9158
Rename type as cmdtype
2021-11-18 03:04:15 +09:00
hrsh7th
c67ed9d8bc
Fix #463
2021-11-03 02:29:06 +09:00
hrsh7th
b4e761e307
Fix #456
2021-11-02 12:09:42 +09:00
hrsh7th
669803b9ff
Normalize mapping key before use
...
May be fixes #431
2021-10-29 22:44:41 +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
0f28030aef
Improve macro & dot-repeat support ( #363 )
...
* 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
* Remove cmdline features
2021-10-16 23:37:32 +09:00
hrsh7th
2f2794decd
refactor
2021-10-11 18:38:01 +09:00
hrsh7th
5bed2dc9f3
Fix cache problem #272
2021-10-07 14:34:07 +09:00
hrsh7th
b47a703a48
RFC: CmpStatus command ( #210 )
...
* Add `CmpStatus` command
* Update headings
* Fix heading
* Update headings
* Add README.md
* Fix tests
* Force invoke InsertEnter
2021-09-17 13:29:28 +09:00
hrsh7th
9c460395a0
InsertMode is required
2021-09-13 01:05:31 +09:00
hrsh7th
a78894a09a
Implement enabled=false configuration
2021-09-13 00:59:48 +09:00
hrsh7th
abed04a6d4
Improve performance and buf fixes
2021-09-07 01:14:17 +09:00
hrsh7th
889109cbc0
Implement source specific options
2021-09-03 20:30:40 +09:00
hrsh7th
25a4d9c0be
Fix multiple setup.buffer
2021-08-29 22:23:54 +09:00
hrsh7th
d23d3533cf
dev ( #1 )
...
* dev
* Improve sync design
* Support buffer local mapping
* tmp
* tmp
* tmp
* tmp
* tmp
* tmp
* tmp
* tmp
* tmp
* tmp
* tmp
* tmp
* tmp
* tmp
* tmp
* tmp
* tmp
* tmp
* tmp
* tmp
* tmp
* tmp
* tmp
* tmp
* tmp
* tmp
* tmp
* tmp
* tmp
* tmp
* tmp
* tmp
* stylua
* tmp
* tmp
* tmp
* tmp
* tmp
* tmp
* tmp
* integration
* tmp
* tmp
* tmp
* tmp
* tmp
* tmp
* tmp
* tmp
* tmp
* tmp
* tmp
* tmp
* tmp
* tmp
* tmp
* tmp
* tmp
* update
* tmp
* tmp
* tmp
* tmp
* tmp
* tmp
* tmp
* tmp
* tmp
* tmp
* tmp
* tmp
* tmp
2021-08-04 01:07:12 +09:00