From e5c8f244466ff4da4b12c1bbfd2292a8408ff1d2 Mon Sep 17 00:00:00 2001 From: Sam Nystrom Date: Wed, 5 Jul 2023 21:26:02 -0400 Subject: Add Neovim config --- .config/nvim/lua/plugins/treesitter.lua | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .config/nvim/lua/plugins/treesitter.lua (limited to '.config/nvim/lua/plugins/treesitter.lua') diff --git a/.config/nvim/lua/plugins/treesitter.lua b/.config/nvim/lua/plugins/treesitter.lua new file mode 100644 index 0000000..ba45ada --- /dev/null +++ b/.config/nvim/lua/plugins/treesitter.lua @@ -0,0 +1,33 @@ +return { + { + "nvim-treesitter/nvim-treesitter", + dependencies = { "nvim-treesitter/nvim-treesitter-textobjects" }, + event = { "BufReadPre", "BufNewFile" }, + config = function() + require("nvim-treesitter.configs").setup({ + auto_install = true, + ensure_installed = { + "lua", + "python", + "rust", + "bash", + "regex", + "json", + "toml", + "yaml", + "ini", + "markdown", + "html", + "css", + "javascript", + "typescript", + "tsx", + "scss", + "clojure", + "sql", + }, + highlight = { enable = true }, + }) + end, + }, +} -- cgit v1.2.3