nathom / filetype.nvim

A faster version of filetype.vim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Set ft=systemd for `.service`?

abalmos opened this issue · comments

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.

You can try this

require("filetype").setup({
	overrides = {
		complex = {
			[".service"] = "systemd",
		},
	},
})

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

Would the project like a PR for this?