1

Refresh generated neovim config

This commit is contained in:
2024-07-14 21:12:36 +02:00
parent f215ce2ab5
commit 00464e0e65
731 changed files with 6780 additions and 31110 deletions

View File

@ -1,4 +1,4 @@
#!/nix/store/php4qidg2bxzmm79vpri025bqi0fa889-coreutils-9.5/bin/env -S -l
#!/nix/store/i7qhgc0bs725qw3wdanznfkdna4z2ns2-coreutils-9.5/bin/env -S -l
vim.opt.rtp:prepend "./"
-- Equivalent to print(), but this will ensure consistent output regardless of

View File

@ -1,4 +1,4 @@
#!/nix/store/306znyj77fv49kwnkpxmb0j2znqpa8bj-bash-5.2p26/bin/bash
#!/nix/store/agkxax48k35wdmkhmmija2i2sxg8i7ny-bash-5.2p26/bin/bash
set -e

View File

@ -1,4 +1,4 @@
#!/nix/store/php4qidg2bxzmm79vpri025bqi0fa889-coreutils-9.5/bin/env -S -l
#!/nix/store/i7qhgc0bs725qw3wdanznfkdna4z2ns2-coreutils-9.5/bin/env -S -l
local ts = vim.treesitter
local get_node_text = ts.get_node_text
@ -13,7 +13,7 @@ else
files = vim.fn.split(vim.fn.glob(arg .. "/**/*.scm"))
end
ts.query.add_predicate("has-type?", function(match, _, _, pred)
ts.query.add_predicate("kind-eq?", function(match, _, _, pred)
local node = match[pred[2]]
if not node then
return true
@ -132,7 +132,7 @@ local format_queries = [[
;; Append newlines for nodes inside the list
(list
(_) @format.append-newline
(#not-has-type? @format.append-newline capture quantifier))
(#not-kind-eq? @format.append-newline "capture" "quantifier"))
;; (_), "_" and _ handler
;; Start indents if it's one of these patterns
@ -194,7 +194,7 @@ local format_queries = [[
] @format.cancel-append
.
")"
(#not-has-type? @format.cancel-append comment))
(#not-kind-eq? @format.cancel-append "comment"))
;; All captures should be separated with a space
(capture) @format.prepend-space
@ -233,7 +233,7 @@ local format_queries = [[
;; Collapsing closing parens
(grouping
(_) @format.cancel-append . ")"
(#not-has-type? @format.cancel-append comment))
(#not-kind-eq? @format.cancel-append "comment"))
(grouping
(capture) @format.prepend-space)
;; Remove unnecessary parens

View File

@ -1,4 +1,4 @@
#!/nix/store/306znyj77fv49kwnkpxmb0j2znqpa8bj-bash-5.2p26/bin/bash
#!/nix/store/agkxax48k35wdmkhmmija2i2sxg8i7ny-bash-5.2p26/bin/bash
# Can be used as a pre-push hook
# Just symlink this file to .git/hooks/pre-push

View File

@ -1,4 +1,4 @@
#!/nix/store/306znyj77fv49kwnkpxmb0j2znqpa8bj-bash-5.2p26/bin/bash
#!/nix/store/agkxax48k35wdmkhmmija2i2sxg8i7ny-bash-5.2p26/bin/bash
HERE="$(dirname "$(realpath "${BASH_SOURCE[0]}")")"
cd $HERE/..

View File

@ -1,4 +1,4 @@
#!/nix/store/306znyj77fv49kwnkpxmb0j2znqpa8bj-bash-5.2p26/bin/bash
#!/nix/store/agkxax48k35wdmkhmmija2i2sxg8i7ny-bash-5.2p26/bin/bash
make_ignored() {
if [[ -n $1 ]]; then

View File

@ -1,4 +1,4 @@
#!/nix/store/php4qidg2bxzmm79vpri025bqi0fa889-coreutils-9.5/bin/env -S -l
#!/nix/store/i7qhgc0bs725qw3wdanznfkdna4z2ns2-coreutils-9.5/bin/env -S -l
---@class Parser
---@field name string

View File

@ -1,4 +1,4 @@
#!/nix/store/php4qidg2bxzmm79vpri025bqi0fa889-coreutils-9.5/bin/env -S -l
#!/nix/store/i7qhgc0bs725qw3wdanznfkdna4z2ns2-coreutils-9.5/bin/env -S -l
---@type string|any[]
local skip_langs = vim.fn.getenv "SKIP_LOCKFILE_UPDATE_FOR_LANGS"