filetype.nvim icon indicating copy to clipboard operation
filetype.nvim copied to clipboard

Set ft=systemd for `.service`?

Open abalmos opened this issue 3 years ago • 2 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.

abalmos avatar Feb 17 '22 20:02 abalmos

You can try this

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

Iamafnan avatar Mar 01 '22 10:03 Iamafnan

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

Would the project like a PR for this?

abalmos avatar Mar 01 '22 16:03 abalmos