Open Owen000 opened 4 days ago
Describe the bug I am still experiencing the issue that was solved here: https://github.com/nvimdev/dashboard-nvim/issues/422 multibyte chars move my cursor to the improper positioning.
To Reproduce Steps to reproduce the behavior:
touch repro.lua
local root = vim.fn.fnamemodify("./repro", ":p") for _, name in ipairs({ "config", "data", "state", "cache" }) do vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name end local lazypath = root .. "/plugins/lazy.nvim" if not vim.loop.fs_stat(lazypath) then vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath, }) end vim.opt.runtimepath:prepend(lazypath) local plugins = { { "nvimdev/dashboard-nvim", event = "VimEnter", opts = function() local opts = { theme = "doom", config = { header = { " ", " ", " ", " ███╗ ██╗ ███████╗ ██████╗ ██╗ ██╗ ██╗ ███╗ ███╗", " ████╗ ██║ ██╔════╝██╔═══██╗ ██║ ██║ ██║ ████╗ ████║", " ██╔██╗ ██║ █████╗ ██║ ██║ ██║ ██║ ██║ ██╔████╔██║", " ██║╚██╗██║ ██╔══╝ ██║ ██║ ╚██╗ ██╔╝ ██║ ██║╚██╔╝██║", " ██║ ╚████║ ███████╗╚██████╔╝ ╚████╔╝ ██║ ██║ ╚═╝ ██║", " ╚═╝ ╚═══╝ ╚══════╝ ╚═════╝ ╚═══╝ ╚═╝ ╚═╝ ╚═╝", " ", " ", " ", " ", }, center = { { icon = " ", desc = "Find File ", action = function() require("telescope.builtin").find_files() end, key = "<Leader> p f", }, { icon = " ", desc = "Recently opened files ", action = function() require("telescope.builtin").oldfiles() end, key = "<Leader> p o", }, { icon = " ", desc = "Open Nvim config ", action = function() require("telescope.builtin").find_files({ cwd = vim.fn.expand("~/.config/nvim") }) end, key = "<Leader> e c", }, { icon = " ", desc = "New file ", action = "enew", key = "e", }, { icon = " ", desc = "Quit Nvim ", action = "qa", key = "q", }, }, }, } return opts end, }, } require("lazy").setup(plugins, { root = root .. "/plugins", })
Expected behavior Not moving my cursor further
Screenshots Undesired behavior:
Desired behavior (being on the first letter)
Interesting note, I found that if I set the very topmost icon (Find File) to (the gear icon that had the issue) it doesn't break.
Describe the bug I am still experiencing the issue that was solved here: https://github.com/nvimdev/dashboard-nvim/issues/422 multibyte chars move my cursor to the improper positioning.
To Reproduce Steps to reproduce the behavior:
touch repro.lua
Expected behavior Not moving my cursor further
Screenshots Undesired behavior:![image](https://github.com/nvimdev/dashboard-nvim/assets/67721175/0efe0e4a-6bb1-4792-8786-fb2c8cf11d56)
Desired behavior
(being on the first letter)