fixed auto pairs
This commit is contained in:
parent
95cafcddcd
commit
83702effde
|
|
@ -64,6 +64,7 @@ return require("packer").startup(
|
||||||
use {
|
use {
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
run = ":TSUpdate",
|
run = ":TSUpdate",
|
||||||
|
after = "nvim-compe",
|
||||||
config = function()
|
config = function()
|
||||||
local npairs = require("nvim-autopairs")
|
local npairs = require("nvim-autopairs")
|
||||||
npairs.setup(
|
npairs.setup(
|
||||||
|
|
@ -80,17 +81,13 @@ return require("packer").startup(
|
||||||
auto_select = false -- auto select first item
|
auto_select = false -- auto select first item
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
require "nvim-treesitter.configs".setup {
|
require "nvim-treesitter.configs".setup {
|
||||||
context_commentstring = {
|
context_commentstring = {
|
||||||
enable = true,
|
enable = true,
|
||||||
enable_autocmd = true
|
enable_autocmd = true
|
||||||
},
|
},
|
||||||
highlight = {
|
highlight = {
|
||||||
enable = true,
|
enable = true
|
||||||
custom_captures = {
|
|
||||||
["jsx_element"] = "TSTag"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
indent = {
|
indent = {
|
||||||
enable = true
|
enable = true
|
||||||
|
|
@ -98,7 +95,9 @@ return require("packer").startup(
|
||||||
autotag = {
|
autotag = {
|
||||||
enable = true
|
enable = true
|
||||||
},
|
},
|
||||||
autopairs = {enable = true}
|
autopairs = {
|
||||||
|
enable = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
end,
|
end,
|
||||||
requires = {"JoosepAlviste/nvim-ts-context-commentstring", "windwp/nvim-ts-autotag", "windwp/nvim-autopairs"}
|
requires = {"JoosepAlviste/nvim-ts-context-commentstring", "windwp/nvim-ts-autotag", "windwp/nvim-autopairs"}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue