modules: move tui, gui, cli to programs
This commit is contained in:
parent
febb421800
commit
47a79eea64
106 changed files with 3 additions and 47 deletions
18
modules/programs/editors/nvf/lua/ft.lua
Normal file
18
modules/programs/editors/nvf/lua/ft.lua
Normal file
|
@ -0,0 +1,18 @@
|
|||
-- luacheck: ignore
|
||||
vim.g.markdown_fenced_languages = { 'shell=bash' }
|
||||
|
||||
local file_syntax_map = {
|
||||
{ pattern = '*.rasi', syntax = 'scss' },
|
||||
{ pattern = 'flake.lock', syntax = 'json' },
|
||||
{ pattern = '*.ignore', syntax = 'gitignore' }, -- also ignore for fd/ripgrep
|
||||
{ pattern = '*.ojs', syntax = 'javascript' },
|
||||
{ pattern = '*.astro', syntax = 'astro' },
|
||||
{ pattern = '*.mdx', syntax = 'mdx' }
|
||||
}
|
||||
|
||||
for _, elem in ipairs(file_syntax_map) do
|
||||
vim.api.nvim_create_autocmd({ 'BufNewFile', 'BufRead' }, {
|
||||
pattern = elem.pattern,
|
||||
command = 'set syntax=' .. elem.syntax,
|
||||
})
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue