.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

1022
d509e282ae10 More nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
1 local g = vim.g
d509e282ae10 More nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
2
d509e282ae10 More nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
3 -- >> Perl
d509e282ae10 More nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
4 g.perl_include_pod = 1
d509e282ae10 More nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
5 g.perl_sub_signatures = 1
d509e282ae10 More nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
6 g.perl_sync_dist = 300
d509e282ae10 More nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
7 g.perl_compiler_force_warnings = 0
d509e282ae10 More nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
8
d509e282ae10 More nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
9 return {
1057
3c42989e695b Add treesitter for elixir support
Meredith Howard <mhoward@roomag.org>
parents: 1027
diff changeset
10 {
1064
fcfa295076a8 Apply stylua
Meredith Howard <mhoward@roomag.org>
parents: 1060
diff changeset
11 "nvim-treesitter/nvim-treesitter",
1068
537a428597b5 tweak lazy loading
Meredith Howard <mhoward@roomag.org>
parents: 1064
diff changeset
12 event = { "BufReadPost", "BufNewFile" },
1057
3c42989e695b Add treesitter for elixir support
Meredith Howard <mhoward@roomag.org>
parents: 1027
diff changeset
13 build = function()
1064
fcfa295076a8 Apply stylua
Meredith Howard <mhoward@roomag.org>
parents: 1060
diff changeset
14 require("nvim-treesitter.install").update({ with_sync = true })
1057
3c42989e695b Add treesitter for elixir support
Meredith Howard <mhoward@roomag.org>
parents: 1027
diff changeset
15 end,
3c42989e695b Add treesitter for elixir support
Meredith Howard <mhoward@roomag.org>
parents: 1027
diff changeset
16 config = function()
1064
fcfa295076a8 Apply stylua
Meredith Howard <mhoward@roomag.org>
parents: 1060
diff changeset
17 require("nvim-treesitter.configs").setup({
1057
3c42989e695b Add treesitter for elixir support
Meredith Howard <mhoward@roomag.org>
parents: 1027
diff changeset
18 highlight = { enable = true },
3c42989e695b Add treesitter for elixir support
Meredith Howard <mhoward@roomag.org>
parents: 1027
diff changeset
19 indent = { enable = true },
3c42989e695b Add treesitter for elixir support
Meredith Howard <mhoward@roomag.org>
parents: 1027
diff changeset
20 ensure_installed = {
1064
fcfa295076a8 Apply stylua
Meredith Howard <mhoward@roomag.org>
parents: 1060
diff changeset
21 "c",
fcfa295076a8 Apply stylua
Meredith Howard <mhoward@roomag.org>
parents: 1060
diff changeset
22 "comment",
fcfa295076a8 Apply stylua
Meredith Howard <mhoward@roomag.org>
parents: 1060
diff changeset
23 "eex",
fcfa295076a8 Apply stylua
Meredith Howard <mhoward@roomag.org>
parents: 1060
diff changeset
24 "elixir",
fcfa295076a8 Apply stylua
Meredith Howard <mhoward@roomag.org>
parents: 1060
diff changeset
25 "heex",
fcfa295076a8 Apply stylua
Meredith Howard <mhoward@roomag.org>
parents: 1060
diff changeset
26 "help",
fcfa295076a8 Apply stylua
Meredith Howard <mhoward@roomag.org>
parents: 1060
diff changeset
27 "lua",
fcfa295076a8 Apply stylua
Meredith Howard <mhoward@roomag.org>
parents: 1060
diff changeset
28 "surface",
fcfa295076a8 Apply stylua
Meredith Howard <mhoward@roomag.org>
parents: 1060
diff changeset
29 "vim",
1057
3c42989e695b Add treesitter for elixir support
Meredith Howard <mhoward@roomag.org>
parents: 1027
diff changeset
30 },
3c42989e695b Add treesitter for elixir support
Meredith Howard <mhoward@roomag.org>
parents: 1027
diff changeset
31 })
3c42989e695b Add treesitter for elixir support
Meredith Howard <mhoward@roomag.org>
parents: 1027
diff changeset
32 end,
3c42989e695b Add treesitter for elixir support
Meredith Howard <mhoward@roomag.org>
parents: 1027
diff changeset
33 },
1068
537a428597b5 tweak lazy loading
Meredith Howard <mhoward@roomag.org>
parents: 1064
diff changeset
34 { "Shougo/vinarise.vim", cmd = "Vinarise" },
1064
fcfa295076a8 Apply stylua
Meredith Howard <mhoward@roomag.org>
parents: 1060
diff changeset
35 "asciidoc/vim-asciidoc",
fcfa295076a8 Apply stylua
Meredith Howard <mhoward@roomag.org>
parents: 1060
diff changeset
36 { "vim-perl/vim-perl", branch = "dev" },
fcfa295076a8 Apply stylua
Meredith Howard <mhoward@roomag.org>
parents: 1060
diff changeset
37 "yko/mojo.vim",
1022
d509e282ae10 More nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
38 }

mercurial