all repos

init.lua @ 89db78bb6982613aaff64bb8025d81c6f6f9d0b2

my nvim config
2 files changed, 13 insertions(+), 1 deletions(-)
update autopairs config
Author: neoteny ss2316544@gmail.com
Committed at: 2022-01-24 18:48:19 +0200
Parent: 1ce6549
M lua/plugin.lua

@@ -26,7 +26,7 @@ use {

"windwp/nvim-autopairs", event = "InsertEnter", module = "nvim-autopairs", - config = get_config "nvim-autopairs", + config = get_config "plugin.autopairs", } use {
A lua/plugin/autopairs.lua

@@ -0,0 +1,12 @@

+local M = {} + +function M.setup() + local npairs = require "nvim-autopairs" + npairs.setup() + + npairs.add_rules(require "nvim-autopairs.rules.endwise-elixir") + npairs.add_rules(require "nvim-autopairs.rules.endwise-lua") + npairs.add_rules(require "nvim-autopairs.rules.endwise-ruby") +end + +return M