Commit Graph

570 Commits

Author SHA1 Message Date
hrsh7th
49c4050e24 Refactor a bit 2022-08-20 19:23:05 +09:00
hrsh7th
9417f48a99 Restore filetype setting 2022-08-20 19:22:50 +09:00
hrsh7th
1307917fff Fix #1139 2022-08-20 19:18:09 +09:00
hrsh7th
b1ebdb0a17 Add FAQ for clangd's command-line arguments. Fixes #999 2022-08-15 01:38:44 +09:00
hrsh7th
8ce0832a5c The default highlight groups shouldn't be default=true.
Fixes #972
2022-08-15 01:32:25 +09:00
hrsh7th
8523568448 Fix #1102 2022-08-15 01:25:50 +09:00
Lee Hanbury
983453e32c Use cmp.config.sources (#1105) v0.0.1 2022-08-15 00:55:45 +09:00
Josh Bode
706371f130 add check for nil on documentation.value (#1091) 2022-07-25 12:47:47 +09:00
hrsh7th
76ba56ce96 Decrease waits 2022-07-24 13:14:01 +09:00
hrsh7th
bf5593df8e Improve typings 2022-07-24 12:44:53 +09:00
gravndal
89df2cb223 Fix native_entries_view.info width and col calculations (#1075)
The dictionary returned by `pum_getpos()` uses `scrollbar` not
`scrollable` to indicate whether the scrollbar is visible or not.

In addition, the padding on the left side of the popup menu isn't
included in the output of `pum_getpos()`, meaning that both `col` and
`width` (as understood by nvim-cmp) are off by one when the cursor isn't
at column `0`.

These two issues were causing the documentation window and popup menu to
overlap.
2022-07-24 12:19:21 +09:00
Daan Goossens
33588ca253 fix: #1030 (#1062) 2022-07-24 12:14:42 +09:00
Tristan Partin
1568d76981 Fix type comment for cmp.ContextReason (#1045) 2022-07-24 12:13:54 +09:00
Zach Birenbaum
ad31a2b0e3 (feat) Custom item kinds (#1003) 2022-07-24 12:12:34 +09:00
hrsh7th
c4dcb1244a Fix border width calculation 2022-07-21 00:37:40 +09:00
Mitsuo Heijo
9897465a76 Fix stylua integration (#1054) 2022-06-29 21:08:06 +09:00
Zhuoyun Wei
1cad1815e1 Fix typo (#1047) 2022-06-24 12:36:04 +09:00
tzachar
8cab788976 add events: view_opened and view_closed (#965)
* add events: view_opened and view_closed

* fix typos

* rename view -> menu
2022-06-24 12:35:47 +09:00
Cameron
df6734aa01 Add Completion Window Options (#901)
* Add window.completion.side_padding and window.completion.col_offset

* add col_offset and side_padding options to config/window
2022-06-15 11:49:16 +09:00
MurdeRM3L0DY
0e65333c7f make debounce and throttle time configurable (#1026)
* make debounce and throttle time configurable

* fix documentation
2022-06-15 02:21:55 +09:00
Jonas Strittmatter
15c7bf7c0d Update documentation (#1019)
Co-authored-by: hrsh7th <629908+hrsh7th@users.noreply.github.com>
2022-06-09 16:41:59 +09:00
Benoit de Chezelles
ce643c12f1 Fix doc typo (#1025) 2022-06-08 13:32:34 +09:00
William Boman
033a817ced fix: only scroll docs if docs view is visible (#1011) 2022-05-25 10:32:11 +09:00
hrsh7th
6e1e386515 Update bug_report.yml 2022-05-18 12:15:11 +09:00
hrsh7th
cd694b8944 Fix #989 2022-05-16 12:08:13 +09:00
Jaehwang Jung
160405250e Reuse scratch buffer for keymap normalization (#991) 2022-05-15 18:44:21 +09:00
John Nguyen
23e182d6d6 fix(types)(cmp): missing filetype type (#990) 2022-05-15 11:25:58 +09:00
hrsh7th
9a0c639ac2 Fix #987 2022-05-13 20:36:28 +09:00
hrsh7th
0318a3cbc1 Improve the codes for sumneko friendly 2022-05-13 19:25:00 +09:00
zeertzjq
6527e5f31b fix: use scratch buffer and lhs for keymap.normalize() (#986)
Fix https://github.com/neovim/neovim/issues/18303

This can be slower, I don't know how frequently this function is called as I don't use this plugin.
2022-05-13 19:18:29 +09:00
hrsh7th
a226b6a4ff Fix #973 2022-05-09 11:55:29 +09:00
hrsh7th
f81bfee109 Fix #964
Fix #963
Fix #966
2022-05-04 23:51:59 +09:00
hrsh7th
c6126cca36 Fix #962 2022-05-04 12:18:09 +09:00
hrsh7th
e64421ef58 Fix #960 2022-05-04 02:57:43 +09:00
hrsh7th
5054c14490 dev (#956)
* Adjust empty line count

* Implement vim.api.nvim_create_autocmd (#844)

* Implement vim.api.nvim_create_autocmd

* Only use vim.api.nvim_create_autocmd on nighly

* Cleanup

* cleanup

* Rename autos.lua to autocmds.lua

* Fix forgot to rename autos to autocmds

* Remove legacy autocmd

* Add descriptions on autocmds

* Update descriptions on autocmds

* Update CmpStatus command to lua API (#922)

Signed-off-by: Micah Halter <micah@balena.io>

* Move highlights to nvim_set_hl lua API (#925)

Signed-off-by: Micah Halter <micah@balena.io>

* Add default to highlight

* Refactor autocmds

* fmt

* Improve performance

* Fix bug

* Improve matching logic
Fixes https://github.com/hrsh7th/nvim-cmp/discussions/954

* Fix format

* Improve performance
Fix #825

* Fix cmdline redraw bug

* Fix event

Co-authored-by: hrsh7th <>
Co-authored-by: zer09 <zer09@users.noreply.github.com>
Co-authored-by: Micah Halter <micah@mehalter.com>
2022-05-04 01:47:01 +09:00
manusandoval05
bba6fb67fd Fixed typo (#928) 2022-05-03 01:48:32 +09:00
Greg Hurrell
101f4aa7ba fix: don't show non-working configuration in deprecation suggestion (#946)
As reported here: https://github.com/hrsh7th/nvim-cmp/issues/936
2022-05-03 01:45:00 +09:00
Uefair
bb5cac4dce Help page changes. (#952)
Co-authored-by: alexey <serendipitousdog@protonmail.com>
2022-05-03 01:43:24 +09:00
hrsh7th
baa8646c24 Add confirmation.get_commit_characters documents.
Fix #948
2022-05-01 22:58:26 +09:00
hrsh7th
f841fa6ced Reduce flicker 2022-05-01 03:27:16 +09:00
nskhei
74284cffb6 docs: fix sample code for cmp.config.sources (#942) 2022-04-28 14:10:25 +09:00
hrsh7th
433af3dffc Add docs 2022-04-21 21:29:40 +09:00
Jongwook Choi
f51dc68e1b fix: Fix stylua errors and install_stylua script (#923)
- Fix code style issues, suggested by stylua
- Update install_stylua.lua script so that it can run in macOS as well.
2022-04-20 13:21:37 +09:00
hrsh7th
f9f6d8dc49 Fix scopes comparator 2022-04-20 13:20:51 +09:00
Łukasz Kurpiewski
07132dc597 fix: use vim.treesitter.query instead of deprecated nvim-treesitter.ts_utils (#919) 2022-04-19 19:43:36 +09:00
hrsh7th
2aa7eee28b Improve README.md 2022-04-18 23:50:46 +09:00
Stéphane Bisinger
b5433f901e docs!: improve the instructions to follow breaking changes (#231) (#904)
Improve the README instruction on where to find breaking changes.
Included a suggestion to subscribe to the
[github issue](https://github.com/hrsh7th/nvim-cmp/issues/231) to
get notified about changes.
2022-04-14 20:42:08 +09:00
hrsh7th
d3e74ec381 Remove print 2022-04-14 17:31:08 +09:00
hrsh7th
77d88ba056 Revert #873 fixes for Fix #899 2022-04-14 16:26:14 +09:00
Jaehwang Jung
ec8e87ce5c Revert #886 and refactor (#900)
* Revert "make completion popup windows have bufhidden=wipe (#886)"

This reverts commit f573479528.

* Remove redundant nvim_buf_set_option

`buftype=nofile` and `bufhidden=hide` are already set by
`nvim_create_buf(false, true)`.
2022-04-14 14:38:52 +09:00