[Docker] Fix filetypes
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
require("options")
|
||||
require("keybinds")
|
||||
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.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")
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user