From 6fe6bd334f8c006e6fc8fdf0c8a9a4181000be13 Mon Sep 17 00:00:00 2001 From: Justine Smithies Date: Sat, 1 Feb 2025 15:54:42 +0000 Subject: Initial commit of my revamped Neovim config --- .config/nvim/lua/plugins/nvim-treesitter.lua | 52 ++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 .config/nvim/lua/plugins/nvim-treesitter.lua (limited to '.config/nvim/lua/plugins/nvim-treesitter.lua') diff --git a/.config/nvim/lua/plugins/nvim-treesitter.lua b/.config/nvim/lua/plugins/nvim-treesitter.lua new file mode 100644 index 0000000..d6b09b6 --- /dev/null +++ b/.config/nvim/lua/plugins/nvim-treesitter.lua @@ -0,0 +1,52 @@ +local config = function() + require("nvim-treesitter.configs").setup({ + build = ":TSUpdate", + indent = { + enable = true, + }, + autotag = { + enable = true, + }, + event = { + "BufReadPre", + "BufNewFile", + }, + ensure_installed = { + "markdown", + "json", + "javascript", + "typescript", + "yaml", + "html", + "css", + "markdown", + "bash", + "lua", + "dockerfile", + "solidity", + "gitignore", + "python", + "vue", + }, + auto_install = true, + highlight = { + enable = true, + additional_vim_regex_highlighting = true, + }, + incremental_selection = { + enable = true, + keymaps = { + init_selection = "", + node_incremental = "", + scope_incremental = false, + node_decremental = "", + }, + }, + }) +end + +return { + "nvim-treesitter/nvim-treesitter", + lazy = false, + config = config, +} -- cgit v1.2.3