NStefan002 / screenkey.nvim

Screencast your keys in Neovim
MIT License
291 stars 5 forks source link

Change default options #31

Closed nhattruongNeoVim closed 2 months ago

nhattruongNeoVim commented 2 months ago

Problem

I found this part in your source code lua/screenkey/init.lua:

vim.tbl_deep_extend("keep", {
    title = "Screenkey",
    title_pos = "center",
    style = "minimal",
    focusable = false,
    noautocmd = true,
}, Config.options.win_opts)

Expected behavior

Can you set it to force? i want to change title, pls

vim.tbl_deep_extend("force", {
    title = "Screenkey",
    title_pos = "center",
    style = "minimal",
    focusable = false,
    noautocmd = true,
}, Config.options.win_opts)
require("screenkey").setup({
    win_opts = {
        row = vim.o.lines - vim.o.cmdheight - 1,
        col = vim.o.columns - 1,
        relative = "editor",
        anchor = "SE",
        width = 40,
        height = 3,
        border = "rounded",
        title = " MYnvim ",
        title_pos = "center",
    },
})
NStefan002 commented 2 months ago

Sure