diff --git a/init.lua b/init.lua index 160d9400..a1fcde24 100644 --- a/init.lua +++ b/init.lua @@ -203,7 +203,7 @@ require('lazy').setup({ -- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going. -- -- For additional information see: https://github.com/folke/lazy.nvim#-structuring-your-plugins - -- { import = 'custom.plugins' }, + { import = 'custom.plugins' }, }, {}) -- [[ Setting options ]] @@ -517,4 +517,27 @@ cmp.setup { } -- The line beneath this is called `modeline`. See `:help modeline` --- vim: ts=2 sts=2 sw=2 et +-- vim: ts=2 sts=2 sw=2 etc + +require("toggleterm").setup{ + -- size can be a number or function which is passed the current terminal + size = 20, + open_mapping = [[]], + hide_numbers = true, -- hide the number column in toggleterm buffers + persist_mode = true, -- if set to true (default) the previous terminal mode will be remembered + direction = 'float', + auto_scroll = true, -- automatically scroll to the bottom on terminal output + float_opts = { + -- The border key is *almost* the same as 'nvim_open_win' + -- see :h nvim_open_win for details on borders however + -- the 'curved' border is a custom border type + -- not natively supported but implemented in this plugin. + border = 'curved', + }, + winbar = { + enabled = false, + name_formatter = function(term) -- term: Terminal + return term.name + end + }, +} diff --git a/lua/custom/plugins/toggleterm.lua b/lua/custom/plugins/toggleterm.lua new file mode 100644 index 00000000..802cfb6a --- /dev/null +++ b/lua/custom/plugins/toggleterm.lua @@ -0,0 +1,3 @@ +return { + {'akinsho/toggleterm.nvim', version = "*", config = true} +}