enc: add file type definition

This commit is contained in:
pojok code 2025-07-02 21:27:12 +07:00
parent 2ab92b6e94
commit a4e2d9ec21
3 changed files with 5 additions and 1 deletions

View file

@ -176,6 +176,9 @@ local function show_keymaps_popup()
vim.api.nvim_buf_set_option(buf, "modifiable", false)
vim.api.nvim_buf_set_option(buf, "bufhidden", "wipe")
-- Set the buffer's filetype to 'keymaps_table'
vim.api.nvim_buf_set_option(buf, "filetype", "keymaps_table")
-- highlight section titles
for i, l in ipairs(hls) do
for _, v in ipairs(l) do

View file

@ -26,6 +26,7 @@ return {
"term",
"terminal",
"zsh",
"keymaps_table",
},
callback = function()
vim.b.miniindentscope_disable = true