Better config on plugins, add lazygit & update readme
This commit is contained in:
parent
87fc33a614
commit
4be5d628b8
9 changed files with 132 additions and 66 deletions
|
|
@ -1,35 +0,0 @@
|
|||
return {
|
||||
{
|
||||
-- Git Plugin
|
||||
'tpope/vim-fugitive',
|
||||
},
|
||||
{
|
||||
"numToStr/Comment.nvim",
|
||||
config = function()
|
||||
require("Comment").setup()
|
||||
vim.keymap.set("n", "<C-/>", "gcc", { remap = true, desc = "Toggle comment" })
|
||||
vim.keymap.set("v", "<C-/>", "gc", { remap = true, desc = "Toggle comment" })
|
||||
end,
|
||||
},
|
||||
{
|
||||
'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
|
||||
},
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue