mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-12-05 03:02:34 +01:00
use correct runtimepath in haxe mzte-nv rewrite
This commit is contained in:
parent
dd2a505142
commit
f7eacf9f91
3 changed files with 16 additions and 2 deletions
|
@ -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
15
mzte-nv/haxe/DynTable.hx
Normal 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;
|
||||
}
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue