Update kak-tree-sitter
This commit is contained in:
parent
16f735f25b
commit
1247233c36
|
@ -1,5 +1,6 @@
|
||||||
# Enable kak-tree-sitter
|
# Enable kak-tree-sitter
|
||||||
eval %sh{ kak-tree-sitter --kakoune -d --server }
|
eval %sh{ kak-tree-sitter --kakoune -d --server --with-text-objects }
|
||||||
|
map global normal <c-t> ": enter-user-mode tree-sitter<ret>"
|
||||||
## Set some color overrides
|
## Set some color overrides
|
||||||
set global kts_yellow "rgb:e2b75e"
|
set global kts_yellow "rgb:e2b75e"
|
||||||
set global kts_teal "rgb:008080"
|
set global kts_teal "rgb:008080"
|
||||||
|
@ -92,8 +93,8 @@ hook global WinSetOption filetype=(racket|rust|python|go|javascript|typescript|c
|
||||||
map window normal <c-s-h> ": lsp-hover-buffer<ret>"
|
map window normal <c-s-h> ": lsp-hover-buffer<ret>"
|
||||||
# lsp-auto-hover-insert-mode-enable
|
# lsp-auto-hover-insert-mode-enable
|
||||||
set window lsp_hover_anchor true
|
set window lsp_hover_anchor true
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
hook global WinSetOption filetype=(racket|rust|python|go|javascript|typescript|c|cpp|tex|latex|haskell|nix|fsharp) %{
|
hook global WinSetOption filetype=(racket|rust|python|go|javascript|typescript|c|cpp|tex|latex|haskell|nix|fsharp) %{
|
||||||
# Format the document if possible
|
# Format the document if possible
|
||||||
hook window BufWritePre .* %{ lsp-formatting-sync }
|
hook window BufWritePre .* %{ lsp-formatting-sync }
|
||||||
|
|
|
@ -3,15 +3,15 @@ let
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "phaazon";
|
owner = "phaazon";
|
||||||
repo = "kak-tree-sitter";
|
repo = "kak-tree-sitter";
|
||||||
rev = "kak-tree-sitter-v0.5.2";
|
rev = "61cce127ca03e3c969df1ff46f41074a3c69be31";
|
||||||
hash = "sha256-oyb1mczin1CEZwG1YBJfy1dSEYpNpqmZ21mscrgkoBo=";
|
hash = "sha256-wcgc1L6Y6obLTIonWLJzNK72fWW8oJ0yMEfGotCg5b8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
kak-tree-sitter = rustPlatform.buildRustPackage rec {
|
kak-tree-sitter = rustPlatform.buildRustPackage rec {
|
||||||
inherit src;
|
inherit src;
|
||||||
pname = "kak-tree-sitter";
|
pname = "kak-tree-sitter";
|
||||||
version = "0.5.2";
|
version = "0.5.5-${lib.substring 0 6 src.rev}";
|
||||||
cargoHash = "sha256-rvysHMMiI1e6RBKX+NFObB8fXGmzVnc+4/A5qPcEcm8=";
|
cargoHash = "sha256-Ozzcn4k+1Q+50zxCy9Flvv8vZKNcAesrHT/izVAgn54=";
|
||||||
cargoBuildOptions = [ "--package" "kak-tree-sitter" "--package" "ktsctl" ];
|
cargoBuildOptions = [ "--package" "kak-tree-sitter" "--package" "ktsctl" ];
|
||||||
|
|
||||||
nativeBuildInputs = [ clang git ];
|
nativeBuildInputs = [ clang git ];
|
||||||
|
|
Loading…
Reference in a new issue