refactor: move filetype customization from polish.lua to astrocore.lua (#31)

Co-authored-by: Mark Weng <mweng@nvidia.com>
This commit is contained in:
Mark WENG
2025-03-29 20:24:27 +08:00
committed by GitHub
parent 7da353c26f
commit 870c63b394
2 changed files with 15 additions and 15 deletions

View File

@ -24,6 +24,19 @@ return {
virtual_text = true,
underline = true,
},
-- passed to `vim.filetype.add`
filetypes = {
-- see `:h vim.filetype.add` for usage
extension = {
foo = "fooscript",
},
filename = {
[".foorc"] = "fooscript",
},
pattern = {
[".*/etc/foo/.*"] = "fooscript",
},
},
-- vim options can be configured here
options = {
opt = { -- vim.opt.<key>