mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
minor fix
This commit is contained in:
parent
0af876301c
commit
baa6b368c3
6 changed files with 41 additions and 16 deletions
|
|
@ -1,11 +1,11 @@
|
|||
return {
|
||||
{ "wakatime/vim-wakatime", lazy = false },
|
||||
{ "wakatime/vim-wakatime", lazy = false },
|
||||
{
|
||||
"voldikss/vim-floaterm",
|
||||
keys = {
|
||||
{ "!", ":FloatermToggle<CR>", desc = "Toggle Terminal" },
|
||||
{ "<leader>!", ":FloatermToggle<CR>", desc = "Toggle Terminal" },
|
||||
{ "<leader>tt", ":FloatermToggle<CR>", desc = "Toggle Terminal" },
|
||||
{ "<leader>fT", ":FloatermNew<CR>", desc = "Spawn a float terminal" },
|
||||
{ "<leader>fT", ":FloatermNew<CR>", desc = "Spawn a float terminal" },
|
||||
},
|
||||
cmd = {
|
||||
"FloatermToggle",
|
||||
|
|
@ -46,8 +46,8 @@ return {
|
|||
-- configuration goes here
|
||||
},
|
||||
},
|
||||
{
|
||||
"3rd/image.nvim",
|
||||
opts = {},
|
||||
},
|
||||
{ import = "plugins.mod.image-nvim" },
|
||||
-- "3rd/image.nvim",
|
||||
-- opts = {},
|
||||
-- },
|
||||
}
|
||||
|
|
|
|||
14
tools/nvim/lua/plugins/mod/image-nvim.lua
Normal file
14
tools/nvim/lua/plugins/mod/image-nvim.lua
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
-- 2025-03-03
|
||||
-- If current session is not spawn by neovide, do not load image.nvim
|
||||
-- neovide did not support image viewer yet
|
||||
-- https://github.com/neovide/neovide/issues/2088
|
||||
if vim.g.neovide then
|
||||
return {}
|
||||
elseif vim.env.TERM_PROGRAM == "alacritty" then
|
||||
return {}
|
||||
else
|
||||
return {
|
||||
"3rd/image.nvim",
|
||||
opts = {}
|
||||
}
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue