Code Monkey home page Code Monkey logo

Comments (4)

jakewvincent avatar jakewvincent commented on May 23, 2024

Hi @marcusatiliusregulus, thanks for the issue. I noticed this a while ago as well and am a bit puzzled by the problem. I can't work out if it's a problem with the plugin or with Neovim. As far as I can tell, there's nothing in the plugin that would cause this--there is certainly no leading whitespace in the strings passed to nvim_echo. I've gotten the problem to temporarily go away if I run :PackerCompile (which makes no sense to me). I'll try to look into this more soon but will keep this open to track it.

from mkdnflow.nvim.

herrvonvoid avatar herrvonvoid commented on May 23, 2024

ok, i investigated a bit more and it seems to be a problem with a plugin i installed. i put vim.api.nvim_echo({{'hello world', 'WarningMsg'}}, true, {}) in my vimrc and the output is indented if i put it after loading my plugins and not if i put it before them. if i uninstall lualine the problem goes away. do you have lualine installed, too?

from mkdnflow.nvim.

jakewvincent avatar jakewvincent commented on May 23, 2024

Oh, interesting! Yes, I also use Lualine.

from mkdnflow.nvim.

jakewvincent avatar jakewvincent commented on May 23, 2024

Well, I just tried removing Lualine and I'm still getting the indented messages, so I guess that's not it. The odd thing about this is how inconsistent it is--you removed Lualine and it stopped for you but not for me. I sometimes got it to go away by running PackerCompile.

I realized that this stopped happening for me when I started using the new global statusline, but I see that it's coming back when I disable that. So until I can figure out where this is coming from, enabling the global statusline might be an acceptable workaround.

-- Tell nvim to use global statusline
vim.opt.laststatus = 3
-- Tell Lualine we're using global statusline
lualine.setup({
    options = {
        globalstatus = true
    }
})

from mkdnflow.nvim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.