kakoune updates

This commit is contained in:
Michael Chalupiak
2025-05-25 15:15:04 -04:00
parent 0ca4a99af1
commit eb8fe65fa9
12 changed files with 73 additions and 27 deletions

View File

@@ -1,27 +1,69 @@
# lua
# [language.lua.grammar.source.git]
# url = "https://github.com/tree-sitter-grammars/tree-sitter-lua"
# pin = "88e446476a1e97a8724dff7a23e2d709855077f2"
[language.lua.grammar.source.git]
url = "https://github.com/tree-sitter-grammars/tree-sitter-lua"
pin = "88e446476a1e97a8724dff7a23e2d709855077f2"
# [language.lua.grammar]
# path = "src"
# compile = "cc"
# compile_args = ["-c", "-fpic", "../scanner.c", "../parser.c", "-I", ".."]
# compile_flags = ["-O3"]
# link = "cc"
# link_args = ["-shared", "-fpic", "scanner.o", "parser.o", "-o", "lua.so"]
# link_flags = ["-O3"]
[language.lua.grammar]
path = "src"
compile = "cc"
compile_args = ["-c", "-fpic", "../scanner.c", "../parser.c", "-I", ".."]
compile_flags = ["-O3"]
link = "cc"
link_args = ["-shared", "-fpic", "scanner.o", "parser.o", "-o", "lua.so"]
link_flags = ["-O3"]
# [language.lua.queries.source.git]
# # url = "https://github.com/helix-editor/helix"
# # pin = "6bedca80646ce7350fb73029adf802ce7d9e241d"
[language.lua.queries.source.git]
url = "https://github.com/helix-editor/helix"
pin = "6bedca80646ce7350fb73029adf802ce7d9e241d"
# url = "https://github.com/nvim-treesitter/nvim-treesitter"
# pin = "5f38dffb6a07669a678f073bfe0f62b1a020dffc"
# [language.lua.queries]
# # path = "runtime/queries/lua"
[language.lua.queries]
path = "runtime/queries/lua"
# path = "queries/lua"
# clojure
# [language.clojure.grammar.source.git]
# url = "https://github.com/sogaiu/tree-sitter-clojure"
# pin = "f4236d4da8aa92bc105d9c118746474c608e6af7"
# [language.clojure.grammar]
# path = "src"
# compile = "cc"
# compile_args = ["-c", "-fpic", "../parser.c", "-I", ".."]
# compile_flags = ["-O3"]
# link = "cc"
# link_args = ["-shared", "-fpic", "parser.o", "-o", "clojure.so"]
# link_flags = ["-O3"]
# [language.clojure.queries.source.git]
# url = "https://github.com/helix-editor/helix"
# pin = "6bedca80646ce7350fb73029adf802ce7d9e241d"
# [language.clojure.queries]
# path = "runtime/queries/clojure"
#ocaml
[language.ocaml.grammar.source.git]
url = "https://github.com/tree-sitter/tree-sitter-ocaml"
pin = "ef6ed4a773a260545f0b03c43d2ca78235e9a488"
[language.ocaml.grammar]
path = "grammars/ocaml/src"
compile = "cc"
compile_args = ["-c", "-fpic", "../scanner.c", "../parser.c", "-I", ".."]
compile_flags = ["-O3"]
link = "cc"
link_args = ["-shared", "-fpic", "scanner.o", "parser.o", "-o", "ocaml.so"]
link_flags = ["-O3"]
[language.ocaml.queries.source.git]
url = "https://github.com/helix-editor/helix"
pin = "6bedca80646ce7350fb73029adf802ce7d9e241d"
[language.ocaml.queries]
path = "runtime/queries/ocaml"
# typst
[language.typst.grammar.source.git]
url = "https://github.com/uben0/tree-sitter-typst"

View File

@@ -25,6 +25,8 @@ plug "gustavo-hms/luar" %{
}
}
plug "h-youhei/kakoune-surround"
plug "your-tools/kak-subvert" do %{
cargo install --locked --force --path .
}
@@ -232,13 +234,14 @@ hook -group lsp-filetype-swift global BufSetOption filetype=swift %{
root_globs = [".git", ".hg"]
}
}
set-option global lsp_config %{
}
define-command fzf-buffer -docstring 'Invoke fzf to select a buffer' %{
evaluate-commands %sh{
tmux split-window -l 30% "(echo $kak_buflist | tr ' ' '\n' | fzf --bind 'focus:execute-silent(echo \"eval -client $kak_client %{ e {} }\" | kak -p $kak_session)' || echo \"$kak_buffile\") | xargs -I{} echo \"eval -client $kak_client %{ e {} }\" | /usr/bin/kak -p $kak_session"
}
tmux split-window -l 30% "(printf \"%s\n\" $kak_quoted_buflist | fzf --bind 'focus:execute-silent(echo \"eval -client $kak_client %{ e {} }\" | kak -p $kak_session)' || echo \"$kak_buffile\") | xargs -I{} echo \"eval -client $kak_client %{ e '{}' }\" | /usr/bin/kak -p $kak_session"
}
}
define-command -docstring 'Invoke fzf to select a buffer' prev-fzf-buff %{