# HG changeset patch # User Meredith Howard # Date 1677659508 18000 # Node ID 3c42989e695b00e25ba3559bb4d0b44bef1f9d82 # Parent 235dd39d6629e6f9f2120a74507f7726e2a2270d Add treesitter for elixir support diff --git a/.config/nvim/lua/plugins/filetype.lua b/.config/nvim/lua/plugins/filetype.lua --- 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'},