DEVELOPMENT ENVIRONMENT

~liljamo/nvim-flake

ref: 3101f0fcb228d66b90f89707b1677fa7e9e1e4ea nvim-flake/config/plugins/toggleterm.nix -rw-r--r-- 423 bytes
3101f0fcJonni Liljamo feat: hide inline diagnostic messages 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", "<C-l>", "<cmd>lua _lazygit_toggle()<CR>",
      {noremap = true, silent = true, desc = "Toggle lazygit"})
  '';
}