Skip to content

Commit 003495c

Browse files
committed
add parinfer-rust pluging
1 parent e86a436 commit 003495c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

lua/custom/plugins/parinfer.lua

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
return {
2+
'eraserhd/parinfer-rust',
3+
build = 'cargo build --release',
4+
init = function()
5+
vim.g.parinfer_rust_enabled = 1
6+
vim.g.parinfer_rust_mode = 'smart' -- Options: "indent", "paren", "smart"
7+
vim.g.parinfer_rust_dim_parens = 1 -- Dim parens in Smart mode
8+
9+
-- Optional: Set filetypes where parinfer should be active
10+
vim.g.parinfer_rust_filetypes = { 'clojure', 'lisp', 'scheme', 'racket' }
11+
end,
12+
}

0 commit comments

Comments
 (0)