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

Mon, 06 Mar 2023 23:33:14 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Mon, 06 Mar 2023 23:33:14 -0500
changeset 1068
537a428597b5
parent 1064
fcfa295076a8
child 1094
694fb6cd9cc2
permissions
-rw-r--r--

tweak lazy loading

local g = vim.g

-- >> Perl
g.perl_include_pod = 1
g.perl_sub_signatures = 1
g.perl_sync_dist = 300
g.perl_compiler_force_warnings = 0

return {
  {
    "nvim-treesitter/nvim-treesitter",
    event = { "BufReadPost", "BufNewFile" },
    build = function()
      require("nvim-treesitter.install").update({ with_sync = true })
    end,
    config = function()
      require("nvim-treesitter.configs").setup({
        highlight = { enable = true },
        indent = { enable = true },
        ensure_installed = {
          "c",
          "comment",
          "eex",
          "elixir",
          "heex",
          "help",
          "lua",
          "surface",
          "vim",
        },
      })
    end,
  },
  { "Shougo/vinarise.vim", cmd = "Vinarise" },
  "asciidoc/vim-asciidoc",
  { "vim-perl/vim-perl", branch = "dev" },
  "yko/mojo.vim",
}

mercurial