fix double submit
This commit is contained in:
@@ -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`
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user