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

Wed, 01 Mar 2023 03:31:48 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Wed, 01 Mar 2023 03:31:48 -0500
changeset 1057
3c42989e695b
parent 1027
823290a8e710
child 1058
c8754b0414b9
permissions
-rw-r--r--

Add treesitter for elixir support

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 {
3c42989e695b Add treesitter for elixir support
Meredith Howard <mhoward@roomag.org>
parents: 1027
diff changeset
11 'nvim-treesitter/nvim-treesitter',
3c42989e695b Add treesitter for elixir support
Meredith Howard <mhoward@roomag.org>
parents: 1027
diff changeset
12 build = function()
3c42989e695b Add treesitter for elixir support
Meredith Howard <mhoward@roomag.org>
parents: 1027
diff changeset
13 require('nvim-treesitter.install').update({ with_sync = true })
3c42989e695b Add treesitter for elixir support
Meredith Howard <mhoward@roomag.org>
parents: 1027
diff changeset
14 end,
3c42989e695b Add treesitter for elixir support
Meredith Howard <mhoward@roomag.org>
parents: 1027
diff changeset
15 config = function()
3c42989e695b Add treesitter for elixir support
Meredith Howard <mhoward@roomag.org>
parents: 1027
diff changeset
16 require('nvim-treesitter.configs').setup({
3c42989e695b Add treesitter for elixir support
Meredith Howard <mhoward@roomag.org>
parents: 1027
diff changeset
17 highlight = { enable = true },
3c42989e695b Add treesitter for elixir support
Meredith Howard <mhoward@roomag.org>
parents: 1027
diff changeset
18 indent = { enable = true },
3c42989e695b Add treesitter for elixir support
Meredith Howard <mhoward@roomag.org>
parents: 1027
diff changeset
19 ensure_installed = {
3c42989e695b Add treesitter for elixir support
Meredith Howard <mhoward@roomag.org>
parents: 1027
diff changeset
20 'eex',
3c42989e695b Add treesitter for elixir support
Meredith Howard <mhoward@roomag.org>
parents: 1027
diff changeset
21 'elixir',
3c42989e695b Add treesitter for elixir support
Meredith Howard <mhoward@roomag.org>
parents: 1027
diff changeset
22 'heex',
3c42989e695b Add treesitter for elixir support
Meredith Howard <mhoward@roomag.org>
parents: 1027
diff changeset
23 'surface',
3c42989e695b Add treesitter for elixir support
Meredith Howard <mhoward@roomag.org>
parents: 1027
diff changeset
24 },
3c42989e695b Add treesitter for elixir support
Meredith Howard <mhoward@roomag.org>
parents: 1027
diff changeset
25 })
3c42989e695b Add treesitter for elixir support
Meredith Howard <mhoward@roomag.org>
parents: 1027
diff changeset
26 end,
3c42989e695b Add treesitter for elixir support
Meredith Howard <mhoward@roomag.org>
parents: 1027
diff changeset
27 },
1022
d509e282ae10 More nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
28 'Shougo/vinarise.vim',
d509e282ae10 More nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
29 'asciidoc/vim-asciidoc',
d509e282ae10 More nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
30 {'vim-perl/vim-perl', branch = 'dev'},
d509e282ae10 More nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
31 'yko/mojo.vim',
d509e282ae10 More nvim config
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
32 }

mercurial