Isrothy / neominimap.nvim

Yet another minimap plugin for Neovim
MIT License
154 stars 3 forks source link

fix: make eob character unseen in neominimap #118

Closed delphinus closed 3 weeks ago

delphinus commented 3 weeks ago

This fix makes redundant eob characters (default: ~) unseen.

before after
スクリーンショット 2024-08-19 午後4 44 55 スクリーンショット 2024-08-19 午後4 45 03
example config ```lua local lazypath = vim.fn.stdpath "data" .. "/lazy/lazy.nvim" if not (vim.uv or vim.loop).fs_stat(lazypath) then vim.fn.system { "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", -- latest stable release lazypath, } end vim.opt.rtp:prepend(lazypath) require("lazy").setup { { "nvim-treesitter/nvim-treesitter", build = ":TSInstall lua" }, { "Isrothy/neominimap.nvim", dev = true, init = function() vim.opt.wrap = false -- Recommended vim.opt.sidescrolloff = 36 -- It"s recommended to set a large value vim.g.neominimap = { auto_enable = true, git = { enabled = false }, } vim.api.nvim_set_hl(0, "EndOfBuffer", { fg = "NvimLightRed" }) end, }, } ```