mirror of
https://github.com/kogakure/dotfiles.git
synced 2026-02-03 20:25:30 +00:00
56 lines
1.0 KiB
Lua
56 lines
1.0 KiB
Lua
-- Nvim Treesitter configurations
|
|
-- https://github.com/nvim-treesitter/nvim-treesitter
|
|
return {
|
|
"nvim-treesitter/nvim-treesitter",
|
|
depencendies = {
|
|
"nvim-treesitter/playground",
|
|
},
|
|
opts = {
|
|
indent = { enable = false },
|
|
ensure_installed = {
|
|
"astro",
|
|
"bash",
|
|
"css",
|
|
"fish",
|
|
"gitignore",
|
|
"go",
|
|
"gomod",
|
|
"gosum",
|
|
"gowork",
|
|
"graphql",
|
|
"html",
|
|
"http",
|
|
"javascript",
|
|
"json",
|
|
"lua",
|
|
"markdown",
|
|
"markdown_inline",
|
|
"python",
|
|
"query",
|
|
"regex",
|
|
"scss",
|
|
"sql",
|
|
"svelte",
|
|
"tsx",
|
|
"typescript",
|
|
"vim",
|
|
"vimdoc",
|
|
"yaml",
|
|
},
|
|
},
|
|
config = function(_, opts)
|
|
require("nvim-treesitter.configs").setup(opts)
|
|
|
|
-- Add custom filetypes
|
|
vim.filetype.add({
|
|
extension = {
|
|
mdx = "mdx",
|
|
rss = "rss",
|
|
},
|
|
})
|
|
|
|
vim.treesitter.language.register("markdown", "mdx")
|
|
vim.treesitter.language.register("xml", "rss")
|
|
end,
|
|
}
|