diff --git a/README.md b/README.md new file mode 100644 index 0000000..5bb9014 --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# README mein Setup + diff --git a/lazy-lock.json b/lazy-lock.json index 1a8ca5e..196ee56 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -2,6 +2,7 @@ "lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" }, "lualine.nvim": { "branch": "master", "commit": "47f91c416daef12db467145e16bed5bbfe00add8" }, "nightfox.nvim": { "branch": "main", "commit": "ba47d4b4c5ec308718641ba7402c143836f35aa9" }, + "nvim-treesitter": { "branch": "main", "commit": "5cb05e1b0fa3c469958a2b26f36b3fe930af221c" }, "nvim-web-devicons": { "branch": "master", "commit": "737cf6c657898d0c697311d79d361288a1343d50" }, "plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" }, "telescope-fzf-native.nvim": { "branch": "main", "commit": "6fea601bd2b694c6f2ae08a6c6fab14930c60e2c" }, diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua new file mode 100644 index 0000000..91ba945 --- /dev/null +++ b/lua/plugins/treesitter.lua @@ -0,0 +1,21 @@ +return { + "nvim-treesitter/nvim-treesitter", + version = false, + build = ":TSUpdate", + main = "nvim-treesitter.configs", + opts = { + ensure_installed = { + "bash", "bibtex", "c", "css", "fish", "go", + "java", "rust", "lua", "vim", "python", "cpp", + "markdown", "markdown-inline","html", "yaml", "latex" }, + auto_install = true, + highlight = { enable = true }, + indent = { enable = true }, + }, + config = function(_, opts) + local ok, configs = pcall(require, "nvim-treesitter.configs") + if ok then configs.setup(opts) end + end, +} + +