Skip to content

Commit 67ddab1

Browse files
breaking: Change default close events for signature pop-up
1 parent d5aa882 commit 67ddab1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lua/scnvim/config.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,11 @@ local default = {
147147
signature = {
148148
float = true,
149149
auto = true,
150-
config = {}, -- TODO: can we use vim.diagnostic instead..?
150+
config = {
151+
-- Override the default close events for vim.lsp.util.open_floating_preview() which are:
152+
-- { 'CursorMoved', 'CursorMovedI', 'InsertCharPre' }
153+
close_events = { 'InsertLeave', 'CursorMoved' },
154+
},
151155
},
152156
},
153157

0 commit comments

Comments
 (0)