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

Sun, 25 Jun 2023 22:53:55 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Sun, 25 Jun 2023 22:53:55 -0500
changeset 1120
8f8a93daa98c
parent 1102
33dd24d2b740
child 1121
199d907c2f67
permissions
-rw-r--r--

Move fidget.nvim to "legacy" branch

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",
1094
694fb6cd9cc2 add nvim-treesitter-endwise
Meredith Howard <mhoward@roomag.org>
parents: 1068
diff changeset
12 dependencies = {
694fb6cd9cc2 add nvim-treesitter-endwise
Meredith Howard <mhoward@roomag.org>
parents: 1068
diff changeset
13 "RRethy/nvim-treesitter-endwise",
694fb6cd9cc2 add nvim-treesitter-endwise
Meredith Howard <mhoward@roomag.org>
parents: 1068
diff changeset
14 },
1068
537a428597b5 tweak lazy loading
Meredith Howard <mhoward@roomag.org>
parents: 1064
diff changeset
15 event = { "BufReadPost", "BufNewFile" },
1057
3c42989e695b Add treesitter for elixir support
Meredith Howard <mhoward@roomag.org>
parents: 1027
diff changeset
16 build = function()
1064
fcfa295076a8 Apply stylua
Meredith Howard <mhoward@roomag.org>
parents: 1060
diff changeset
17 require("nvim-treesitter.install").update({ with_sync = true })
1057
3c42989e695b Add treesitter for elixir support
Meredith Howard <mhoward@roomag.org>
parents: 1027
diff changeset
18 end,
3c42989e695b Add treesitter for elixir support
Meredith Howard <mhoward@roomag.org>
parents: 1027
diff changeset
19 config = function()
1064
fcfa295076a8 Apply stylua
Meredith Howard <mhoward@roomag.org>
parents: 1060
diff changeset
20 require("nvim-treesitter.configs").setup({
1057
3c42989e695b Add treesitter for elixir support
Meredith Howard <mhoward@roomag.org>
parents: 1027
diff changeset
21 highlight = { enable = true },
3c42989e695b Add treesitter for elixir support
Meredith Howard <mhoward@roomag.org>
parents: 1027
diff changeset
22 indent = { enable = true },
1094
694fb6cd9cc2 add nvim-treesitter-endwise
Meredith Howard <mhoward@roomag.org>
parents: 1068
diff changeset
23 endwise = { enable = true },
1057
3c42989e695b Add treesitter for elixir support
Meredith Howard <mhoward@roomag.org>
parents: 1027
diff changeset
24 ensure_installed = {
1064
fcfa295076a8 Apply stylua
Meredith Howard <mhoward@roomag.org>
parents: 1060
diff changeset
25 "c",
fcfa295076a8 Apply stylua
Meredith Howard <mhoward@roomag.org>
parents: 1060
diff changeset
26 "comment",
fcfa295076a8 Apply stylua
Meredith Howard <mhoward@roomag.org>
parents: 1060
diff changeset
27 "eex",
fcfa295076a8 Apply stylua
Meredith Howard <mhoward@roomag.org>
parents: 1060
diff changeset
28 "elixir",
fcfa295076a8 Apply stylua
Meredith Howard <mhoward@roomag.org>
parents: 1060
diff changeset
29 "heex",
fcfa295076a8 Apply stylua
Meredith Howard <mhoward@roomag.org>
parents: 1060
diff changeset
30 "lua",
fcfa295076a8 Apply stylua
Meredith Howard <mhoward@roomag.org>
parents: 1060
diff changeset
31 "surface",
fcfa295076a8 Apply stylua
Meredith Howard <mhoward@roomag.org>
parents: 1060
diff changeset
32 "vim",
1102
33dd24d2b740 help -> vimdoc
Meredith Howard <mhoward@roomag.org>
parents: 1094
diff changeset
33 "vimdoc",
1057
3c42989e695b Add treesitter for elixir support
Meredith Howard <mhoward@roomag.org>
parents: 1027
diff changeset
34 },
3c42989e695b Add treesitter for elixir support
Meredith Howard <mhoward@roomag.org>
parents: 1027
diff changeset
35 })
3c42989e695b Add treesitter for elixir support
Meredith Howard <mhoward@roomag.org>
parents: 1027
diff changeset
36 end,
3c42989e695b Add treesitter for elixir support
Meredith Howard <mhoward@roomag.org>
parents: 1027
diff changeset
37 },
1068
537a428597b5 tweak lazy loading
Meredith Howard <mhoward@roomag.org>
parents: 1064
diff changeset
38 { "Shougo/vinarise.vim", cmd = "Vinarise" },
1064
fcfa295076a8 Apply stylua
Meredith Howard <mhoward@roomag.org>
parents: 1060
diff changeset
39 "asciidoc/vim-asciidoc",
fcfa295076a8 Apply stylua
Meredith Howard <mhoward@roomag.org>
parents: 1060
diff changeset
40 { "vim-perl/vim-perl", branch = "dev" },
fcfa295076a8 Apply stylua
Meredith Howard <mhoward@roomag.org>
parents: 1060
diff changeset
41 "yko/mojo.vim",
1022
d509e282ae10 More nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
42 }

mercurial