victorolinasc
Elixir editing on KDE's Kate editor (with elixir-ls integration)
Hey there people ![]()
Just wanted to share a very quick and easy setup for editing Elixir in KDE’s Kate editor. This is a very nice and simple editor. It starts real fast and is quite easy on memory and cpu.
Here is a screenshot of it working with elixir-ls and syntax highlighting:
To configure it is very easy:
- Open up settings → Configure Kate
- Plugins → enable LSP Client plugin apply and restart Kate
- Open up settings once again → Configure Kate → LSP Client
- Under the tab of User Server Settings add this snippet (you need to have cloned elixir-ls and ran its build first):
{
"servers": {
"elixir-ls": {
"command": ["FULL PATH TO YOUR language_server.sh FILE"],
"rootIndicationFileNames": ["mix.exs"],
"url": "https://github.com/elixir-lsp/elixir-ls",
"highlightingModeRegex": "^(Elixir)$"
}
}
}
- Restart kate
- Open any Elixir project (should start the LSP automatically)
- Make sure you configure your project going to: Tools → Mode → Sources → Elixir
That’s it ![]()
What I’ve tested:
- Auto-complete
- Code formatting (although couldn’t find a way to trigger format on save)
- Go to definition
I don’t use it on a daily basis, but it is an awesome fully open source alternative to add in the mix. Auto-completion, code formatting and all working fine with just these settings. I am an Emacs user but its nice to have an alternative that is native to my DE.
For those interested, here are some links:
- Kate’s website: https://kate-editor.org
- Kate’s Elixir syntax highlighting source: https://kate-editor.org/syntax/data/syntax/elixir.xml (really concise if you compare it with other editors)
- Kate’s GIT repo: Utilities / Kate · GitLab
Anyway, just wanted to share this little snippet. I’ve seen some other KDE fans around here so that might make em happy too.
Trending in Discussions
Other Trending Topics
Chat & Discussions>Discussions
Latest on Elixir Forum
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #elixirconf-us
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #metaprogramming
- #security
- #hex











First 3 of 3 Posts!
guibbv20111
Lexical works fine too…
Eiji
In general I like how much apps
KDE/Plasmahave, but …katecannot be compared to editors likezedwhich are very specialised in terms of performance (including UI rendering on GPU)As above both editors are good, but most likely for new developers that want to have a same
UIstyle for all apps. A senior developers would rather choose an IDE or an editor on which maintainers are fully focused. Therefore currentlySublime Text 4looks best (in terms of performance), butVS Codehave also it’s place. A song of future (near future) iszed. I believe that the potential of it is not yet fully used, but even now it’s a powerful tool much better than a “typical” DE editor with plugin support.It does not really matter. The point is how fast it’s at runtime. Before
zedI was testing lots of editors andIDEs checking how long they need to load a project with a hugeJSONdatabase (at that time I was using HDD). The only one who really passed it wasSublime Text 3(at that time there was no version 4). In some other cases editors often had a problem with freezing UI (that’s why I was so interested inzedbefore even they have started to supportLinux).If not now then I believe that
zedwould not have a worth opponents in at least few years as most editors are using an existingGTK+ / QtAPI, so rewriting them is not so easy.ArthurClemens
I had quite some problems getting this to run on a Mac with
asdf. The elixir-ls launch script could not find asdf when ran inside Kate, becauseASDF_DIRwas pointing to my home directory, while asdf was installed with Homebrew.In the end I re-installed asdf using “the preferred method” (using Git) and things are working fine now.