Autopairs
This commit is contained in:
@ -6,6 +6,7 @@
|
||||
"lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" },
|
||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "80c0130c5f16b551865a69e832f1feadeedb5fbe" },
|
||||
"mason.nvim": { "branch": "main", "commit": "44d1e90e1f66e077268191e3ee9d2ac97cc18e65" },
|
||||
"nvim-autopairs": { "branch": "master", "commit": "c2a0dd0d931d0fb07665e1fedb1ea688da3b80b4" },
|
||||
"nvim-cmp": { "branch": "main", "commit": "85bbfad83f804f11688d1ab9486b459e699292d6" },
|
||||
"nvim-lspconfig": { "branch": "master", "commit": "92ee7d42320edfbb81f3cad851314ab197fa324a" },
|
||||
"nvim-tree.lua": { "branch": "master", "commit": "ca8d82fff26cb12ced239713e3222f4a9dcd0da0" },
|
||||
|
||||
@ -19,6 +19,7 @@ vim.opt.rtp:prepend(lazypath)
|
||||
-- Initialize lazy.nvim
|
||||
local plugins = {
|
||||
require("plugins.colorschemes"), -- theme
|
||||
require("plugins.editing"), -- editing
|
||||
require("plugins.lsp"), -- LSP
|
||||
require("plugins.telescope"), -- fuzzy finder
|
||||
require("plugins.treesitter"), -- syntax tree
|
||||
|
||||
20
lua/plugins/editing.lua
Normal file
20
lua/plugins/editing.lua
Normal file
@ -0,0 +1,20 @@
|
||||
return {
|
||||
{
|
||||
"windwp/nvim-autopairs",
|
||||
config = function()
|
||||
local npairs = require("nvim-autopairs")
|
||||
npairs.setup({
|
||||
check_ts = true, -- enable Treesitter integration
|
||||
disable_filetype = { "TelescopePrompt", "vim" },
|
||||
})
|
||||
|
||||
-- If using nvim-cmp for completion, integrate it:
|
||||
local cmp_autopairs = require("nvim-autopairs.completion.cmp")
|
||||
local cmp = require("cmp")
|
||||
cmp.event:on(
|
||||
"confirm_done",
|
||||
cmp_autopairs.on_confirm_done()
|
||||
)
|
||||
end,
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user