-
Notifications
You must be signed in to change notification settings - Fork 2.4k
feat(systemd_lsp): Update functionality and add extra documentation.
#4252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
root_markers does not (yet) support wildcards/glob. |
|
let me correct that |
I know how shameful this is.
I know how shameful this is.
…uration I know how shameful this is.
I know how shameful this is.
Updated documentation, added a few type annotations, and more!
|
@justinmk, All issues have been solved. You can merge this PR without any more trouble. |
systemd_lsp): Add important root markerssystemd_lsp): Use root_dir instead of root_markers.
systemd_lsp): Use root_dir instead of root_markers. systemd_lsp): Update functionality.
systemd_lsp): Update functionality.systemd_lsp): Update functionality and add extra documentation.
|
Hey @justinmk, why is this PR not being merged? |
|
Hi @kris3713 - systemd-lsp just had a new release, with support for a bunch of podman/quadlet files. The autocmd note could be updated as so: vim.api.nvim_create_autocmd({ "BufReadPost", "BufNewFile" }, {
desc = "Set filetype to systemd for systemd unit files",
group = vim.api.nvim_create_augroup("systemd-filetypes", { clear = true }),
pattern = {
-- systemd unit files
"*.service",
"*.socket",
"*.timer",
"*.mount",
"*.automount",
"*.swap",
"*.target",
"*.path",
"*.slice",
"*.scope",
"*.device",
-- Podman Quadlet files
"*.container",
"*.volume",
"*.network",
"*.kube",
"*.pod",
"*.build",
"*.image",
},
callback = function()
local bufnr = vim.api.nvim_get_current_buf()
vim.bo[bufnr].filetype = "systemd"
end,
})ref: JFryy/systemd-lsp#22 |
…ttern from lspconfig.utils This is a correction of the previous commit
…emd unit extensions Thanks for the tip @justinmk
|
@justinmk, I managed to add your suggestions. Sorry for the delay. |



Add's important root markers for this LSP config.Changes how the LSP config recognizes Systemd unit files, and added important documentation regarding autocmds.