amarandon

amarandon

Basic linting in Vim

Hello! Is there a simple solution to get vim to detect simple coding errors like undefined variables or missing comma? Everything I found so far seem to rely on LSP which sounds a bit overkill for my needs. Is there a pure vimscript plugin based on Elixir standard tooling?

Marked As Solved

dimitarvp

dimitarvp

LSP is merely a standard; there are tons of implementations and they aren’t made by Microsoft (if that’s so important for you).

Also it’s really hard to get any simpler than LSP. tree-sitter perhaps, but that’s not doing the same thing.

Also Liked

zaljir

zaljir

LSP is working great in Neovim, it’s integrated into the core now and very fast! Not sure about Vim8 though.

adamu

adamu

I think you didn’t get much of a response because your question seems strange.

You want to parse elixir, which is what the language server does for you, but you don’t want to use LSP, which is the way to use the language server from in vim. So you want something else that can parse elixir other than the language server, but you want to do it with “Elixir standard tooling”. It’s a bit of a contradiction.

dimitarvp

dimitarvp

Well, it can’t. They are run in an arbitrary order and are not compiled (before they get run anyway).

Auto-formatting however still works.

Last Post!

dimitarvp

dimitarvp

Well, it can’t. They are run in an arbitrary order and are not compiled (before they get run anyway).

Auto-formatting however still works.

Where Next?

Popular in Questions Top

minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
skosch
To my knowledge, put_in, Map.update etc. all have the one limitation of not automatically creating intermediate keys when needed (for exa...
New
lanycrost
Hi everyone! I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
greenz1
I have a phoenix application from which a user can download multiple(5-6) files of size 1MB. I couldn’t find anything related to sending ...
New
shijith.k
I am trying to start a new phoenix project with elixir 1.9, but mix phx.new does not work. It says that ** (Mix) The task "phx.new" could...
New

Other popular topics Top

KronicDeth
Elixir plugin for JetBrain’s IntelliJ Platform (including Rubymine) This is a plugin that adds support for Elixir to JetBrains IntelliJ...
289 36689 110
New
joaquinalcerro
Hi there, I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 records...
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
axelson
This post is a wiki (feel free to hit the edit button near the bottom right of this post to add your own changes!) This post collects co...
239 49134 226
New

We're in Beta

About us Mission Statement