m4xshen / hardtime.nvim

Establish good command workflow and quit bad habit
MIT License
1.35k stars 27 forks source link

Provide lualine configuration example #67

Closed prescientmoon closed 8 months ago

prescientmoon commented 9 months ago

Hii!

The readme mentions using lualine to display the hint. Is there any example of how to do that?

Thanks in advance! ^-^

m4xshen commented 9 months ago

Just install lualine.nvim and set 'showmode' to false and then it should work.

-- example: using lazy.nvim
{
    "nvim-lualine/lualine.nvim",
    dependencies = { "nvim-tree/nvim-web-devicons" },
    opts = {},
    init = function()
       vim.opt.showmode = false
    end,
 }
prescientmoon commented 9 months ago

Thanks for the swift response!

What does showmode solve here? Judging by :h showmode this has no effect when cmdheight=0 (which is what I am using).

m4xshen commented 9 months ago

This method is for user using cmdheight=1. If you are using cmdheight=0 then you should use the third method:

  • Use nvim-notify to display hint messages on the right top corner instead of commandline.