mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-02-24 20:38:47 +00:00
Compare commits
1 commit
c7c96fe649
...
f10d347a2d
Author | SHA1 | Date | |
---|---|---|---|
![]() |
f10d347a2d |
1 changed files with 50 additions and 54 deletions
|
@ -16,10 +16,9 @@
|
||||||
in {
|
in {
|
||||||
config = mkMerge [
|
config = mkMerge [
|
||||||
(mkIf cfg.enable {
|
(mkIf cfg.enable {
|
||||||
vim = {
|
vim.startPlugins = ["nvim-dap"];
|
||||||
startPlugins = ["nvim-dap"];
|
|
||||||
|
|
||||||
pluginRC =
|
vim.pluginRC =
|
||||||
{
|
{
|
||||||
# TODO customizable keymaps
|
# TODO customizable keymaps
|
||||||
nvim-dap = entryAnywhere ''
|
nvim-dap = entryAnywhere ''
|
||||||
|
@ -29,7 +28,7 @@ in {
|
||||||
}
|
}
|
||||||
// mapAttrs (_: v: (entryAfter ["nvim-dap"] v)) cfg.sources;
|
// mapAttrs (_: v: (entryAfter ["nvim-dap"] v)) cfg.sources;
|
||||||
|
|
||||||
maps.normal = mkMerge [
|
vim.maps.normal = mkMerge [
|
||||||
(mkSetLuaBinding mappings.continue "require('dap').continue")
|
(mkSetLuaBinding mappings.continue "require('dap').continue")
|
||||||
(mkSetLuaBinding mappings.restart "require('dap').restart")
|
(mkSetLuaBinding mappings.restart "require('dap').restart")
|
||||||
(mkSetLuaBinding mappings.terminate "require('dap').terminate")
|
(mkSetLuaBinding mappings.terminate "require('dap').terminate")
|
||||||
|
@ -48,13 +47,11 @@ in {
|
||||||
(mkSetLuaBinding mappings.goUp "require('dap').up")
|
(mkSetLuaBinding mappings.goUp "require('dap').up")
|
||||||
(mkSetLuaBinding mappings.goDown "require('dap').down")
|
(mkSetLuaBinding mappings.goDown "require('dap').down")
|
||||||
];
|
];
|
||||||
};
|
|
||||||
})
|
})
|
||||||
(mkIf (cfg.enable && cfg.ui.enable) {
|
(mkIf (cfg.enable && cfg.ui.enable) {
|
||||||
vim = {
|
vim.startPlugins = ["nvim-nio"];
|
||||||
startPlugins = ["nvim-nio"];
|
|
||||||
|
|
||||||
lazy.plugins = [
|
vim.lazy.plugins = [
|
||||||
{
|
{
|
||||||
package = "nvim-dap-ui";
|
package = "nvim-dap-ui";
|
||||||
setupModule = "dapui";
|
setupModule = "dapui";
|
||||||
|
@ -66,7 +63,7 @@ in {
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
pluginRC.nvim-dap-ui = entryAfter ["nvim-dap"] (
|
vim.pluginRC.nvim-dap-ui = entryAfter ["nvim-dap"] (
|
||||||
optionalString cfg.ui.autoStart ''
|
optionalString cfg.ui.autoStart ''
|
||||||
dap.listeners.after.event_initialized["dapui_config"] = function()
|
dap.listeners.after.event_initialized["dapui_config"] = function()
|
||||||
require("dapui").open()
|
require("dapui").open()
|
||||||
|
@ -79,7 +76,6 @@ in {
|
||||||
end
|
end
|
||||||
''
|
''
|
||||||
);
|
);
|
||||||
};
|
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue