fix double submit

This commit is contained in:
2026-07-03 03:37:56 +02:00
parent af9c944768
commit f23aa495a4
2 changed files with 9 additions and 15 deletions

View File

@@ -17,8 +17,15 @@ cmp.setup({
-- See :h blink-cmp-config-keymap for defining your own keymap -- See :h blink-cmp-config-keymap for defining your own keymap
keymap = { preset = 'default' }, keymap = { preset = 'default' },
-- (Default) Only show the documentation popup when manually triggered completion = {
completion = { documentation = { auto_show = false } }, documentation = { auto_show = false },
-- list = {
-- selection = {
-- preselect = false,
-- auto_insert = false,
-- },
-- },
},
-- (Default) list of enabled providers defined so that you can extend it -- (Default) list of enabled providers defined so that you can extend it
-- elsewhere in your config, without redefining it, due to `opts_extend` -- elsewhere in your config, without redefining it, due to `opts_extend`

View File

@@ -43,19 +43,6 @@ end
configure_diagnostics() configure_diagnostics()
vim.api.nvim_create_autocmd("LspAttach", {
callback = function(ev)
local client = vim.lsp.get_client_by_id(ev.data.client_id)
if not client then
return
end
vim.lsp.completion.enable(true, client.id, ev.buf, {
autotrigger = true,
})
end,
})
local capabilities = require("blink.cmp").get_lsp_capabilities() local capabilities = require("blink.cmp").get_lsp_capabilities()
local managed_servers = { local managed_servers = {
"bashls", "bashls",