Skip to content

Commit

Permalink
viewing image in ascii art
Browse files Browse the repository at this point in the history
  • Loading branch information
leslie255 committed Aug 17, 2022
1 parent f753512 commit b8a7502
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
7 changes: 6 additions & 1 deletion lua/core/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ vim.g.loaded_tutor_mode_plugin = 1
vim.g.loaded_remote_plugins = 1
require("core.theme")

require('image').setup {
min_padding = 5,
show_label = true,
render_using_dither = true,
}

-- Load plugin configs
-- plugins without extra configs are configured directly here
require("impatient")
Expand All @@ -52,4 +58,3 @@ require("configs.git").config()
require("configs.bufferline").config()
require("configs.grammar").config()
require("configs.terminal").config()

3 changes: 3 additions & 0 deletions lua/core/plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,7 @@ return require('packer').startup(function()
-- english grammar check
use 'rhysd/vim-grammarous'

-- ascii image
use 'samodostal/image.nvim'

end)
3 changes: 2 additions & 1 deletion lua/core/theme.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@
vim.g.edge_style = 'aura' -- neon, aura
vim.g.edge_better_performance = 1
vim.cmd("colorscheme edge")
vim.cmd("set background=light")

-- github
-- vim.cmd("colorscheme github_dark")

vim.cmd("set background=light")

0 comments on commit b8a7502

Please sign in to comment.