Add rnix-lsp

This commit is contained in:
Natsu Kagami 2021-10-29 00:25:58 -04:00
parent 466f5f1e90
commit 4f635b3cd3
5 changed files with 88 additions and 5 deletions

View file

@ -28,6 +28,7 @@
yarn
## Nix
cachix
rnix-lsp
# Fonts
fantasque-sans-mono

View file

@ -159,4 +159,7 @@ command = "FSharpLanguageServer"
# command = "dotnet"
# args = ["/home/natsukagami/Projects/FsAutoComplete/bin/release_netcore/fsautocomplete.dll", "--background-service-enabled"]
[language.nix]
filetypes = ["nix"]
roots = ["flake.nix", "shell.nix", ".git"]
command = "rnix-lsp"

View file

@ -95,7 +95,7 @@ hook global InsertCompletionHide .* %{
try %{
eval %sh{test -z "$WE_STARTED_KAK" && kak-lsp --kakoune -s $kak_session}
}
hook global WinSetOption filetype=(racket|rust|python|go|javascript|typescript|c|cpp|tex|latex|fsharp|ocaml|haskell) %{
hook global WinSetOption filetype=(racket|rust|python|go|javascript|typescript|c|cpp|tex|latex|fsharp|ocaml|haskell|nix) %{
lsp-enable-window
map global normal <c-l> ": enter-user-mode lsp<ret>"
lsp-auto-hover-enable