m4xshen / hardtime.nvim

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

Add Fugit2 to disabled_filetypes #100

Closed Fausto-Korpsvart closed 1 month ago

Fausto-Korpsvart commented 2 months ago

I recently found Fugit2 and have been testing it, but having Hardtime enabled makes it difficult to move between its interface, it would be great if you could add disabled_filetypes to it.

And thanks for the plugin, it's great.

supportcdl commented 1 month ago

Hi, not tried this but I would assume that this could be added as part of custom disabled_filetype in opts??? E.g.

    opts = {
      disabled_filetypes = {
        "customfiletype",
      },
    },

https://github.com/m4xshen/hardtime.nvim/blob/main/lua/hardtime/config.lua#L67C1-L96C6

Fausto-Korpsvart commented 1 month ago

Hi, actually I already read the documentation when installing the plugin and that's exactly what I did, but it didn't work, that's why I was asking, I'll find the solution, but thanks.

m4xshen commented 1 month ago

HI, @Fausto-Korpsvart

You can run :lua print(vim.bo.ft) to get the filetype of current buffer. You can try this on Fugit2.

Fausto-Korpsvart commented 1 month ago

HI, @Fausto-Korpsvart

You can run :lua print(vim.bo.ft) to get the filetype of current buffer. You can try this on Fugit2.

That worked, thank you very much, @m4xshen, it's a great plugin };-]