Skip to content
This repository was archived by the owner on May 6, 2024. It is now read-only.
This repository was archived by the owner on May 6, 2024. It is now read-only.

Breaks autocmd that applies default filetype #43

@roginfarrer

Description

@roginfarrer

If have this autocmd in my config that sets a default filetype for a buffer if none is set:

autocmd BufNewFile,BufReadPost * if &ft == '' | set ft=markdown | endif

This autocmd paired with filetype.nvim breaks the set of the filetype when the buffer is first read. : e<cr> fixes it.

Not sure if this can be addressed or if there's a better way for me to set a default filetype, but I thought I'd bring it up!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions