diff options
| author | Martin Fischer <martin@push-f.com> | 2026-11-14 17:58:16 +0100 |
|---|---|---|
| committer | Martin Fischer <martin@push-f.com> | 2026-11-14 18:01:08 +0100 |
| commit | 022f8e471d6f47fb632d2d3d970f36b45a0a3599 (patch) | |
| tree | fcc6bc33e62537d6b73ec4528e67584d6a510487 | |
| parent | 7c28392c01d1a7777ac2f618c3381a1a583ce774 (diff) | |
| -rw-r--r-- | user/nvim/init.lua | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/user/nvim/init.lua b/user/nvim/init.lua index e918ba0..23146f5 100644 --- a/user/nvim/init.lua +++ b/user/nvim/init.lua @@ -209,11 +209,15 @@ require('blink.cmp').setup({ -- blink.cmp's default buffer/path/snippet sources, which otherwise trigger -- completions in plain text and Markdown files. default = { 'lsp' }, - transform_items = function(_, items) - -- Some LSPs do autocompletion in comments (e.g. nixd and lua_ls). - -- Ignore them in comments. - return cursor_is_in_comment() and {} or items - end, + providers = { + lsp = { + transform_items = function(_, items) + -- Some LSPs do autocompletion in comments (e.g. nixd and lua_ls). + -- Ignore them in comments. + return cursor_is_in_comment() and {} or items + end, + }, + }, }, completion = { documentation = { auto_show = true }, |
