28 lines
560 B
Lua
28 lines
560 B
Lua
-- https://github.com/altermo/ultimate-autopair.nvim
|
|
return {
|
|
"altermo/ultimate-autopair.nvim",
|
|
event = { "InsertEnter", "CmdlineEnter" },
|
|
branch = "v0.6",
|
|
opts = {
|
|
fastwarp = {
|
|
faster = true,
|
|
},
|
|
-- Fix single quotes in rust
|
|
config_internal_pairs = {
|
|
{
|
|
"'",
|
|
"'",
|
|
multiline = false,
|
|
nft = {},
|
|
suround = true,
|
|
cond = function(fn)
|
|
if fn.get_ft() ~= "rust" then
|
|
return true
|
|
end
|
|
return not fn.in_node({ "bounded_type", "reference_type", "type_arguments", "type_parameters" })
|
|
end,
|
|
},
|
|
},
|
|
},
|
|
}
|