[Docker] Fix filetypes
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
require("options")
|
require("options")
|
||||||
require("keybinds")
|
require("keybinds")
|
||||||
require("lazy-conf")
|
require("lazy-conf")
|
||||||
|
require("filetypes")
|
||||||
|
|||||||
8
nvim/lua/filetypes.lua
Normal file
8
nvim/lua/filetypes.lua
Normal 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",
|
||||||
|
},
|
||||||
|
})
|
||||||
@@ -26,6 +26,7 @@ return {
|
|||||||
require("plugins.lsp.ls.c")
|
require("plugins.lsp.ls.c")
|
||||||
require("plugins.lsp.ls.dart")
|
require("plugins.lsp.ls.dart")
|
||||||
require("plugins.lsp.ls.docker")
|
require("plugins.lsp.ls.docker")
|
||||||
|
require("plugins.lsp.ls.gh-actions")
|
||||||
require("plugins.lsp.ls.go")
|
require("plugins.lsp.ls.go")
|
||||||
require("plugins.lsp.ls.hypr")
|
require("plugins.lsp.ls.hypr")
|
||||||
require("plugins.lsp.ls.low-level")
|
require("plugins.lsp.ls.low-level")
|
||||||
|
|||||||
@@ -1,53 +1,54 @@
|
|||||||
return {
|
return {
|
||||||
-- lsp package manager
|
-- lsp package manager
|
||||||
"mason-org/mason.nvim",
|
"mason-org/mason.nvim",
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"mason-org/mason-lspconfig.nvim",
|
"mason-org/mason-lspconfig.nvim",
|
||||||
},
|
},
|
||||||
config = function()
|
config = function()
|
||||||
-- import mason
|
-- import mason
|
||||||
local mason = require("mason")
|
local mason = require("mason")
|
||||||
|
|
||||||
-- import mason-lspconfig
|
-- import mason-lspconfig
|
||||||
local mason_lspconfig = require("mason-lspconfig")
|
local mason_lspconfig = require("mason-lspconfig")
|
||||||
|
|
||||||
-- enable mason and configure icons
|
-- enable mason and configure icons
|
||||||
mason.setup({
|
mason.setup({
|
||||||
ui = {
|
ui = {
|
||||||
icons = {
|
icons = {
|
||||||
package_installed = "✔",
|
package_installed = "✔",
|
||||||
package_pending = "➜",
|
package_pending = "➜",
|
||||||
package_uninstalled = "✗",
|
package_uninstalled = "✗",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
-- list of servers for mason to install
|
-- list of servers for mason to install
|
||||||
mason_lspconfig.setup({
|
mason_lspconfig.setup({
|
||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
"asm_lsp",
|
"asm_lsp",
|
||||||
"bashls",
|
"bashls",
|
||||||
"clangd",
|
"clangd",
|
||||||
"cmake",
|
"cmake",
|
||||||
"cssls",
|
"cssls",
|
||||||
"docker_language_server",
|
"docker_language_server",
|
||||||
"gopls",
|
"gh_actions_ls",
|
||||||
"html",
|
"gopls",
|
||||||
"hyprls",
|
"html",
|
||||||
"jdtls",
|
"hyprls",
|
||||||
"jsonls",
|
"jdtls",
|
||||||
"marksman",
|
"jsonls",
|
||||||
"lua_ls",
|
"marksman",
|
||||||
"phpactor",
|
"lua_ls",
|
||||||
"pyright",
|
"phpactor",
|
||||||
"rust_analyzer",
|
"pyright",
|
||||||
"ruby_lsp",
|
"rust_analyzer",
|
||||||
"verible",
|
"ruby_lsp",
|
||||||
"vtsls",
|
"verible",
|
||||||
"vue_ls",
|
"vtsls",
|
||||||
},
|
"vue_ls",
|
||||||
-- auto-install configured servers (with lspconfig)
|
},
|
||||||
automatic_enable = false
|
-- auto-install configured servers (with lspconfig)
|
||||||
})
|
automatic_enable = false,
|
||||||
end,
|
})
|
||||||
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user