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

changeset 1150
52033d249bcb
parent 1131
f3044a1658fc
child 1165
840f0fde07e2
equal deleted inserted replaced
1149:4af7c8156683 1150:52033d249bcb
10 { 10 {
11 "nvim-treesitter/nvim-treesitter", 11 "nvim-treesitter/nvim-treesitter",
12 dependencies = { 12 dependencies = {
13 "RRethy/nvim-treesitter-endwise", 13 "RRethy/nvim-treesitter-endwise",
14 }, 14 },
15 event = { "BufReadPost", "BufNewFile" }, 15 event = "VeryLazy",
16 build = function() 16 build = ":TSUpdate",
17 require("nvim-treesitter.install").update({ with_sync = true }) 17 cmd = { "TSUpdateSync", "TSUpdate", "TSInstall" },
18 end,
19 config = function() 18 config = function()
19 ---@diagnostic disable-next-line: missing-fields
20 require("nvim-treesitter.configs").setup({ 20 require("nvim-treesitter.configs").setup({
21 highlight = { enable = true }, 21 highlight = { enable = true },
22 indent = { enable = true }, 22 indent = { enable = true },
23 endwise = { enable = true }, 23 endwise = { enable = true },
24 sync_install = true, 24 sync_install = true,
34 "vimdoc", 34 "vimdoc",
35 }, 35 },
36 }) 36 })
37 end, 37 end,
38 }, 38 },
39
39 { "Shougo/vinarise.vim", cmd = "Vinarise" }, 40 { "Shougo/vinarise.vim", cmd = "Vinarise" },
40 "asciidoc/vim-asciidoc", 41 "asciidoc/vim-asciidoc",
41 { "vim-perl/vim-perl", branch = "dev" }, 42 { "vim-perl/vim-perl", branch = "dev" },
42 { "yko/mojo.vim", branch = "master" }, 43 { "yko/mojo.vim", branch = "master" },
43 44

mercurial