Dockerfile.vim
Dockerfile.vim copied to clipboard
Use ft=dockerfile? (lowercase)
Vim itself uses filetype=dockerfile
, whereas Dockerfile
is used here.
Is there a specific reason for this? I think it should/could use the default filetype here also.
(Via https://github.com/neomake/neomake/issues/2498)
Hm, I believe there's no particular reason for than except the historical one.
The reason for change that to the original vim behavior is that other plugins, which working on this filetype doesn't work without additional fixes in the vimrc. Original behavior: au BufNewFile,BufRead Containerfile,Dockerfile,*.Dockerfile setf dockerfile Current example for that is 'ycm-core/lsp-examples' which uses the original behavior.
Best regards
Only as an FYI, not knowing the best way to proceed, however, the filetype Dockerfile
prevented the docker tree-sitter to work as expected. It threw a "symbol not recognized error". Here is the link to that issue. Manually overriding the autocmd
in this plugin to rename the filetype to dockerfile
fixed the issue. Perhaps some of the features in the plugin are inherently incompatible with tree-sitter?