mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
breaking: Remove setup script and use chezmoi
This commit is contained in:
parent
02bbb24cac
commit
0051a163c3
190 changed files with 118 additions and 3456 deletions
26
dot_config/nvim/lua/plugins/mod/toggleterm.lua
Normal file
26
dot_config/nvim/lua/plugins/mod/toggleterm.lua
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
local function get_highlight()
|
||||
if vim.g.colors_name == "catppuccin" then
|
||||
-- NOTE: This won't work since no integration is available
|
||||
return require("catppuccin.groups.integrations.bufferline").get()
|
||||
-- return require("rose-pine.plugins.toggleterm")
|
||||
elseif vim.g.colors_name == "rose-pine" then
|
||||
return require("rose-pine.plugins.toggleterm")
|
||||
end
|
||||
end
|
||||
|
||||
return {
|
||||
"akinsho/toggleterm.nvim",
|
||||
keys = {
|
||||
{ "<leader>!", "<cmd>ToggleTerm direction=float<CR>", desc = "Toggle Terminal" },
|
||||
{ "<leader>tf", "<cmd>ToggleTerm direction=float<CR>", desc = "Toggle Terminal" },
|
||||
{ "<leader>tt", "<cmd>ToggleTerm<CR>", desc = "Spawn a float terminal" },
|
||||
},
|
||||
event = "ColorScheme",
|
||||
opts = {
|
||||
highlights = get_highlight(),
|
||||
},
|
||||
cmd = {
|
||||
"ToggleTerm",
|
||||
"LazyGit",
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue