use correct runtimepath in haxe mzte-nv rewrite

This commit is contained in:
LordMZTE 2024-10-27 17:09:26 +01:00
parent dd2a505142
commit f7eacf9f91
Signed by: LordMZTE
GPG key ID: B64802DC33A64FF6
3 changed files with 16 additions and 2 deletions

View file

@ -2,7 +2,6 @@
(values (require :cmp) (require :luasnip) (require :mzte_nv)))
(local sources {:buffer " "
:crates " "
:luasnip " "
:nvim_lsp " "
:path " "

15
mzte-nv/haxe/DynTable.hx Normal file
View file

@ -0,0 +1,15 @@
package;
import lua.Table;
abstract DynTable(AnyTable) from AnyTable to AnyTable {
public inline function new() {
this = Table.create();
}
@:arrayAccess
public inline function get(k:Dynamic):Dynamic return this[untyped k];
@:arrayAccess
public inline function set(k:Dynamic, v:Dynamic) this[untyped k] = v;
}

View file

@ -54,7 +54,7 @@ class Plugins {
final pluginpath:String = MZTENv.reg.nvim_plugins;
if (pluginpath != null) {
Vim.opt.runtimepath.prepend(pluginpath + "/*");
Vim.opt.runtimepath.append(pluginpath + ":/*/after");
Vim.opt.runtimepath.append(pluginpath + "/*/after");
}
if (MZTENv.reg.plugin_load_callbacks == null) {