mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
nvim: stop using nix for nvim
I just wanna work, I don't wanna nix
This commit is contained in:
parent
157b568ab4
commit
3b08674586
30 changed files with 0 additions and 9 deletions
24
.config/nvim/after/plugin/autopairs.lua
Normal file
24
.config/nvim/after/plugin/autopairs.lua
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
local Rule = require "nvim-autopairs.rule"
|
||||
local cond = require "nvim-autopairs.conds"
|
||||
local npairs = require "nvim-autopairs"
|
||||
|
||||
npairs.setup()
|
||||
|
||||
-- Intergration with `cmp`
|
||||
local cmp = require "cmp"
|
||||
local cmp_autopairs = require "nvim-autopairs.completion.cmp"
|
||||
cmp.event:on("confirm_done", cmp_autopairs.on_confirm_done())
|
||||
|
||||
-------------------
|
||||
-- Tex and Typst --
|
||||
-------------------
|
||||
npairs.add_rules {
|
||||
Rule("$", "$", { "tex", "typst" })
|
||||
:with_pair(cond.not_before_regex "%a")
|
||||
:with_pair(cond.not_after_regex "%a")
|
||||
:with_move(cond.done),
|
||||
|
||||
Rule("```", "```", "typst")
|
||||
:with_pair(cond.not_before_text "```")
|
||||
:with_cr(cond.done),
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue