mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 16:53:00 +00:00
breaking: Remove setup script and use chezmoi
This commit is contained in:
parent
02bbb24cac
commit
0051a163c3
190 changed files with 118 additions and 3456 deletions
21
dot_config/nvim/lua/plugins/mod/autopairs.lua
Normal file
21
dot_config/nvim/lua/plugins/mod/autopairs.lua
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
return {
|
||||
"windwp/nvim-autopairs",
|
||||
event = "InsertEnter",
|
||||
config = function()
|
||||
local npairs = require("nvim-autopairs")
|
||||
local Rule = require("nvim-autopairs.rule")
|
||||
|
||||
npairs.setup()
|
||||
npairs.add_rule(Rule("$", "$", "markdown"))
|
||||
npairs.add_rule(Rule("\\(", "\\)", "tex"))
|
||||
npairs.add_rule(Rule("\\[", "\\]", "tex"))
|
||||
|
||||
npairs.add_rules({
|
||||
Rule("%(", "%)", "cmd"):with_pair(function(opts)
|
||||
if vim.fn.getcmdtype() == ":" then
|
||||
return true
|
||||
end
|
||||
end),
|
||||
})
|
||||
end,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue