Merge pull request #231709 from figsoda/vim

vimPlugins: update
This commit is contained in:
figsoda 2023-05-15 18:23:31 -04:00 committed by GitHub
commit 121ec157a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 369 additions and 299 deletions

File diff suppressed because it is too large Load Diff

View File

@ -104,12 +104,12 @@
}; };
bicep = buildGrammar { bicep = buildGrammar {
language = "bicep"; language = "bicep";
version = "0.0.0+rev=b94a098"; version = "0.0.0+rev=3604d8c";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "amaanq"; owner = "amaanq";
repo = "tree-sitter-bicep"; repo = "tree-sitter-bicep";
rev = "b94a0983b69ebb75e9129329a188199ad6ebcec0"; rev = "3604d8c961ab129d2bfc6dfca56419c236ccdb83";
hash = "sha256-YCVOgLmtCWd4FwfwmQUZhSzP2wS2ZDLwXP1BRrpE0Ls="; hash = "sha256-s0BtyYtC/D8+nudkHxpd4rSPQWrA0FngH9HIX85H/Uw=";
}; };
meta.homepage = "https://github.com/amaanq/tree-sitter-bicep"; meta.homepage = "https://github.com/amaanq/tree-sitter-bicep";
}; };
@ -137,12 +137,12 @@
}; };
c_sharp = buildGrammar { c_sharp = buildGrammar {
language = "c_sharp"; language = "c_sharp";
version = "0.0.0+rev=2340fd6"; version = "0.0.0+rev=7611471";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "tree-sitter"; owner = "tree-sitter";
repo = "tree-sitter-c-sharp"; repo = "tree-sitter-c-sharp";
rev = "2340fd6b57b06ccbf24c2c6dafb15905fdccfb1f"; rev = "76114711aedd3f4b6e1333a7513975647930c629";
hash = "sha256-9acxVw5EWr/NwO5ERwy3V976NMY65vDQp60jIoDfO7k="; hash = "sha256-sBpI/8SfIzPQ0aJ8tw00IZoWGFnBo6mvRcn1lKfnaTg=";
}; };
meta.homepage = "https://github.com/tree-sitter/tree-sitter-c-sharp"; meta.homepage = "https://github.com/tree-sitter/tree-sitter-c-sharp";
}; };
@ -225,23 +225,23 @@
}; };
cpon = buildGrammar { cpon = buildGrammar {
language = "cpon"; language = "cpon";
version = "0.0.0+rev=eedb93b"; version = "0.0.0+rev=f4b3cbc";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "amaanq"; owner = "amaanq";
repo = "tree-sitter-cpon"; repo = "tree-sitter-cpon";
rev = "eedb93bf9e22e82ed6a67e6c57fd78731b44f591"; rev = "f4b3cbc8b0bd4e13035d39940fef09f1392e8739";
hash = "sha256-8x+oUbiwt7prGc5cli5HabHoH3q/mBnQzO1Wy2Bauac="; hash = "sha256-Enxc0sdQS9vSZVvIQkkHxk/1bzT2denRk0+AZdDNnJ8=";
}; };
meta.homepage = "https://github.com/amaanq/tree-sitter-cpon"; meta.homepage = "https://github.com/amaanq/tree-sitter-cpon";
}; };
cpp = buildGrammar { cpp = buildGrammar {
language = "cpp"; language = "cpp";
version = "0.0.0+rev=670404d"; version = "0.0.0+rev=70aed2e";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "tree-sitter"; owner = "tree-sitter";
repo = "tree-sitter-cpp"; repo = "tree-sitter-cpp";
rev = "670404d7c689be1c868a46f919ba2a3912f2b7ef"; rev = "70aed2e9e83eb7320ab7c454d3084300bf587037";
hash = "sha256-T+Ha2hlI7ucEsTYvDmk7xjHNEoyvnotp/1EWfyCwnWM="; hash = "sha256-3gTLqz1H/7A8+2NiZmR/jBPt4Rh/Wvlcxt/aD7w8T8A=";
}; };
meta.homepage = "https://github.com/tree-sitter/tree-sitter-cpp"; meta.homepage = "https://github.com/tree-sitter/tree-sitter-cpp";
}; };
@ -258,12 +258,12 @@
}; };
cuda = buildGrammar { cuda = buildGrammar {
language = "cuda"; language = "cuda";
version = "0.0.0+rev=a358542"; version = "0.0.0+rev=a27cb7b";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "theHamsta"; owner = "theHamsta";
repo = "tree-sitter-cuda"; repo = "tree-sitter-cuda";
rev = "a35854270463a96e79096bb854aae30a4f0e6cd2"; rev = "a27cb7b9d105c43205fa899f49bc0cc4cf399484";
hash = "sha256-8CRFEUxTge0EJQQQVabCjstUGkOIPlC1duj2jD4R89E="; hash = "sha256-OXm/urF5AIxod1J5i951C6kcf6pZRj+Q+ObwD0yj55Q=";
}; };
meta.homepage = "https://github.com/theHamsta/tree-sitter-cuda"; meta.homepage = "https://github.com/theHamsta/tree-sitter-cuda";
}; };
@ -513,12 +513,12 @@
}; };
func = buildGrammar { func = buildGrammar {
language = "func"; language = "func";
version = "0.0.0+rev=f161cfe"; version = "0.0.0+rev=0834e35";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "amaanq"; owner = "amaanq";
repo = "tree-sitter-func"; repo = "tree-sitter-func";
rev = "f161cfe22452b386eeeab29ba0d2c14893f1a31f"; rev = "0834e35ecf8b23fbf9ad15b088af6a897e19d4a8";
hash = "sha256-Swyg5EdBWVT6P9vgS7h/fmK0ySRwiFlynJEZT9I10qg="; hash = "sha256-2+YOp7MnwZR2qg95h/ywjJwDSLUnodtkwwpv9zuy8p8=";
}; };
meta.homepage = "https://github.com/amaanq/tree-sitter-func"; meta.homepage = "https://github.com/amaanq/tree-sitter-func";
}; };
@ -667,12 +667,12 @@
}; };
gosum = buildGrammar { gosum = buildGrammar {
language = "gosum"; language = "gosum";
version = "0.0.0+rev=14da5c2"; version = "0.0.0+rev=e2ac513";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "amaanq"; owner = "amaanq";
repo = "tree-sitter-go-sum"; repo = "tree-sitter-go-sum";
rev = "14da5c2a34861eb2d97ed89f39324156031e8878"; rev = "e2ac513b2240c7ff1069ae33b2df29ce90777c11";
hash = "sha256-PP8uj8tFMIBZtFuOQbEi25Yz/UEy5cRiEklbrlS5J+Q="; hash = "sha256-2foA2sd5PQpmeX8OhXrW/dxoJaEyxDXzPWh+UD0dgzQ=";
}; };
meta.homepage = "https://github.com/amaanq/tree-sitter-go-sum"; meta.homepage = "https://github.com/amaanq/tree-sitter-go-sum";
}; };
@ -711,12 +711,12 @@
}; };
hare = buildGrammar { hare = buildGrammar {
language = "hare"; language = "hare";
version = "0.0.0+rev=f0a9e62"; version = "0.0.0+rev=3d4af17";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "amaanq"; owner = "amaanq";
repo = "tree-sitter-hare"; repo = "tree-sitter-hare";
rev = "f0a9e6207a8c84bbd11143c8eb0c6cf70dc6d8b4"; rev = "3d4af179414525a35dd069ba0208c9b71093d8b3";
hash = "sha256-zJxkbAzAbA3aRuSHWEF26msbVszK7OxgXP6YPZBUu8w="; hash = "sha256-RRi2uAE9rf0bjQrk8Asf6z+6ZDZYhEoKaX0m8hZnI9o=";
}; };
meta.homepage = "https://github.com/amaanq/tree-sitter-hare"; meta.homepage = "https://github.com/amaanq/tree-sitter-hare";
}; };
@ -766,12 +766,12 @@
}; };
hlsl = buildGrammar { hlsl = buildGrammar {
language = "hlsl"; language = "hlsl";
version = "0.0.0+rev=40472c1"; version = "0.0.0+rev=9160427";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "theHamsta"; owner = "theHamsta";
repo = "tree-sitter-hlsl"; repo = "tree-sitter-hlsl";
rev = "40472c119b5740d9a1fa0b0dc0b013502b636708"; rev = "916042734060d3d3a023f6637c815a1d23814af8";
hash = "sha256-PfShqPSIsYVMPpW9hQhbEz378vBwDiNkBKR3rLXcIdM="; hash = "sha256-FGOXqBmQXCK2G1iseYgc7CdMOQ7P9dVG7ZHEsqcnRhk=";
}; };
meta.homepage = "https://github.com/theHamsta/tree-sitter-hlsl"; meta.homepage = "https://github.com/theHamsta/tree-sitter-hlsl";
}; };
@ -942,12 +942,12 @@
}; };
kdl = buildGrammar { kdl = buildGrammar {
language = "kdl"; language = "kdl";
version = "0.0.0+rev=d118f93"; version = "0.0.0+rev=e180e05";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "amaanq"; owner = "amaanq";
repo = "tree-sitter-kdl"; repo = "tree-sitter-kdl";
rev = "d118f9376ef4f0461975289302fe74a28f073876"; rev = "e180e05132c4cb229a8ba679b298790ef1eca77c";
hash = "sha256-FxY7wqksjSJiOffb7FBcsDQ0oMr94CeGreBV8MMtFr4="; hash = "sha256-XJ2thChaJQjn0N/tqotjc/eR3W4+6GrNv/FxjvScswc=";
}; };
meta.homepage = "https://github.com/amaanq/tree-sitter-kdl"; meta.homepage = "https://github.com/amaanq/tree-sitter-kdl";
}; };
@ -975,12 +975,12 @@
}; };
latex = buildGrammar { latex = buildGrammar {
language = "latex"; language = "latex";
version = "0.0.0+rev=cd3cc49"; version = "0.0.0+rev=b0686a8";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "latex-lsp"; owner = "latex-lsp";
repo = "tree-sitter-latex"; repo = "tree-sitter-latex";
rev = "cd3cc493a92b6bac7be4b3bd6d006d35d3c36d4c"; rev = "b0686a83c2429cc04e6d01f067f5a0a8efc0d17b";
hash = "sha256-CHN54T4+eD7EGx4nzAIryAHOu8NCiBDjM2A7Njjt87w="; hash = "sha256-/80/7HRLMt0p+SqO4d2wcRjHxZZCLH0ooJs4tNrw+oY=";
}; };
meta.homepage = "https://github.com/latex-lsp/tree-sitter-latex"; meta.homepage = "https://github.com/latex-lsp/tree-sitter-latex";
}; };
@ -1008,34 +1008,34 @@
}; };
lua = buildGrammar { lua = buildGrammar {
language = "lua"; language = "lua";
version = "0.0.0+rev=4e94980"; version = "0.0.0+rev=dcc44f7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "MunifTanjim"; owner = "MunifTanjim";
repo = "tree-sitter-lua"; repo = "tree-sitter-lua";
rev = "4e94980e52f81f713d09be104ba32bf050000031"; rev = "dcc44f7473ecec4d7b99af0a9529705d98a769f1";
hash = "sha256-Arv627RIv0d/plfBPq5QVks737PUy3sq2kuLwLr++uM="; hash = "sha256-vcss4Ux4DYJHyW8WCFBejPcq711QhemBHsVg482zNY8=";
}; };
meta.homepage = "https://github.com/MunifTanjim/tree-sitter-lua"; meta.homepage = "https://github.com/MunifTanjim/tree-sitter-lua";
}; };
luadoc = buildGrammar { luadoc = buildGrammar {
language = "luadoc"; language = "luadoc";
version = "0.0.0+rev=1e11522"; version = "0.0.0+rev=978cc13";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "amaanq"; owner = "amaanq";
repo = "tree-sitter-luadoc"; repo = "tree-sitter-luadoc";
rev = "1e1152264cc68e11d65d9e2493566f5717a13d11"; rev = "978cc13791c1d6e4626ee7e8db108d0be14f07e7";
hash = "sha256-CNSo4m5peO1WBncZ1RGmmbA3V8qefh5LJJpFYFTAlsY="; hash = "sha256-59rUWQCQ7NzCe6VQJP4mWktDPbFMfUqRnPlqmbon8hU=";
}; };
meta.homepage = "https://github.com/amaanq/tree-sitter-luadoc"; meta.homepage = "https://github.com/amaanq/tree-sitter-luadoc";
}; };
luap = buildGrammar { luap = buildGrammar {
language = "luap"; language = "luap";
version = "0.0.0+rev=393915d"; version = "0.0.0+rev=43916b0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "amaanq"; owner = "amaanq";
repo = "tree-sitter-luap"; repo = "tree-sitter-luap";
rev = "393915db4b16a792da9c60f52d11d93247d870b9"; rev = "43916b0f31c48a05e03783eb0bab4eec54a4ac75";
hash = "sha256-FLRPzU1JI8PoI8vZAKXG6DtHcnSksXCwTHAS0fb4WsY="; hash = "sha256-wu2f9iCByf85/iE6j5slNruYH8GUVD19u/ygJ/yx76U=";
}; };
meta.homepage = "https://github.com/amaanq/tree-sitter-luap"; meta.homepage = "https://github.com/amaanq/tree-sitter-luap";
}; };
@ -1232,6 +1232,17 @@
generate = true; generate = true;
meta.homepage = "https://github.com/atom-ocaml/tree-sitter-ocamllex"; meta.homepage = "https://github.com/atom-ocaml/tree-sitter-ocamllex";
}; };
odin = buildGrammar {
language = "odin";
version = "0.0.0+rev=d165dbe";
src = fetchFromGitHub {
owner = "amaanq";
repo = "tree-sitter-odin";
rev = "d165dbee27617dab2653e38737d96ede1030d14f";
hash = "sha256-NxF3aSDtXGMcE7v0BrYQbnUM/hophanKgsYX1ad8AFY=";
};
meta.homepage = "https://github.com/amaanq/tree-sitter-odin";
};
org = buildGrammar { org = buildGrammar {
language = "org"; language = "org";
version = "0.0.0+rev=081179c"; version = "0.0.0+rev=081179c";
@ -1388,12 +1399,12 @@
}; };
puppet = buildGrammar { puppet = buildGrammar {
language = "puppet"; language = "puppet";
version = "0.0.0+rev=5e1bb97"; version = "0.0.0+rev=843868b";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "amaanq"; owner = "amaanq";
repo = "tree-sitter-puppet"; repo = "tree-sitter-puppet";
rev = "5e1bb979ea71efc0860d4bc56eb3b3f7a670d6ec"; rev = "843868bfb909b734bfb63778a5685fae4bf2a33f";
hash = "sha256-7xqZ5nVAyflQ84Zah6M6yxpJ8qQooWl6tOodioXvsI8="; hash = "sha256-6fJNADrLVsIoho9G8qCsMKNDB5a32gUntug7Nh8pKEg=";
}; };
meta.homepage = "https://github.com/amaanq/tree-sitter-puppet"; meta.homepage = "https://github.com/amaanq/tree-sitter-puppet";
}; };
@ -1608,12 +1619,12 @@
}; };
smali = buildGrammar { smali = buildGrammar {
language = "smali"; language = "smali";
version = "0.0.0+rev=9bf8aa6"; version = "0.0.0+rev=72e334b";
src = fetchFromSourcehut { src = fetchFromSourcehut {
owner = "~yotam"; owner = "~yotam";
repo = "tree-sitter-smali"; repo = "tree-sitter-smali";
rev = "9bf8aa671a233ae2d2c6e9512c7144ce121b1fb6"; rev = "72e334b2630f5852825ba5ff9dfd872447175eb5";
hash = "sha256-V5JnB1JT8vV5zA+OjM0a7fBGC8CEqyPcUbeD8NoRTSE="; hash = "sha256-vV+4Q2IyWyw/GN8bmgHJmSEHhpjUWHkL2yschPI9fiU=";
}; };
meta.homepage = "https://git.sr.ht/~yotam/tree-sitter-smali"; meta.homepage = "https://git.sr.ht/~yotam/tree-sitter-smali";
}; };
@ -1741,13 +1752,13 @@
}; };
t32 = buildGrammar { t32 = buildGrammar {
language = "t32"; language = "t32";
version = "0.0.0+rev=ff822fd"; version = "0.0.0+rev=4fca25f";
src = fetchFromGitea { src = fetchFromGitea {
domain = "codeberg.org"; domain = "codeberg.org";
owner = "xasc"; owner = "xasc";
repo = "tree-sitter-t32"; repo = "tree-sitter-t32";
rev = "ff822fd77bb919854ba60d05f4d373d9d578d0e0"; rev = "4fca25fa99b6fd9ccf9cab9b6bf702a9df142ad5";
hash = "sha256-jHVfyp8yLaxI+Aa4iH1fXpNIzIoGLdQwo7SvRGFKbFQ="; hash = "sha256-x657aMnqCw/TlS1VyC8er5GQ1QqGdGHGgfSIStUbVfQ=";
}; };
meta.homepage = "https://codeberg.org/xasc/tree-sitter-t32"; meta.homepage = "https://codeberg.org/xasc/tree-sitter-t32";
}; };

