blinux

blinux

I’ve been trying to get this to work for many hours following documentation and just running into more problems. None of these are explicit instructions. Does anyone know of such instructions I could follow?
Thank You.

Showing Posts 1 to 7

benwilson512

benwilson512

Author of Craft GraphQL APIs in Elixir with Absinthe

Hi @blinux can you show links to what you’ve tried so far?

blinux

blinux OP

This is the document page from NVChad for the LSP server. I was mostly working off of this.

dimitarvp

dimitarvp

You can find a ton of GitHub repos by starting e.g. from here: Repository search results · GitHub

I know @fuelen has NeoVim config for Elixir and others here: GitHub - fuelen/nvimfiles: Configuration files for NeoVim · GitHub

I personally use LunarVim and I am super happy with it, added configs for Elixir, Golang and Rust and everything I need so far has been rock-solid.

blinux

blinux OP

I’ve tried installing the elixir-ls with Mason and that installed fine. The problem is that it is not attached to the buffer when opening elixir files. It appears that to do that I have to add it to local servers = { “html”, “cssls”, “clangd”} list, but it still doesn’t work. I tried adding both elixirls and elixir-ls one at a time since I wasn’t sure which it should be.

The server_configurations.md page says to add “require’lspconfig’.elixirls.setup{}” to enable the server, but I’m not clear were to add this. I have too many questions and was hoping to just find some instructions.

https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#elixirls

blinux

blinux OP

How do I find the path to language_server.sh? I see this says to add it this:

require’lspconfig’.elixirls.setup{
cmd = { “/path/to/elixir-ls/language_server.sh” };

It also says to add a snippet to enable the server with .setup{}, but isn’t that the same thing and is thatin the init.lua as well?

Also there is a new language server called nextls which isn’t even listed here.

blinux

blinux OP

To setup NVChad / Neovim for Elixir do this:

  1. GitHub - elixir-tools/elixir-tools.nvim: Neovim plugin for Elixir · GitHub (install this)
    -Put code snippet for lazy.nvim code snippet in ~/.config/nvim/lua/custom/plugings.lua
    -NVChad uses lazy.nvim for the plugins so that is why you use the lazy.nvim code snippet version.
  2. Run “TSInstall elixir” (for syntax highlighting)
  3. Use the Kitty terminal because it is needed to display fonts correctly
  4. Install Nerfonts from https://www.nerdfonts.com/ and copy to ~/.local/share/fonts
daytonhaney

daytonhaney

Get it working?

— All posts loaded —

Where Next? Top

Trending in Questions Top

RSP87
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
nseaSeb
Hello, I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
RemyXRenard
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
brecabral
Documentation While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
velrest
So my question is quite simple and i have found no conclusive answer on forum, google or AI. Should we use :erlang.float for Integer to ...
New
samoloth
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
FlyingNoodle
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New

Other Trending Topics Top

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
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
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
webofbits
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself. My main conc...
#ai
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews