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:
parent
6c7ea4aba6
commit
5d68da6e36
2 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
1
site-modules/core/files/vim/ftdetect/sapling.vim
Normal file
1
site-modules/core/files/vim/ftdetect/sapling.vim
Normal file
|
|
@ -0,0 +1 @@
|
|||
au BufNewFile,BufRead *.sl.txt set filetype=hgcommit
|
||||
Loading…
Reference in a new issue