ihabunek

ihabunek

LSP-elixir plugin for Sublime Text

I’m happy to announce the initial release of LSP-elixir plugin for Sublime Text which integrates the great elixir-ls server with the editor to provide IDE-like capabilities.

It’s been possible to connect the two before, but this plugin removes the need to download elixir-ls yourself and fiddle with LSP plugin config files.

Check out the code and install instructions on Github:
https://github.com/sublimelsp/LSP-elixir

This being the first release, testing and feedback are welcome.

Most Liked

hectorsq

hectorsq

Great! I am currently using it in Sublime Text 4 without any problem.

sicksid

sicksid

hey, I love this package and thank you for releasing it! I have a question though

what would be the correct schema for overriding elixirLS.projectDir inside a <project_name>.sublime-project file?

{
	"folders":
	[
		{
			"folder_exclude_patterns":
			[
				"./services/deps",
				"./services/api/assets/node_modules"
			],
			"path": "."
		}
	],
	"settings":
	{
		"LSP": {
			"lsp-elixir" : {
				"settings": {
					"elixirLS":
					{
						"projectDir": "./services",
					},
				}
			},
			"elixir-ls":
			{
				"enabled": true,
				"settings" : {
					"elixirLS.projectDir": "./services"
				}
			},		
		},
	}
}

tried a lot of different configurations and nothing seems to work, when I save, I get this error

   1:1   	ElixirLS    	error     	No mixfile found in project. To use a subdirectory, set `elixirLS.projectDir` in your settings

which makes sense but I would like to be able to open my project and have the features from your package working in this umbrella app

Last Post!

sicksid

sicksid

its a dev build so its not officially the new version of sublime, here you go https://www.reddit.com/r/SublimeText/comments/et9fte/sublimetext_4_dev_build/

Where Next?

Popular in Discussions Top

rower687
Hi all, I’ve been reading a lot about the “let it crash” term and how supervising processes and the whole messaging passing make an elixi...
New
AstonJ
If so I (and hopefully others!) might have some tips for you :slight_smile: But first, please say which area you’re finding most challen...
New
nburkley
AWS re:Invent is on at the moment with some interesting announcements. One new feature in particular is the Lambda Runtime API for AWS La...
New
chuck
Let me start by stating an assumption: Phoenix is a great approach to building REST APIs. There are many reasons for this, but I will ass...
New
marciol
Please, let me know if this kind of discussion already took place in another topic . Hi all, how do you consider if is better to build ...
New
nunobernardes99
Hi there Elixir friends :vulcan_salute: In a recent task I was on, I needed to check in two dates which of them is the maximum and which...
New
mmmrrr
Just saw that dhh announced https://hotwire.dev/ Is it just me or is this essentially live view? :smiley: Although I like the “iFrame-e...
New

Other popular topics Top

rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list. ...
New
nobody
Hi! In PHP: $_SERVER[‘SERVER_ADDR’] - in Elixir? Searched the docs for ip address and the web, no good results. Thanks!
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New
saif
Hello everyone, Long time lurker first time poster here. I’ve recently begun working on Elixir full-time again! :raised_hands: It’s been...
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
sergio
Kind of like when jquery came out, it was super necessary. Existing drag and drop libraries have a bunch of baggage to support old browse...
New

We're in Beta

About us Mission Statement