.config/nvim/lua/plugins/filetype.lua

changeset 1094
694fb6cd9cc2
parent 1068
537a428597b5
child 1102
33dd24d2b740
equal deleted inserted replaced
1093:3d970272f1a3 1094:694fb6cd9cc2
7 g.perl_compiler_force_warnings = 0 7 g.perl_compiler_force_warnings = 0
8 8
9 return { 9 return {
10 { 10 {
11 "nvim-treesitter/nvim-treesitter", 11 "nvim-treesitter/nvim-treesitter",
12 dependencies = {
13 "RRethy/nvim-treesitter-endwise",
14 },
12 event = { "BufReadPost", "BufNewFile" }, 15 event = { "BufReadPost", "BufNewFile" },
13 build = function() 16 build = function()
14 require("nvim-treesitter.install").update({ with_sync = true }) 17 require("nvim-treesitter.install").update({ with_sync = true })
15 end, 18 end,
16 config = function() 19 config = function()
17 require("nvim-treesitter.configs").setup({ 20 require("nvim-treesitter.configs").setup({
18 highlight = { enable = true }, 21 highlight = { enable = true },
19 indent = { enable = true }, 22 indent = { enable = true },
23 endwise = { enable = true },
20 ensure_installed = { 24 ensure_installed = {
21 "c", 25 "c",
22 "comment", 26 "comment",
23 "eex", 27 "eex",
24 "elixir", 28 "elixir",

mercurial