···11+local ok, toggleterm = pcall(require, "toggleterm")
22+if not ok then return end
33+44+toggleterm.setup {
55+ size = function(term)
66+ if term.direction == "horizontal" then
77+ return 15
88+ elseif term.direction == "vertical" then
99+ return vim.o.columns * 0.4
1010+ end
1111+ end,
1212+ open_mapping = [[<c-t>]],
1313+}
+3-2
lua/user/options.lua
···11-- Change fish to bash
22-- check this issue: https://github.com/kyazdani42/nvim-tree.lua/issues/549
33-local fish = "fish"
33+--[[ local fish = "fish"
44if vim.o.shell:sub(- #fish) == fish then
55 vim.opt.shell = "/bin/bash"
66-end
66+end ]]
77+-- commented to use toggleterm
7889local options = {
910 backup = false, -- creates a backup file
+6
lua/user/plugins.lua
···5555 use "nvim-lualine/lualine.nvim"
5656 use "feline-nvim/feline.nvim" -- More customizable statusline plugin
57575858+ -- Terminal
5959+ use {
6060+ "akinsho/toggleterm.nvim",
6161+ tag = "v1.*",
6262+ }
6363+5864 -- Colorschemes
5965 use "folke/tokyonight.nvim"
6066