changed treesitter

This commit is contained in:
pika 2024-06-25 11:25:08 +02:00
parent f309e61af6
commit 9523a0d8d6

View file

@ -1,16 +1,16 @@
return {
'nvim-treesitter/nvim-treesitter',
event = { 'BufReadPre', 'BufNewFile' },
build = ':TSUpdate',
"nvim-treesitter/nvim-treesitter",
event = { "BufReadPre", "BufNewFile" },
build = ":TSUpdate",
dependencies = {
'windwp/nvim-ts-autotag',
"windwp/nvim-ts-autotag",
},
config = function()
-- import nvim-treesitter plugin
local treesitter = require 'nvim-treesitter.configs'
local treesitter = require("nvim-treesitter.configs")
-- configure treesitter
treesitter.setup { -- enable syntax highlighting
treesitter.setup({ -- enable syntax highlighting
highlight = {
enable = true,
},
@ -22,36 +22,44 @@ return {
},
-- ensure these language parsers are installed
ensure_installed = {
'json',
'javascript',
'typescript',
'tsx',
'yaml',
'html',
'css',
'prisma',
'markdown',
'markdown_inline',
'svelte',
'graphql',
'bash',
'lua',
'vim',
'dockerfile',
'gitignore',
'query',
'vimdoc',
'c',
"bash",
"fish",
"http",
"html",
"php",
"css",
"scss",
"gitignore",
"git_config",
"markdown",
"markdown_inline",
"dockerfile",
"yaml",
"json",
"javascript",
"typescript",
"tsx",
"graphql",
"lua",
"query",
"c",
"prisma",
"svelte",
"hyprlang",
"ini",
"passwd",
"vim",
"vimdoc",
},
incremental_selection = {
enable = true,
keymaps = {
init_selection = '<C-space>',
node_incremental = '<C-space>',
init_selection = "<C-space>",
node_incremental = "<C-space>",
scope_incremental = false,
node_decremental = '<bs>',
node_decremental = "<bs>",
},
},
}
})
end,
}