aboutsummaryrefslogtreecommitdiff
path: root/nvim/lua/custom/plugins/toggleterm.lua
blob: cc40f757ec9867c7e0bc49bcd2e4ee276025db7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
return {
  {
    'akinsho/toggleterm.nvim',
    version = '*',
    opts = {
      start_in_insert = false,
      persistent_mode = true,
      shell = vim.o.shell,
      auto_scroll = true,

      -- Float options
      float_opts = {
        border = 'single',
        title_pos = 'center',
      },

      -- Bindings
      vim.keymap.set('n', '<leader>`', ':ToggleTerm direction=float<cr>', { desc = 'Open a floating terminal' }),
    },
  },
}