mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
treewide (cleaning): helpers.toLuaObject -> lib.nixvim.toLuaObject
This commit is contained in:
parent
78e295fa41
commit
ec24d496d5
65 changed files with 104 additions and 104 deletions
|
@ -61,7 +61,7 @@ in
|
|||
plugins.dap = {
|
||||
enable = true;
|
||||
extensionConfigLua = ''
|
||||
require("dap-go").setup(${helpers.toLuaObject options})
|
||||
require("dap-go").setup(${lib.nixvim.toLuaObject options})
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
|
|
@ -239,7 +239,7 @@ in
|
|||
enable = true;
|
||||
|
||||
extensionConfigLua = ''
|
||||
require("dapui").setup(${helpers.toLuaObject options});
|
||||
require("dapui").setup(${lib.nixvim.toLuaObject options});
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
|
|
@ -94,7 +94,7 @@ in
|
|||
enable = true;
|
||||
|
||||
extensionConfigLua = ''
|
||||
require("nvim-dap-virtual-text").setup(${helpers.toLuaObject options});
|
||||
require("nvim-dap-virtual-text").setup(${lib.nixvim.toLuaObject options});
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
|
|
@ -90,13 +90,13 @@ with dapHelpers;
|
|||
|
||||
extraConfigLua =
|
||||
(optionalString (cfg.adapters != null) ''
|
||||
require("dap").adapters = ${helpers.toLuaObject options.adapters}
|
||||
require("dap").adapters = ${lib.nixvim.toLuaObject options.adapters}
|
||||
'')
|
||||
+ (optionalString (options.configurations != null) ''
|
||||
require("dap").configurations = ${helpers.toLuaObject options.configurations}
|
||||
require("dap").configurations = ${lib.nixvim.toLuaObject options.configurations}
|
||||
'')
|
||||
+ (optionalString (cfg.signs != null) ''
|
||||
local __dap_signs = ${helpers.toLuaObject options.signs}
|
||||
local __dap_signs = ${lib.nixvim.toLuaObject options.signs}
|
||||
for sign_name, sign in pairs(__dap_signs) do
|
||||
vim.fn.sign_define(sign_name, sign)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue