Compare commits

...

2 Commits

Author SHA1 Message Date
16a3a662a0 [Actions] Add github actions language server 2026-02-09 11:12:43 +01:00
9c2b3a8dee [Docker] Fix filetypes 2026-02-09 11:12:35 +01:00
5 changed files with 79 additions and 48 deletions

View File

@@ -1,3 +1,4 @@
require("options")
require("keybinds")
require("lazy-conf")
require("filetypes")

8
nvim/lua/filetypes.lua Normal file
View File

@@ -0,0 +1,8 @@
vim.filetype.add({
pattern = {
["compose.*%.ya?ml"] = "yaml.docker-compose",
["docker%-compose.*%.ya?ml"] = "yaml.docker-compose",
[".*/.gitea/workflows/.*%.ya?ml"] = "yaml.actions",
[".*/.github/workflows/.*%.ya?ml"] = "yaml.actions",
},
})

View File

@@ -0,0 +1,20 @@
-- ┌ ┐
-- │ GitHub Actions │
-- └ ┘
local lsp = vim.lsp
local capabilities = require("lsp-options").capabilities
local on_attach = require("lsp-options").on_attach
lsp.config("gh_actions_ls", {
capabilities = capabilities,
on_attach = on_attach,
filetypes = {
"yaml.actions",
},
})
-- ── Enable configs ───────────────────────────────────────────────
local enable = vim.lsp.enable
enable("gh_actions_ls")

View File

@@ -26,6 +26,7 @@ return {
require("plugins.lsp.ls.c")
require("plugins.lsp.ls.dart")
require("plugins.lsp.ls.docker")
require("plugins.lsp.ls.gh-actions")
require("plugins.lsp.ls.go")
require("plugins.lsp.ls.hypr")
require("plugins.lsp.ls.low-level")

View File

@@ -1,53 +1,54 @@
return {
-- lsp package manager
"mason-org/mason.nvim",
dependencies = {
"mason-org/mason-lspconfig.nvim",
},
config = function()
-- import mason
local mason = require("mason")
-- lsp package manager
"mason-org/mason.nvim",
dependencies = {
"mason-org/mason-lspconfig.nvim",
},
config = function()
-- import mason
local mason = require("mason")
-- import mason-lspconfig
local mason_lspconfig = require("mason-lspconfig")
-- import mason-lspconfig
local mason_lspconfig = require("mason-lspconfig")
-- enable mason and configure icons
mason.setup({
ui = {
icons = {
package_installed = "",
package_pending = "",
package_uninstalled = "",
},
},
})
-- enable mason and configure icons
mason.setup({
ui = {
icons = {
package_installed = "",
package_pending = "",
package_uninstalled = "",
},
},
})
-- list of servers for mason to install
mason_lspconfig.setup({
ensure_installed = {
"asm_lsp",
"bashls",
"clangd",
"cmake",
"cssls",
"docker_language_server",
"gopls",
"html",
"hyprls",
"jdtls",
"jsonls",
"marksman",
"lua_ls",
"phpactor",
"pyright",
"rust_analyzer",
"ruby_lsp",
"verible",
"vtsls",
"vue_ls",
},
-- auto-install configured servers (with lspconfig)
automatic_enable = false
})
end,
-- list of servers for mason to install
mason_lspconfig.setup({
ensure_installed = {
"asm_lsp",
"bashls",
"clangd",
"cmake",
"cssls",
"docker_language_server",
"gh_actions_ls",
"gopls",
"html",
"hyprls",
"jdtls",
"jsonls",
"marksman",
"lua_ls",
"phpactor",
"pyright",
"rust_analyzer",
"ruby_lsp",
"verible",
"vtsls",
"vue_ls",
},
-- auto-install configured servers (with lspconfig)
automatic_enable = false,
})
end,
}