From 6f9c089268997786d79d13778031ace4f183ec25 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Fri, 7 Oct 2022 14:02:04 -0500 Subject: [PATCH] feat(nvim): add custom filetype for dockerfiles --- .../primary/config/lua/core/filetypes.lua | 11 +++++++++++ .../primary/config/lua/core/init.lua | 13 +++++++------ 2 files changed, 18 insertions(+), 6 deletions(-) create mode 100644 dots/.nvim-environments/primary/config/lua/core/filetypes.lua diff --git a/dots/.nvim-environments/primary/config/lua/core/filetypes.lua b/dots/.nvim-environments/primary/config/lua/core/filetypes.lua new file mode 100644 index 00000000..cd62242f --- /dev/null +++ b/dots/.nvim-environments/primary/config/lua/core/filetypes.lua @@ -0,0 +1,11 @@ +local M = {} + +M.setup = function() + vim.filetype.add({ + pattern = { + [".*%.dockerfile"] = "dockerfile", + }, + }) +end + +return M diff --git a/dots/.nvim-environments/primary/config/lua/core/init.lua b/dots/.nvim-environments/primary/config/lua/core/init.lua index c101a615..30567709 100755 --- a/dots/.nvim-environments/primary/config/lua/core/init.lua +++ b/dots/.nvim-environments/primary/config/lua/core/init.lua @@ -1,7 +1,8 @@ -require('core.disabled').setup() -require('core.options').setup() -require('core.mappings').setup() -require('core.globals').setup() -require('core.autocmds').setup() -require('core.lsp').setup() +require("core.disabled").setup() +require("core.options").setup() +require("core.mappings").setup() +require("core.globals").setup() +require("core.autocmds").setup() +require("core.filetypes").setup() +require("core.lsp").setup() -- require('core.winbar').setup()