split config
This commit is contained in:
28
polish.lua
Normal file
28
polish.lua
Normal file
@@ -0,0 +1,28 @@
|
||||
return function()
|
||||
vim.filetype.add {
|
||||
extension = {
|
||||
avsc = "json",
|
||||
},
|
||||
}
|
||||
vim.filetype.add {
|
||||
extension = {
|
||||
dataviewjs = "javascript",
|
||||
},
|
||||
}
|
||||
|
||||
local ft_to_parser = require("nvim-treesitter.parsers").filetype_to_parsername
|
||||
ft_to_parser.dataviewjs = "javascript"
|
||||
|
||||
-- Set up custom filetypes
|
||||
-- vim.filetype.add {
|
||||
-- extension = {
|
||||
-- foo = "fooscript",
|
||||
-- },
|
||||
-- filename = {
|
||||
-- ["Foofile"] = "fooscript",
|
||||
-- },
|
||||
-- pattern = {
|
||||
-- ["~/%.config/foo/.*"] = "fooscript",
|
||||
-- },
|
||||
-- }
|
||||
end
|
Reference in New Issue
Block a user