fixed auto pairs

This commit is contained in:
MasterGordon 2021-09-06 17:58:08 +02:00
parent 95cafcddcd
commit 83702effde
1 changed files with 5 additions and 6 deletions

View File

@ -64,6 +64,7 @@ return require("packer").startup(
use {
"nvim-treesitter/nvim-treesitter",
run = ":TSUpdate",
after = "nvim-compe",
config = function()
local npairs = require("nvim-autopairs")
npairs.setup(
@ -80,17 +81,13 @@ return require("packer").startup(
auto_select = false -- auto select first item
}
)
require "nvim-treesitter.configs".setup {
context_commentstring = {
enable = true,
enable_autocmd = true
},
highlight = {
enable = true,
custom_captures = {
["jsx_element"] = "TSTag"
}
enable = true
},
indent = {
enable = true
@ -98,7 +95,9 @@ return require("packer").startup(
autotag = {
enable = true
},
autopairs = {enable = true}
autopairs = {
enable = true
}
}
end,
requires = {"JoosepAlviste/nvim-ts-context-commentstring", "windwp/nvim-ts-autotag", "windwp/nvim-autopairs"}