mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-22 07:35:08 +00:00
Add Kakoune.md
parent
4e24b3e236
commit
5b301d0e9d
27
Kakoune.md
Normal file
27
Kakoune.md
Normal file
@ -0,0 +1,27 @@
|
||||
Install [kak-lsp](https://github.com/ul/kak-lsp)
|
||||
|
||||
1. `git clone https://github.com/ul/kak-lsp`
|
||||
2. `cd kak-lsp; cargo install --locked --force --path .`
|
||||
3. `cp target/release/kak-lsp ~/.local/bin/`
|
||||
|
||||
### Configure
|
||||
|
||||
Change `~/.config/kak-lsp/kak-lsp.toml`:
|
||||
|
||||
```toml
|
||||
[language.c_cpp]
|
||||
filetypes = ["c", "cpp"]
|
||||
roots = [".ccls-root", "compile_commands.json"]
|
||||
command = "ccls"
|
||||
# kak-lsp does not support newText https://github.com/ul/kak-lsp/issues/40
|
||||
args = ["--init={\"completion\":{\"detailedLabel\":false}}"]
|
||||
```
|
||||
|
||||
Add to `~/.config/kak/kakrc`:
|
||||
|
||||
```kakoune
|
||||
eval %sh{kak-lsp --kakoune -s $kak_session}
|
||||
hook global WinSetOption filetype=(c|cpp) %{
|
||||
lsp-enable-window
|
||||
}
|
||||
```
|
@ -6,6 +6,7 @@
|
||||
- Emacs
|
||||
+ [[lsp-mode]] (+ emacs-ccls)
|
||||
+ [[eglot]]
|
||||
- [[Kakoune]]
|
||||
- Vim/Neovim
|
||||
+ [[ALE]]
|
||||
+ [[coc.nvim]]
|
||||
|
Loading…
Reference in New Issue
Block a user