Giter VIP home page Giter VIP logo

Comments (15)

NotAShelf avatar NotAShelf commented on June 1, 2024 1

@RooSoft elixir support should be now available on the feature/elixir branch, tracked by this pull request. It is mostly done, but before I can merge it could you test it with running the maximal configuration on that specific branch?

*Edit: you can also try pinning the branch in your flake inputs and install with home-manager as described in the docs.

from neovim-flake.

NotAShelf avatar NotAShelf commented on June 1, 2024

I'd be happy to enable more language support in the near feature, possibly (and preferably) before the release of 0.3.

However I am not too familiar with Elixir, could you elaborate on which Neovim plugins/LSPs/extra packages from nixpkgs would be necessary to make this possible?

from neovim-flake.

RooSoft avatar RooSoft commented on June 1, 2024

Still have to use this thing, but elixir-ls seems to be the language server.

For elixir itself, elixir would do it.

Now, that's for elixir itself, I still have to understand how to enable LSP in this project, but would gladly do my best to help if I can have some pointers about where to start...

from neovim-flake.

RooSoft avatar RooSoft commented on June 1, 2024

I found out about mason...

Would it be a good idea to integrate it here? Would be awesome to use it and install whatever language through its integrated menu straight into neovim.

from neovim-flake.

NotAShelf avatar NotAShelf commented on June 1, 2024

I'm aware of the existence of mason. I'm afraid I have absolutely no plans to integrate it, as the aim here is to be absolutely declarative and mason would go against that, similar to plugin managers.

What we can use is elixir-ls in combination with the already set-up lspconfig and nvim-cmp. According to a few articles I've found online, those are enough for elixir development on neovim.

from neovim-flake.

RooSoft avatar RooSoft commented on June 1, 2024

Makes sense... anything I can do to help make this a reality?

from neovim-flake.

NotAShelf avatar NotAShelf commented on June 1, 2024

I intend on getting to it soon, possibly monday latest.

If you'd like to implement it yourself, faster than I can, you could try looking at other lsp implementations and try to implement elixir yourself.

The elixir languagesever is in nixpkgs, it'd be a matter of adding it to startup-plugins (which takes packages as well) and then configuring the lspconfig plugin as well as nvim-cmp - both are available in the modules/directory.

from neovim-flake.

NotAShelf avatar NotAShelf commented on June 1, 2024

Side note, please do let me know if you'd also like me to add https://github.com/brendalf/mix.nvim

I don't normally use Elixir, but I'd like to provide everything the user needs.

from neovim-flake.

RooSoft avatar RooSoft commented on June 1, 2024

I've tried nix run github:notashelf/neovim-flake#maximal but the .ex and .exs files I've tried from the bitcoinlib project still don't show with syntax highlighting...

Am I doing something wrong here?

from neovim-flake.

NotAShelf avatar NotAShelf commented on June 1, 2024

Most probably no, oughta be a problem on my end.

Could you link me a small project that preferably has no external dependencies that I can test on?

from neovim-flake.

RooSoft avatar RooSoft commented on June 1, 2024

from neovim-flake.

NotAShelf avatar NotAShelf commented on June 1, 2024

Pushed another commit, which also adds elixir-tools.

The project does seem highlgihted to me and the LSP diagnostics do make me think it is syntax highlighting, but do let me know!

from neovim-flake.

NotAShelf avatar NotAShelf commented on June 1, 2024

If you are pinning your flake inputs, you'll need to run a quick nix flake lock --update-input neovim-flake before rebuilding in order to get it working.

Do note that running nix run github:notashelf/neovim-flake#maximal will use the main branch of this flake, which is not yet supporting elixir.

You will also want to specific a branch in the nix run.

from neovim-flake.

NotAShelf avatar NotAShelf commented on June 1, 2024

image

looks like syntax highlighting is working on the elixir branch

from neovim-flake.

RooSoft avatar RooSoft commented on June 1, 2024

Yeah, it's totally working with nix develop github:NotAShelf/neovim-flake/feature/elixir!

Thanks!

from neovim-flake.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.