Better config on plugins, add lazygit & update readme

This commit is contained in:
yaso 2026-07-02 12:48:12 +02:00
parent 87fc33a614
commit 4be5d628b8
9 changed files with 132 additions and 66 deletions

View file

@ -0,0 +1,23 @@
return {
{
'windwp/nvim-autopairs',
event = "InsertEnter",
config = function()
local autopairs = require("nvim-autopairs")
autopairs.setup({
check_ts = false,
map_cr = false,
ts_config = {
lua = { "string" },
dart = { "string_literal" }
}
})
local cmp_autopairs = require("nvim-autopairs.completion.cmp")
local pcall_cmp, cmp = pcall(require, "cmp")
if pcall_cmp then
cmp.event:on("confirm_done", cmp_autopairs.on_confirm_done())
end
end
},
}