Add treesitter for elixir support

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 1056
235dd39d6629
child 1058
c8754b0414b9

Add treesitter for elixir support

.config/nvim/lua/plugins/filetype.lua file | annotate | diff | comparison | revisions
--- a/.config/nvim/lua/plugins/filetype.lua
+++ b/.config/nvim/lua/plugins/filetype.lua
@@ -7,6 +7,24 @@ g.perl_sync_dist = 300
 g.perl_compiler_force_warnings = 0
 
 return {
+  {
+    'nvim-treesitter/nvim-treesitter',
+    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 = {
+          'eex',
+          'elixir',
+          'heex',
+          'surface',
+        },
+      })
+    end,
+  },
   'Shougo/vinarise.vim',
   'asciidoc/vim-asciidoc',
   {'vim-perl/vim-perl', branch = 'dev'},

mercurial