Leix b
78bb79b18a
fix(rockspec): add doc folder ( #1481 )
2023-04-24 13:53:56 +09:00
hrsh7th
777450fd0a
Improve docs
2023-03-17 13:22:04 +09:00
Turiiya
feed47fd1d
fix: annotate complete option as optional ( #1475 )
2023-03-05 22:48:55 +09:00
Joey Buiteweg
01f697a689
fix: in lua if(0) evaluates to true, so check vim.fn.has == 1 ( #1465 )
2023-02-27 15:39:37 +09:00
musjj
227306a339
fix: de-duplicate completion correctly ( #1466 )
2023-02-27 15:39:25 +09:00
NAKAI Tsuyoshi
339186c979
fix CI ( #1462 )
2023-02-27 15:28:01 +09:00
hrsh7th
7a3b1e76f7
Improve docs
2023-02-24 12:23:36 +09:00
hrsh7th
4261563063
Fix #1443
2023-02-24 12:15:40 +09:00
hrsh7th
7cd39409e7
Fix #1443
2023-02-23 13:39:43 +09:00
Joey Buiteweg
ba7a53478d
fix: better check for if setcmdline() is available ( #1456 )
2023-02-22 16:23:58 +09:00
Bradley Jones
d3a2833c11
doc: fix spelling of whether ( #1453 )
...
Signed-off-by: Bradley Jones <jones.bradley@me.com>
2023-02-22 00:08:00 +09:00
NAKAI Tsuyoshi
8202df9561
fix: prevent autocmd outbursts by using setcmdline instead of feedkey ( #1446 )
2023-02-19 00:58:05 +09:00
hrsh7th
0c6a89af9a
Improve perf
2023-02-18 16:46:02 +09:00
hrsh7th
ea9eaff573
Maybe improve cmdline redraw
2023-02-16 22:53:08 +09:00
Sizhe Zhao
208d69f233
README.md: don't set 'completeopt' ( #1442 )
2023-02-16 00:02:19 +09:00
hrsh7th
c4128bcd13
Fix CI
2023-02-15 00:32:21 +09:00
hrsh7th
a926412e16
Fix fuzzy matching option check and matched position
2023-02-15 00:30:03 +09:00
hrsh7th
1b2e843a69
Add cmp.mapping.preset.* change policy
2023-02-14 23:39:56 +09:00
hrsh7th
6635b7aee5
Fix fuzzy match without no partial match
2023-02-14 22:41:28 +09:00
hrsh7th
aae0c3e4e7
Implement middle fuzzy matching
...
Fixes #1422
2023-02-11 22:52:28 +09:00
Wuelner Martínez
53f49c5145
feat(mapping): add all native mappings ( #1430 )
...
* feat(mapping): fully mimics the behavior of native `<C-n>` and `<C-p>`
Signed-off-by: Wuelner Martínez <wuelner.martinez@outlook.com>
* feat(mapping): added more native mappings to the `cmdline` preset
Signed-off-by: Wuelner Martínez <wuelner.martinez@outlook.com>
* fix(mapping): improved `<Tab>` and `<S-Tab>` mapppings of `cmdline`
Signed-off-by: Wuelner Martínez <wuelner.martinez@outlook.com>
---------
Signed-off-by: Wuelner Martínez <wuelner.martinez@outlook.com>
2023-02-11 22:31:42 +09:00
tummetott
cfafe0a1ca
Improved: ALL option settings do not fire the OptionSet
event ( #1417 )
2023-02-04 01:09:00 +09:00
tummetott
e7e2ef7031
Setting local window options does not trigger the "OptionSet" event ( #1415 )
2023-01-26 20:10:50 +09:00
hrsh7th
11a95792a5
Disable sort_text by default
2023-01-06 15:29:16 +09:00
hrsh7th
4748ea5a5a
Fix locality sorting
2023-01-06 13:45:46 +09:00
MovEaxEsp
c49ad26e89
keymap.lua: Fix duplicate keymap detection ( #1379 )
...
'listen' has some code in it to try to not re-set a map for an existing mapping, by checking the 'desc' of the table returned from 'get_map'. Since 'desc' was never included in the table returned from 'get_map', I'm assuming my changes here were always the intention.
This change seems to fix an issue I was seeing (with cmp-nvim-ultisnips at least) where every time I'd enter and leave Insert mode, seemingly another <Tab> handler was getting registered, overtime causing <Tab> in Insert mode to get slower and slower.
2022-12-31 02:58:28 +09:00
hrsh7th
e55033fce4
Fix #1322
2022-12-27 15:53:05 +09:00
Lyude
a9c701fa7e
Round up width/height for windows ( #1373 )
...
Ever since neovim introduced the nvim_ui_pum_set_bounds() call, GUI clients
have gained the ability to inform neovim of the current bounds of an
external popup menu provided by ext_popupmenu.
Since external popup menus are allowed to be any size in pixels which may
or may not line up cleanly on the grid, nvim allows for fractional
coordinates to be reported. This also will mean that in the event of this,
we'll end up with a cmp.WindowStyle with a float value for width/height -
which is incompatible with vim.api.nvim_open_win() and will cause us to hit
errors with GUI clients using this API call.
So, fix this by simply rounding up the width/height.
2022-12-27 13:11:42 +09:00
Marcus Caisey
d09b0c396a
convert encoding of range instead of start / end ( #1364 )
2022-12-23 16:43:55 +09:00
hrsh7th
8868cf9a09
Delete FUNDING.yml
2022-12-20 23:27:27 +09:00
NAKAI Tsuyoshi
8bbaeda725
fix(api): consider multibyte characters in get_screen_cursor (cmdline) ( #1352 )
...
* fix(api): consider multibyte characters in get_screen_cursor (cmdline)
* style: format with stylua
* test: tell luacheck that it is intended unreachable code
2022-12-15 20:27:02 +09:00
OgaKen
10b1d11252
Docs: Use tree-sitter language injection ( #1350 )
...
see:
https://github.com/nvim-treesitter/nvim-treesitter/pull/3846
2022-12-15 13:36:48 +09:00
hrsh7th
93f385c176
Fix #1327
2022-11-28 00:24:10 +09:00
hrsh7th
bb95d975ff
Fix #1329
2022-11-27 13:11:01 +09:00
hrsh7th
4c05626ccd
Improve a bit
2022-11-25 03:20:07 +09:00
hrsh7th
431f045968
Refactor a bit
2022-11-25 01:57:19 +09:00
hrsh7th
0a9ccdf122
Fix #1321
...
Fix #1315
2022-11-25 01:46:04 +09:00
hrsh7th
31a145c866
Fix #1249
2022-11-24 01:22:34 +09:00
pure-bliss
8a9e8a89ee
feat: added scrollbar option to window.completition ( #1087 ) ( #1308 )
...
* #1087 added hide_scrollbar option to window.completition
* Renamed hide_scrollbar to scrollbar, changed default value (#1087 )
* doc description update (#1087 )
* determining info.scrollbar value considering config scrollbar (#1087 )
* window.bordered scrollbar default value fix (#1087 )
2022-11-18 17:31:06 +09:00
Zhizhen He
a188be8559
Add a rule to install stylua and use the local one for other rules ( #1307 )
2022-11-16 14:22:24 +09:00
hrsh7th
e820335208
LSP 3.17 ( #1306 )
...
* 3.17
* PositionEncodingKind
* Implement PositionEncodingKind
* Remove luarc.json
2022-11-16 01:27:15 +09:00
figsoda
aee40113c2
fix: type annotation for enabled field in ConfigSchema ( #1299 )
2022-11-13 13:58:01 +09:00
Zahid
c53dd36adc
Fix parantheses bug and use string.rep ( #1297 )
2022-11-12 11:16:12 +09:00
stnley
69c85860d7
chore: run formatting ( #1295 )
...
Co-authored-by: stnley <michael@stnley.io>
2022-11-11 21:44:36 +09:00
gegoune
c37ea78941
Update docs_view.lua ( #1292 )
...
Although I have `showbreak` set for normal editing I would rather not see that in documentation. RFC.
Setting to `NONE` as per `:h showbreak`:
```
A window-local value overrules a global value. If the global value is
set and you want no value in the current window use NONE:
:setlocal showbreak=NONE
```
2022-11-11 11:27:19 +09:00
stnley
ec86960d79
fix: "count" option inserting characters ( #1293 )
...
* fix: "count" option inserting characters
Closes #1291
* Remove loop
Co-authored-by: stnley <michael@stnley.io>
2022-11-11 10:53:29 +09:00
hrsh7th
11839571ab
Fix #1276
2022-11-10 21:58:39 +09:00
NAKAI Tsuyoshi
16ec8c6b12
fix(custom_entries_view): offset is also the number of bytes ( #1288 )
2022-11-10 09:26:26 +09:00
ADoyle
bdfadc1238
feat: select_next_item and select_prev_item support "count" option. deafults to 1 ( #1262 )
...
User can increase count value to select item with pagedown/pageup.
- cmp.select_prev_item({ behavior = behavior, count = 8 })
- cmp.select_next_item({ behavior = behavior, count = 8 })
2022-11-09 19:26:20 +09:00
NAKAI Tsuyoshi
c8d4afdad6
fix(custom_entries_view): consider multibyte characters ( #1287 )
2022-11-09 19:25:26 +09:00