nathom / filetype.nvim

A faster version of filetype.vim
560 stars 35 forks source link

Set ft=systemd for `.service`? #73

Open abalmos opened 2 years ago

abalmos commented 2 years ago

Would it be acceptable to set the filetype as systemd for .service extensions?

I often work on service files not in the /etc/systemd or the related folders when working on Ansible and Butane projects.

Iamafnan commented 2 years ago

You can try this

require("filetype").setup({
    overrides = {
        complex = {
            [".service"] = "systemd",
        },
    },
})
abalmos commented 2 years ago

@Iamafnan Thanks, that gets my editor working as expected.

Would the project like a PR for this?