Skip to content

Instantly share code, notes, and snippets.

@masato3
Created June 19, 2025 14:13
Show Gist options
  • Save masato3/32d497939d352f8ee721ab477f08e312 to your computer and use it in GitHub Desktop.
Save masato3/32d497939d352f8ee721ab477f08e312 to your computer and use it in GitHub Desktop.
Neovim plugin nvim-treesitter
return {
'nvim-treesitter/nvim-treesitter',
event = {
'BufRead',
'BufNewFile'
},
-- https://mainmokeybusiness.com/post/neovim_install_windows/#nvim-treesitter%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b%e3%81%a8no-c-compiler-found-cc-gcc-clang-cl-zig-are-not-executable%e3%81%a8%e8%a1%a8%e7%a4%ba%e3%81%95%e3%82%8c%e3%82%8b
build = ':TSUpdate',
install = function()
require('nvim-treesitter.install').setup({
prefer_git = false,
compilers = { 'gcc' }
})
end,
config = function()
local configs = require('nvim-treesitter.configs')
configs.setup({
ensure_installed = {
'css',
'csv',
'diff',
'html',
'javascript',
'json',
'lua',
'markdown',
'markdown_inline',
'pug',
'python',
'sql',
'regex',
'toml',
'typescript',
'vim',
'xml',
'yaml',
},
auto_install = false,
sync_install = false,
highlight = { enable = true },
indent = { enable = true },
})
end
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment