this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add toggle term (change vim shell from bash to fish)

+23 -3
+1 -1
init.lua
··· 12 12 require "user.nvim-tree" 13 13 require "user.bufferline" 14 14 require "user.lualine" 15 - 15 + require "plugins.toggleterm"
+13
lua/plugins/toggleterm.lua
··· 1 + local ok, toggleterm = pcall(require, "toggleterm") 2 + if not ok then return end 3 + 4 + toggleterm.setup { 5 + size = function(term) 6 + if term.direction == "horizontal" then 7 + return 15 8 + elseif term.direction == "vertical" then 9 + return vim.o.columns * 0.4 10 + end 11 + end, 12 + open_mapping = [[<c-t>]], 13 + }
+3 -2
lua/user/options.lua
··· 1 1 -- Change fish to bash 2 2 -- check this issue: https://github.com/kyazdani42/nvim-tree.lua/issues/549 3 - local fish = "fish" 3 + --[[ local fish = "fish" 4 4 if vim.o.shell:sub(- #fish) == fish then 5 5 vim.opt.shell = "/bin/bash" 6 - end 6 + end ]] 7 + -- commented to use toggleterm 7 8 8 9 local options = { 9 10 backup = false, -- creates a backup file
+6
lua/user/plugins.lua
··· 55 55 use "nvim-lualine/lualine.nvim" 56 56 use "feline-nvim/feline.nvim" -- More customizable statusline plugin 57 57 58 + -- Terminal 59 + use { 60 + "akinsho/toggleterm.nvim", 61 + tag = "v1.*", 62 + } 63 + 58 64 -- Colorschemes 59 65 use "folke/tokyonight.nvim" 60 66