a bit sloppy but working
This commit is contained in:
10
lua/config/nvim-autopairs.lua
Normal file
10
lua/config/nvim-autopairs.lua
Normal file
@@ -0,0 +1,10 @@
|
||||
require("nvim-autopairs").setup({
|
||||
enable_check_bracket_line = false, -- Don't add pairs if it already has a close pair in the same line
|
||||
ignored_next_char = "[%w%.]", -- will ignore alphanumeric and `.` symbol
|
||||
check_ts = true, -- use treesitter to check for a pair.
|
||||
ts_config = {
|
||||
lua = { "string" }, -- it will not add pair on that treesitter node
|
||||
javascript = { "template_string" },
|
||||
java = false, -- don't check treesitter on java
|
||||
},
|
||||
})
|
Reference in New Issue
Block a user