# LanguageServer.jl or kak-lsp

**URL:** <https://discuss.kakoune.com/t/languageserver-jl-or-kak-lsp/1917>\
**Category:** Plugins\
**Created:** [November 2, 2021, 6:33pm UTC](https://discuss.kakoune.com/t/languageserver-jl-or-kak-lsp/1917 "2021-11-02T18:33:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tincho](https://discuss.kakoune.com/letter_avatar_proxy/v4/letter/t/82dd89/32.png) [@tincho](https://discuss.kakoune.com/u/tincho)\
**Post date:** [November 2, 2021, 6:33pm UTC](https://discuss.kakoune.com/t/languageserver-jl-or-kak-lsp/1917/1 "2021-11-02T18:33:26Z")

</div>

Hello,  
I followed the instructions here:

> **[Kakoune](https://github.com/julia-vscode/LanguageServer.jl/wiki/Kakoune)**
>
> An implementation of the Microsoft Language Server Protocol for the Julia language. - julia-vscode/LanguageServer.jl

but when opening a file I obtain the error message:  
“error during startup, see _debug_ buffer for details”

I would like to know how I can see the debug buffer  
and in which location is placed the file kakrc mentioned in the instructions.  
I have Debian installation with apt-get, so I had to edit this file as root but I do not know if there is another similar file for normal users.

What could be causing this problem?

I would like to add that I have also found another file named kak-lsp.toml so there are two files  
with the same name in total:  
./home/mmestre/kak-lsp/kak-lsp.toml  
./home/mmestre/.config/kak-lsp/kak-lsp.toml (the one built by me following the tutorial )  
They both containt different things inside.

Thank you very much,  
Tincho

---

<div class="post-metadata">

**Author:** ![jdugan6240](https://discuss.kakoune.com/user_avatar/discuss.kakoune.com/jdugan6240/32/637_2.png) [@jdugan6240](https://discuss.kakoune.com/u/jdugan6240)\
**Post date:** [November 2, 2021, 9:13pm UTC](https://discuss.kakoune.com/t/languageserver-jl-or-kak-lsp/1917/2 "2021-11-02T21:13:59Z")

</div>

While I’m not a core contributor to `kak-lsp`, I’ll try to help if I can. Addressing your concerns one by one:

Kakoune’s debug buffer is accessed by typing `:buffer *debug*` in normal mode. This will open up the debug buffer with details on the error you saw.

The `kakrc` those instructions are referring to is the file that should be located at ~/.config/kak/kakrc. The file that is distributed with Kakoune performs some important setup, such as loading all files within the ~/.config/kak/autoload directory (if it exists), so it’s not recommended to change it.

As for the duplicate kak-lsp.toml files: the one in the repo represents the default configuration that’s used if there is no ~/.config/kak-lsp/kak-lsp.toml file. Defining a ~/.config/kak-lsp/kak-lsp.toml file will overwrite this default configuration.

Finally, here are some concerns you didn’t mention outright but may cause problems with your setup:

- The `plug` command the instructions tell you to place in your kakrc comes from a plugin manager called plug.kak: [GitHub - andreyorst/plug.kak: Plugin manager for Kakoune](https://github.com/andreyorst/plug.kak). I would recommend following the installation instructions there to ensure this command works as intended. This is likely the source of the errors you were seeing.
- After getting plug.kak sorted, restart Kakoune and run `:plug-install`. This will automatically install kak-lsp, assuming you have a recent enough version of Rust installed.

I get that that’s probably a wall of text, but I hope it helps.

---

<div class="post-metadata">

**Author:** ![krobelus](https://discuss.kakoune.com/user_avatar/discuss.kakoune.com/krobelus/32/616_2.png) [@krobelus](https://discuss.kakoune.com/u/krobelus)\
**Post date:** [November 6, 2021, 2:50pm UTC](https://discuss.kakoune.com/t/languageserver-jl-or-kak-lsp/1917/3 "2021-11-06T14:50:25Z")

</div>

Note that if you don’t create a `kak-lsp.toml`, then kak-lsp will just use the default one, which is also good enough for this case.

You usually shouldn’t edit the system-wide /usr/share/kak/kakrc (which requires root privileges) - so rather use ~/.config/kak/kakrc

As alternative to the kakrc snippet in your link, you can also just use this snippet instead (assuming you have kak-lsp in your $PATH)

```auto
evaluate-commands %sh{kak-lsp -s $kak_session --kakoune}
lsp-enable

```

That should be enough to make basic things work. It can take a while to start up. If it doesn’t work, and there is no error in the `*debug*` buffer, then create a log (there’s an example in the wiki entry).
