baldwindavid

baldwindavid

I’m taking a run at Oni Vim 2 and one of the few extensions available for Elixir on the Open VSX Registry is ElixirLS. That’s great since it is probably the most important one. I do get the warning below every time the editor is opened. Is this to be expected?

Showing Posts 1 to 4

axelson

axelson

Scenic Core Team

There’s a fix for that that will be out in the next release of ElixirLS, which I plan to cut soon. So it is currently an expected error.

frigidcode

frigidcode

What are your thoughts on Onivim 2? I’m thinking about trying it out.

baldwindavid

baldwindavid OP

Thanks. This was the first I had used ElixirLS in any editor so nice to see that it was available here.

Well, I just started poking around it yesterday so just have some very early thoughts. I run Neovim in iTerm2 and am mostly happy with it, though I find myself looking at the smooth UI of VS Code every once in awhile wishing those two worlds were one.

Initial good stuff:

  • Seems very snappy and smooth. Since this is native code rather than JS/Electron, it is just faster. In initial tests it felt just as snappy as my terminal vim. Feels like vim and is vim. It uses libvim under the hood.
  • Works with VS Code extensions. Note that this is limited to those extensions listed on the Open VSX Registry. The ElixirLS extension was available which made syntax highlighting, autocomplete, go to definition, documentation work immediately. All it takes is clicking the install button for the extension and then restarting Oni Vim. The appropriate packages are downloaded in the background.
  • First run experience was quite good. I use a single vim window and split panes so disabled tabs via a settings variable. Theme selection can be accessed via the command menu. As you hover over the themes, the UI instantly changes; pretty cool. I was able to make it look like my terminal vim quickly.
  • Keybindings are easy to add and I didn’t have much trouble writing the 10 critical ones I need; mostly mappings for easy pane management and using the spacebar as leader.
  • File search is very good (CMD+P by default, but I remap).
  • Command mode access is really nice and easy to get at, including configuration and keybindings files.
  • Full text search is fast. Think it uses ripgrep out of the box.
  • I have probably 20 or so vim plugins, but almost all of them seem unnecessary here.

Initial bad stuff:

  • This is specific to me, but I don’t use a file tree in vim. Rather, I use netrw+vim-vinegar to navigate within splits. There is some talk of supporting this in the future, but this is really the biggest issue I have with it. It’s also possible there is some sort of plugin that can solve it in the meantime of which I am unaware. Additionally, more of my navigation is via go to, file search, etc anyway.
  • The file drawer seems pretty nice. Easy to disable and navigate. You can move over to it via shortcut or pane movements. For whatever reason, I couldn’t figure out how to move back to the code area without actually clicking a file though. Probably doing something wrong.
  • Easy command to access full text search, but seems like it doesn’t place your cursor in the search field automatically. Maybe bug.
  • No “replace” for searches. UI is similar to VS Code and sounds like they want to get replace in.
  • When I “go to definition” for a lot of files, it seems to drop me on the file with the pane scrolled to the right. Pressing any keys realigns the pane. Assume bug.
  • Need to be able to run tests for cursor position, file, suite from within the editor. Think this is probably a matter of getting one of the Elixir test runner extensions on the VSX registry.
  • Would probably like to have something like vim-projectionist work here if possible and will see if there is anything that is on or can be added to the registry.
  • I did notice my computer sounded like a jet engine yesterday at one point and the app was eating up all my CPU. Used again later and didn’t see the same so just not sure yet. That would be a problem.
axelson

axelson

Scenic Core Team

I was going to point you to vscode-elixir-test, but you’re already ahead of me!
https://github.com/samuelpordeus/vscode-elixir-test/issues/59

I did notice my computer sounded like a jet engine yesterday at one point and the app was eating up all my CPU. Used again later and didn’t see the same so just not sure yet. That would be a problem.

That might have been ElixirLS’s dialyzer integration: GitHub - elixir-lsp/elixir-ls: A frontend-independent IDE "smartness" server for Elixir. Implements the "Language Server Protocol" standard and provides debugger support via the "Debug Adapter Protocol" · GitHub
But after the initial PLT’s are built it should be fast.

— All posts loaded —

Where Next? Top

Trending in Discussions Top

AstonJ
As the title says, please share what you’ve been up to with Elixir. Whether that’s been learning it, looking into it, making stuff with i...
2977 92995 915
New
caslu
I want to open this thread for you all to discuss and help those who really like Ash but are still hesitant to use it in a real project. ...
New
mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
GES233
I’m posting this in response to Jose’s recent tweet (Cr. link) : People are sleeping on Elixir for a coding harness: Hot-code swappi...
New
marciol
It would be helpful to have a list of companies worldwide that hire engineers without prior experience in Elixir. Often, it can be quite ...
New
durvia
Anyone running long-lived stateful processes on BEAM? We’re building an AI agent runtime and would love to compare notes. We’re a small ...
New
nseaSeb
I’ve just put together a small POC exploring PDF inspection from Elixir/Phoenix: The idea is pretty simple: drag & drop a PDF in a...
New

Other Trending Topics Top

garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
wintermeyer
There are three potential reasons for members of this forum to have a look at https://vutuv.de You are tired or annoyed of LinkedIn. Yo...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews