I’m using Neovim with an nvim-treesitter plugin for elixir configured as follows:
{ "nvim-treesitter/nvim-treesitter", build = ":TSUpdate", config = function () local configs = require("nvim-treesitter.configs") configs.setup({ ensure_installed = { "python", "c", "lua", "vim", "vimdoc", "query", "erlang", "heex", "eex", "elixir", "javascript", "html" }, sync_install = false, highlight = { enable = true }, indent = { enable = true }, }) end },
So basically elixir is in there. But as you can see from this short asciinema quite often when I add another pipe |>
on a line where it already exists, the whole line gets indented more, which obviously I don’t want.
There are some other “bugs” (?) where it will indent a pipe sometimes wrongly by two places under a variable, or will sometimes completely unindent a line with pipes in it.
Has anyone experienced this and is there a fix? Any ideas on which neovim plugin combinations work best? For guide my whole init.lua
is here