DEVELOPMENT ENVIRONMENT

~liljamo/nvim-flake

ref: 0fd19f4f47d0f8741dbebe1f6f0fa984a22c756d nvim-flake/config/plugins/toggleterm.nix -rw-r--r-- 423 bytes
0fd19f4fJonni Liljamo feat(lsp): make sure tailwindcss is attached to these types 20 hours 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"})
  '';
}