nvim: Fix Treesitter plugin configuration
This commit is contained in:
parent
6440203958
commit
d95bc5a052
1 changed files with 1 additions and 48 deletions
|
|
@ -1,53 +1,8 @@
|
||||||
vim.pack.add({
|
vim.pack.add({
|
||||||
gh("neovim-treesitter/nvim-treesitter"),
|
gh("neovim-treesitter/nvim-treesitter"),
|
||||||
|
gh("neovim-treesitter/treesitter-parser-registry"),
|
||||||
})
|
})
|
||||||
|
|
||||||
--require("nvim-treesitter.configs").setup({
|
|
||||||
-- highlight = {
|
|
||||||
-- enable = true,
|
|
||||||
-- additional_vim_regex_highlighting = false,
|
|
||||||
-- },
|
|
||||||
-- indent = {
|
|
||||||
-- enable = true
|
|
||||||
-- },
|
|
||||||
-- autotag = {
|
|
||||||
-- enable = true,
|
|
||||||
-- },
|
|
||||||
-- ensure_installed = {
|
|
||||||
-- "json",
|
|
||||||
-- "javascript",
|
|
||||||
-- "yaml",
|
|
||||||
-- "html",
|
|
||||||
-- "http",
|
|
||||||
-- "css",
|
|
||||||
-- "markdown",
|
|
||||||
-- "markdown_inline",
|
|
||||||
-- "bash",
|
|
||||||
-- "lua",
|
|
||||||
-- "vim",
|
|
||||||
-- "gitignore",
|
|
||||||
-- "go",
|
|
||||||
-- },
|
|
||||||
-- incremental_selection = {
|
|
||||||
-- enable = true,
|
|
||||||
-- keymaps = {
|
|
||||||
-- init_selection = "<C-space>",
|
|
||||||
-- node_incremental = "<C-space>",
|
|
||||||
-- scope_incremental = false,
|
|
||||||
-- node_decremental = "<bs>",
|
|
||||||
-- },
|
|
||||||
-- },
|
|
||||||
-- rainbow = {
|
|
||||||
-- enable = true,
|
|
||||||
-- disable = { "html" },
|
|
||||||
-- extended_mode = false,
|
|
||||||
-- max_file_lines = nil,
|
|
||||||
-- },
|
|
||||||
-- context_commentstring = {
|
|
||||||
-- enable = true,
|
|
||||||
-- enable_autocmd = false,
|
|
||||||
-- },
|
|
||||||
--})
|
|
||||||
require("nvim-treesitter").install {
|
require("nvim-treesitter").install {
|
||||||
"fish",
|
"fish",
|
||||||
"lua",
|
"lua",
|
||||||
|
|
@ -68,8 +23,6 @@ vim.api.nvim_create_autocmd("FileType", {
|
||||||
pattern = { "http", "html", "go" },
|
pattern = { "http", "html", "go" },
|
||||||
callback = function()
|
callback = function()
|
||||||
vim.treesitter.start()
|
vim.treesitter.start()
|
||||||
--vim.wo.foldexpr = "v:lua.vim.treesitter.foldexpr()"
|
|
||||||
--vim.wo.foldmethod = "expr"
|
|
||||||
vim.bo.indentexpr = "v:lua.require'nvim-treesitter'.indentexpr()"
|
vim.bo.indentexpr = "v:lua.require'nvim-treesitter'.indentexpr()"
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue