Skip to content

Commit

Permalink
Add image viewer for neovim (image.nvim)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wrench56 committed Aug 14, 2023
1 parent b158e14 commit 5ab9485
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
16 changes: 16 additions & 0 deletions nvim/after/plugin/image.rc.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
local status, image = pcall(require, 'image')
if (not status) then return end

image.setup {
render = {
min_padding = 5,
show_label = true,
show_image_dimensions = true,
use_dither = false,
foreground_color = true,
background_color = true
},
events = {
update_on_nvim_resize = true,
}
}
7 changes: 7 additions & 0 deletions nvim/lua/plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,13 @@ require("lazy").setup({
{
'folke/trouble.nvim',
dependencies = { 'nvim-tree/nvim-web-devicons' }
},
{
'samodostal/image.nvim',
dependencies = {
'nvim-lua/plenary.nvim',
'm00qek/baleia.nvim'
}
}
},
{
Expand Down
4 changes: 4 additions & 0 deletions scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ mkdir -p ~/.local/share/fonts
mkdir -p ~/.cache/bash
# Make ~/.config
mkdir -p ~/.config
# Make ~/.secrets
mkdir -p ~/.secrets

##########################################
################## APPS ##################
Expand Down Expand Up @@ -120,6 +122,8 @@ sudo pacman -S --noconfirm xautolock
sudo pacman -S --noconfirm neovim
# Install lazygit
sudo pacman -S --noconfirm lazygit
# Install ascii-image-converter (for image.nvim)
sudo yay -S --noconfirm ascii-image-converter-git

# Download mc
sudo pacman -S --noconfirm mc
Expand Down

0 comments on commit 5ab9485

Please sign in to comment.