clip and ts
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
vim.opt.clipboard = "unnamedplus"
|
||||||
|
|
||||||
vim.opt.termguicolors = true
|
vim.opt.termguicolors = true
|
||||||
|
|
||||||
vim.opt.expandtab = true
|
vim.opt.expandtab = true
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
|
lazy = false,
|
||||||
|
build = ":TSUpdate",
|
||||||
|
opts = {
|
||||||
indent = { enable = true },
|
indent = { enable = true },
|
||||||
highlight = { enable = true },
|
highlight = { enable = true },
|
||||||
folds = { enable = true },
|
folds = { enable = true },
|
||||||
@@ -9,7 +12,6 @@ return {
|
|||||||
"diff",
|
"diff",
|
||||||
"html",
|
"html",
|
||||||
"json",
|
"json",
|
||||||
"jsonc",
|
|
||||||
"lua",
|
"lua",
|
||||||
"luadoc",
|
"luadoc",
|
||||||
"luap",
|
"luap",
|
||||||
@@ -24,4 +26,12 @@ return {
|
|||||||
"yaml",
|
"yaml",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
config = function(_, opts)
|
||||||
|
local ts = require "nvim-treesitter"
|
||||||
|
|
||||||
|
if type(opts.ensure_installed) == "table" and #opts.ensure_installed > 0 then
|
||||||
|
ts.install(opts.ensure_installed)
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user