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

Set ft=systemd for .service? #73

Open
abalmos opened this issue Feb 17, 2022 · 2 comments · May be fixed by #93
Open

Set ft=systemd for .service? #73

abalmos opened this issue Feb 17, 2022 · 2 comments · May be fixed by #93

Comments

@abalmos
Copy link
Contributor

abalmos commented Feb 17, 2022

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
Copy link

Iamafnan commented Mar 1, 2022

You can try this

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

@abalmos
Copy link
Contributor Author

abalmos commented Mar 1, 2022

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

Would the project like a PR for this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants