fix: replace mini comment with Comment

This commit is contained in:
Dinesh Salunke 2023-06-17 12:09:06 +05:30
parent 26a3588731
commit a678ff4435

View File

@ -43,11 +43,11 @@ return {
local cmp = require("cmp") local cmp = require("cmp")
return { return {
completion = { completion = {
completeopt = "menu,menuone,noinsert" completeopt = "menu,menuone,noinsert",
}, },
snippet = { snippet = {
expand = function(args) expand = function(args)
require("luasnip").lsp_expand(args) require("luasnip").lsp_expand(args.body)
end, end,
}, },
mapping = cmp.mapping.preset.insert({ mapping = cmp.mapping.preset.insert({
@ -62,28 +62,20 @@ return {
{ name = "nvim_lsp" }, { name = "nvim_lsp" },
{ name = "buffer", keyword_length = 5 }, { name = "buffer", keyword_length = 5 },
{ name = "luasnip", keyword_length = 3 }, { name = "luasnip", keyword_length = 3 },
}) }),
} }
end end,
}, },
{ {
"echasnovski/mini.pairs", "echasnovski/mini.pairs",
event = "VeryLazy", event = "VeryLazy",
opts = {} opts = {},
}, },
{ {
"echasnovski/mini.comment", "numToStr/Comment.nvim",
event = "VeryLazy", event = "VeryLazy",
opts = { opts = {},
options = {
custom_commentstring = function()
return require("ts_context_commentstring.internal").calculate_commentstring() or vim.bo.commentstring
end,
},
},
}, },
} }