@@ -6,10 +6,9 @@
|
||||
./plugins/blink-cmp.nix
|
||||
./plugins/conform.nix
|
||||
./plugins/copilot.nix
|
||||
./plugins/diffview.nix
|
||||
./plugins/grug-far.nix
|
||||
./plugins/harpoon.nix
|
||||
|
||||
./plugins/hunk.nix
|
||||
./plugins/lsp.nix
|
||||
./plugins/mini.nix
|
||||
./plugins/oil.nix
|
||||
|
||||
@@ -128,27 +128,10 @@
|
||||
key = "<leader>gg";
|
||||
action.__raw = ''
|
||||
function()
|
||||
local Terminal = require('toggleterm.terminal').Terminal
|
||||
local lazygit = Terminal:new({
|
||||
cmd = "lazygit",
|
||||
dir = "git_dir",
|
||||
direction = "float",
|
||||
float_opts = {
|
||||
border = "curved",
|
||||
winblend = 3,
|
||||
},
|
||||
on_open = function(term)
|
||||
vim.cmd("startinsert!")
|
||||
vim.api.nvim_buf_set_keymap(term.bufnr, "n", "q", "<cmd>close<CR>", {noremap = true, silent = true})
|
||||
end,
|
||||
on_close = function(term)
|
||||
vim.cmd("startinsert!")
|
||||
end,
|
||||
})
|
||||
lazygit:toggle()
|
||||
require('toggleterm.terminal').Terminal:new({ cmd = 'jjui', direction = 'float' }):toggle()
|
||||
end
|
||||
'';
|
||||
options.desc = "Lazygit (toggleterm)";
|
||||
options.desc = "jjui";
|
||||
}
|
||||
# l - lsp/formatter
|
||||
{
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
{
|
||||
programs.nixvim.plugins.diffview = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
7
modules/home/neovim/plugins/hunk.nix
Normal file
7
modules/home/neovim/plugins/hunk.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
programs.nixvim.plugins = {
|
||||
hunk = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -17,4 +17,4 @@
|
||||
shell = "fish";
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user