From 022f8e471d6f47fb632d2d3d970f36b45a0a3599 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Sat, 14 Nov 2026 17:58:16 +0100 Subject: fix(user/nvim): restore command autocompletion in comments --- user/nvim/init.lua | 14 +++++++++----- 1 file 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 }, -- cgit v1.3.1