Skip to content

Commit

Permalink
✨ Adding treesitter config
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoCiccarino committed Jan 17, 2025
1 parent 0fb5440 commit 58a8b96
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 3 deletions.
40 changes: 40 additions & 0 deletions lua/fastvim/configs/treesitter.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
require("nvim-treesitter.configs").setup({

ensure_installed = {
"lua",
"vim",
"vimdoc",
"html",
"css",
"typescript",
"javascript",
"go",
"cpp",
"haskell",
"c",
"rust",
"scala",
"commonlisp",
"scheme",
"dart",
"ruby",
"astro",
"java",
"tsx",
"zig",
"xml",
"verilog",
"tmux",
"sql",
"json",
"json5",
"vue",
"norg",
},

highlight = {
enable = true,
use_languagetree = true,
},
indent = { enable = true },
})
12 changes: 9 additions & 3 deletions lua/fastvim/plugins/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,14 @@ return {
require("fastvim.configs.neokinds")
end,
},
{
{
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
config = function()
require("fastvim.configs.treesitter")
end,
},
{
"stevearc/conform.nvim",
event = { "BufWritePre" },
cmd = { "ConformInfo" },
Expand Down Expand Up @@ -150,7 +157,7 @@ return {
dependencies = { "nvim-lua/plenary.nvim", "neovim/nvim-lspconfig" },
ft = { "javascript", "javascriptreact", "typescript", "typescriptreact", "vue" },
config = function()
require('fastvim.configs.lsp')
require("fastvim.configs.lsp")
end,
},
{
Expand Down Expand Up @@ -245,4 +252,3 @@ return {
end,
},
}

0 comments on commit 58a8b96

Please sign in to comment.