feat(nix): move Nix configuration to root level

This commit is contained in:
Stefan Imhoff
2024-07-31 12:46:55 +02:00
parent ec67a98313
commit c5be8e73b6
224 changed files with 62 additions and 67 deletions

View File

@@ -0,0 +1,55 @@
-- 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,
}