View File

@ -774,15 +774,14 @@ self: super: {
openscad-nvim = super.openscad-nvim.overrideAttrs (old: { openscad-nvim = super.openscad-nvim.overrideAttrs (old: {
buildInputs = [ zathura htop openscad ]; buildInputs = [ zathura htop openscad ];
patches = [ ./patches/openscad.nvim/program_paths.patch ]; patches = [
(substituteAll {
postPatch = '' src = ./patches/openscad.nvim/program_paths.patch;
substituteInPlace lua/openscad.lua --replace '@zathura-path@' ${zathura}/bin/zathura htop = lib.getExe htop;
substituteInPlace autoload/health/openscad_nvim.vim --replace '@zathura-path@' ${zathura}/bin/zathura openscad = lib.getExe openscad;
substituteInPlace lua/openscad/terminal.lua --replace '@htop-path@' ${htop}/bin/htop zathura = lib.getExe zathura;
substituteInPlace autoload/health/openscad_nvim.vim --replace '@htop-path@' ${htop}/bin/htop })
substituteInPlace lua/openscad.lua --replace '@openscad-path@' ${openscad}/bin/openscad ];
'';
}); });
orgmode = super.orgmode.overrideAttrs (old: { orgmode = super.orgmode.overrideAttrs (old: {

View File

@ -7,7 +7,7 @@ index 9022d55..30ef53f 100644
function! s:check_zathura_installed() abort function! s:check_zathura_installed() abort
- if !executable('zathura') - if !executable('zathura')
+ if !executable('@zathura-path@') + if !executable('@zathura@')
call health#report_error('has(zathura)','install zathura') call health#report_error('has(zathura)','install zathura')
else else
call health#report_ok("zathura is installed") call health#report_ok("zathura is installed")
@ -16,7 +16,7 @@ index 9022d55..30ef53f 100644
function! s:check_htop_installed() abort function! s:check_htop_installed() abort
- if !executable('htop') - if !executable('htop')
+ if !executable('@htop-path@') + if !executable('@htop@')
call health#report_error('has(htop)','install htop') call health#report_error('has(htop)','install htop')
else else
call health#report_ok("htop is installed") call health#report_ok("htop is installed")
@ -29,16 +29,16 @@ index 7dff2fb..4382003 100644
function M.manual() function M.manual()
local path = U.openscad_nvim_root_dir .. U.path_sep .. "help_source" .. U.path_sep .. "openscad-manual.pdf" local path = U.openscad_nvim_root_dir .. U.path_sep .. "help_source" .. U.path_sep .. "openscad-manual.pdf"
- api.nvim_command('silent !zathura --fork ' .. path) - api.nvim_command('silent !zathura --fork ' .. path)
+ api.nvim_command('silent !@zathura-path@ --fork ' .. path) + api.nvim_command('silent !@zathura@ --fork ' .. path)
end end
function M.help() function M.help()
@@ -119,7 +119,7 @@ end @@ -125,7 +125,7 @@ function M.exec_openscad()
jobCommand = '/Applications/OpenSCAD.app/Contents/MacOS/OpenSCAD ' .. vim.fn.expand('%:p')
function M.exec_openscad() else
-- maybe just use api.jobstart .. instead -- TODO: What about Windows?
- api.nvim_command[[ call jobstart('openscad ' . shellescape(expand('%:p')), {'detach':1}) ]] - jobCommand = 'openscad ' .. vim.fn.expand('%:p')
+ api.nvim_command[[ call jobstart('@openscad-path@ ' . shellescape(expand('%:p')), {'detach':1}) ]] + jobCommand = '@oepnscad@ ' .. vim.fn.expand('%:p')
end end
function M.default_mappings() vim.fn.jobstart(jobCommand)