-
Notifications
You must be signed in to change notification settings - Fork 259
Kakoune
Fangrui Song edited this page Oct 13, 2019
·
1 revision
Install kak-lsp
git clone https://github.com/ul/kak-lsp
cd kak-lsp; cargo install --locked --force --path .
cp target/release/kak-lsp ~/.local/bin/
Change ~/.config/kak-lsp/kak-lsp.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
:
eval %sh{kak-lsp --kakoune -s $kak_session}
hook global WinSetOption filetype=(c|cpp) %{
lsp-enable-window
}