nvim: treesitter: Add golang

This commit is contained in:
Sanchayan Maity 2022-06-05 15:03:10 +05:30
parent 9f43c8b7f3
commit 6be67782e6

View file

@ -2,7 +2,7 @@
-- https://github.com/nvim-treesitter/nvim-treesitter-textobjects/issues/100. -- https://github.com/nvim-treesitter/nvim-treesitter-textobjects/issues/100.
require'nvim-treesitter-textobjects' require'nvim-treesitter-textobjects'
local ts_langs = { "bash", "c", "cpp", "fish", "haskell", "html", "java", "javascript", "jsdoc", "json", "lua", "markdown", "nix", "python", "query", "rust", "teal", "toml", "tsx", "typescript", "verilog", "vim" } local ts_langs = { "bash", "c", "cpp", "fish", "go", "haskell", "html", "java", "javascript", "jsdoc", "json", "lua", "markdown", "nix", "python", "query", "rust", "teal", "toml", "tsx", "typescript", "verilog", "vim" }
require'nvim-treesitter.install'.compilers = { "gcc" } require'nvim-treesitter.install'.compilers = { "gcc" }
require'nvim-treesitter.configs'.setup { require'nvim-treesitter.configs'.setup {