DEVELOPMENT ENVIRONMENT

~liljamo/nvim-flake

71ccd2b7fdc0b32a3cfa1eb552ca0fe9c12bd5c3 — Jonni Liljamo a day ago 1f447e0
feat(toggleterm): remove
2 files changed, 0 insertions(+), 15 deletions(-)

M config/plugins/default.nix
D config/plugins/toggleterm.nix
M config/plugins/default.nix => config/plugins/default.nix +0 -1
@@ 11,7 11,6 @@
    ./silicon.nix
    ./telescope.nix
    #./tiny-code-action.nix
    ./toggleterm.nix
    ./treesitter.nix
    ./which-key.nix
    ./zen-mode.nix

D config/plugins/toggleterm.nix => config/plugins/toggleterm.nix +0 -14
@@ 1,14 0,0 @@
{
  plugins.toggleterm.enable = true;
  extraConfigLua = ''
    local Terminal = require("toggleterm.terminal").Terminal
    local lazygit = Terminal:new({ cmd = "lazygit", hidden = true, direction = "float" })

    function _lazygit_toggle()
      lazygit:toggle()
    end

    vim.api.nvim_set_keymap("n", "<C-l>", "<cmd>lua _lazygit_toggle()<CR>",
      {noremap = true, silent = true, desc = "Toggle lazygit"})
  '';
}