voger
How to set up Vim for elixir?
I am trying to adopt a workflow for elixir using Vim and tmux but I do have some problems with elixir code completion and most importantly “go to definition”. Some times code completion doesnt work and some times “go to definition” throws errors.
I am using elixir-editors/vim-elixir and slashmili/alchemist.vim with Shougo/deoplete.nvim
For example in this file
Towards the middle it has a line conn = build_conn() |> auth_user(user) and I want to jump to the definition of auth_user which is a private function defined in the same file.
With <Ctrl+]>, even after I compiled the project, in vim I get
alchemist.vim: failed with message error:/home/voger/.vim/plugged/alchemist.vim/elixi
r_sense/lib/elixir_sense/core/ast.ex:19: module PlateSlateWeb.ConnCase is not loaded
and could not be found
E426: tag not found: auth_user
while spacemacs jumps happily to the definition.
Here is my .vimrc.
Is there something I should configure differently to improve elixir experience in vim?
Most Liked
kaareltinn
GitHub - mmorearty/elixir-ctags: Support for the Elixir language in Exuberant Ctags · GitHub This one did the trick for me.
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #javascript
- #code-sync
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance








