feat(vim): add ftdetect for sapling commit files

They will now get the same filetype as the hgcommit. This is the
filetype they are based off.
This commit is contained in:
Ade Attwood 2024-05-19 19:42:42 +01:00
parent 6c7ea4aba6
commit 5d68da6e36
2 changed files with 2 additions and 1 deletions

View file

@ -16,7 +16,7 @@ if not configz.is_file(nvim_dir .. "/init.vim") then
end
-- Link all of the configs into the nvim config directory
local dirs_to_link = { "after", "ftplugin", "snippets", "plugin", "spell" }
local dirs_to_link = { "after", "ftdetect", "ftplugin", "snippets", "plugin", "spell" }
for _, dir in ipairs(dirs_to_link) do
local dir_to_link = nvim_dir .. "/" .. dir
if not configz.is_directory(dir_to_link) then

View file

@ -0,0 +1 @@
au BufNewFile,BufRead *.sl.txt set filetype=hgcommit