diff options
| -rw-r--r-- | modules/home/i3wm/nord-blue/nvim.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/modules/home/i3wm/nord-blue/nvim.nix b/modules/home/i3wm/nord-blue/nvim.nix index eaf9b28..35d0430 100644 --- a/modules/home/i3wm/nord-blue/nvim.nix +++ b/modules/home/i3wm/nord-blue/nvim.nix @@ -23,6 +23,7 @@ nvim-tree-lua # Tree file browser nvim-web-devicons # Icons orgmode # Obsidian.md stuff for neovim + toggleterm # Togglable terminal in Neovim { plugin = vim-startify; # Add the plugin and its coresponding config config = "let g:startify_change_to_vcs_root = 0"; @@ -130,6 +131,33 @@ -- Let treesitter handle LaTeX highlighting vim.g.vimtex_syntax_enabled = 0 + -- ToggleTerm setup + require("toggleterm").setup({ + size = 20, + open_mapping = [[<c-\>]], + direction = "float", + float_opts = { + border = "rounded", + }, + }) + + -- Lazygit floating terminal + local Terminal = require("toggleterm.terminal").Terminal + + local lazygit = Terminal:new({ + cmd = "lazygit", + hidden = true, + direction = "float", + float_opts = { + border = "rounded", + }, + }) + + function _LAZYGIT_TOGGLE() + lazygit:toggle() + end + + vim.keymap.set("n", "<leader>gg", _LAZYGIT_TOGGLE, { desc = "Lazygit" }) -- Auto settings for LaTeX files vim.api.nvim_create_autocmd("FileType", { |
