From 140ed3633419965e8f2228af0d5fbaa4c1956f78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98ystein=20Langeland=20Sandvik?= Date: Mon, 23 Dec 2024 16:01:54 +0100 Subject: [PATCH] fix: add java to blocked filetypes for semantic token auto_brackets (#729) --- docs/configuration/reference.md | 2 +- lua/blink/cmp/config/completion/accept.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/configuration/reference.md b/docs/configuration/reference.md index 3e86035c..9f9223bb 100644 --- a/docs/configuration/reference.md +++ b/docs/configuration/reference.md @@ -135,7 +135,7 @@ completion.accept = { -- Asynchronously use semantic token to determine if brackets should be added semantic_token_resolution = { enabled = true, - blocked_filetypes = {}, + blocked_filetypes = { 'java' }, -- How long to wait for semantic tokens to return before assuming no brackets should be added timeout_ms = 400, }, diff --git a/lua/blink/cmp/config/completion/accept.lua b/lua/blink/cmp/config/completion/accept.lua index 09e5fa1e..a81aa558 100644 --- a/lua/blink/cmp/config/completion/accept.lua +++ b/lua/blink/cmp/config/completion/accept.lua @@ -37,7 +37,7 @@ local accept = { }, semantic_token_resolution = { enabled = true, - blocked_filetypes = {}, + blocked_filetypes = { 'java' }, timeout_ms = 400, }, },