DEVELOPMENT ENVIRONMENT

~liljamo/nvim-flake

ref: f326b43124b2a36f4758666fd7349f92f75300a6 nvim-flake/config/plugins/toggleterm.nix -rw-r--r-- 427 bytes
f326b431Jonni Liljamo chore: update a month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{
  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", "<leader>l", "<cmd>lua _lazygit_toggle()<CR>",
      {noremap = true, silent = true, desc = "Toggle lazygit"})
  '';
}