This commit is contained in:
abs3nt 2023-03-13 09:50:36 -07:00
parent 00aff86c0b
commit eec622354d
Signed by: abs3nt
GPG Key ID: FDC6662313FA9386

View File

@ -76,7 +76,6 @@ return {
vim.g.go_highlight_operators = 1 vim.g.go_highlight_operators = 1
vim.g.go_highlight_extra_types = 1 vim.g.go_highlight_extra_types = 1
vim.g.go_highlight_build_constraints = 1 vim.g.go_highlight_build_constraints = 1
vim.g.go_auto_type_info = 1
vim.g.go_metalinter_command = 'golangci-lint' vim.g.go_metalinter_command = 'golangci-lint'
end end
}, },
@ -265,12 +264,12 @@ return {
documentation = cmp.config.window.bordered(), documentation = cmp.config.window.bordered(),
}, },
mapping = cmp.mapping.preset.insert({ mapping = cmp.mapping.preset.insert({
['<C-b>'] = cmp.mapping.scroll_docs(-4), ['<C-b>'] = cmp.mapping.scroll_docs(-4),
['<C-f>'] = cmp.mapping.scroll_docs(4), ['<C-f>'] = cmp.mapping.scroll_docs(4),
['<C-Space>'] = cmp.mapping.complete(), ['<C-Space>'] = cmp.mapping.complete(),
['<C-e>'] = cmp.mapping.abort(), ['<C-e>'] = cmp.mapping.abort(),
['<CR>'] = cmp.mapping.confirm({ select = false }), ['<CR>'] = cmp.mapping.confirm({ select = false }),
["<Tab>"] = cmp.mapping(function(fallback) ["<Tab>"] = cmp.mapping(function(fallback)
if cmp.visible() then if cmp.visible() then
cmp.select_next_item() cmp.select_next_item()
-- You could replace the expand_or_jumpable() calls with expand_or_locally_jumpable() -- You could replace the expand_or_jumpable() calls with expand_or_locally_jumpable()
@ -283,7 +282,7 @@ return {
fallback() fallback()
end end
end, { "i", "s" }), end, { "i", "s" }),
["<S-Tab>"] = cmp.mapping(function(fallback) ["<S-Tab>"] = cmp.mapping(function(fallback)
if cmp.visible() then if cmp.visible() then
cmp.select_prev_item() cmp.select_prev_item()
elseif luasnip.jumpable(-1) then elseif luasnip.jumpable(-1) then