Dockerfile.vim icon indicating copy to clipboard operation
Dockerfile.vim copied to clipboard

Use ft=dockerfile? (lowercase)

Open blueyed opened this issue 4 years ago • 4 comments

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)

blueyed avatar Jul 17 '20 13:07 blueyed

Hm, I believe there's no particular reason for than except the historical one.

ekalinin avatar Jul 17 '20 18:07 ekalinin

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

carand avatar Apr 04 '21 20:04 carand

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?

EdmundsEcho avatar Jul 11 '23 17:07 EdmundsEcho