Isrothy / neominimap.nvim

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

fix: do not show eol characters #107

Closed delphinus closed 3 weeks ago

delphinus commented 3 weeks ago

It shows 'listchars' characters in neominimap when you set list in init.lua. This fixes it.

スクリーンショット 2024-08-17 午前10 38 22

Example config below:

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 = ":TSInstallSync lua" },
  {
    "Isrothy/neominimap.nvim",
    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.opt.list = true
      vim.opt.listchars = { eol = "⏎", extends = "‥", }
      vim.api.nvim_set_hl(0, "NonText", { fg = "NvimLightRed" })
    end,
  },
}
Isrothy commented 3 weeks ago

Thanks for the PR. Please also update the default winopt in README.md to make them consistent. I'm going to merge after that.

delphinus commented 3 weeks ago

@Isrothy OK, I added.