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

baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
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
Fl4m3Ph03n1x
About me? ( if you have nothing better to do than reading about some random guy in the internet :stuck_out_tongue: ) Hello all, this is ...
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
komlanvi
Hi everyone, I was playing with phoenix liveView but I run into an issue. I have a form and want to validate each input text when the te...
New
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New

Other popular topics Top

ashish173
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
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
sen
Hi All, I set a environment variables in dev.exs , like below code. when i start server, how can i set the ${enable} value? thanks. d...
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
dblack
I’ve got an issue with an app and I’ve no idea of how to troubleshoot it. I’m hoping someone here might have seen something similar. I p...
New
JorisKok
I have a server on AWS, and was running a load test using artillery. When looking at the Phoenix dashboard I see the Ports going to 100% ...
New

We're in Beta

About us Mission Statement