From cb61bab71096e3474772b5d5faed184a1582ee7a Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Tue, 13 Feb 2024 13:52:12 -0500 Subject: [PATCH] refactor: move `polish` to a separate file --- init.lua | 17 +---------------- lua/polish.lua | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 16 deletions(-) create mode 100644 lua/polish.lua diff --git a/init.lua b/init.lua index 7193536..05c0214 100644 --- a/init.lua +++ b/init.lua @@ -48,19 +48,4 @@ lazy.setup({ }, } --[[@as LazyConfig]]) --- This will run last in the setup process and is a good place to configure --- things like custom filetypes. This just pure lua so anything that doesn't --- fit in the normal config locations above can go here - --- Set up custom filetypes --- vim.filetype.add { --- extension = { --- foo = "fooscript", --- }, --- filename = { --- ["Foofile"] = "fooscript", --- }, --- pattern = { --- ["~/%.config/foo/.*"] = "fooscript", --- }, --- } +require "polish" diff --git a/lua/polish.lua b/lua/polish.lua new file mode 100644 index 0000000..fc01559 --- /dev/null +++ b/lua/polish.lua @@ -0,0 +1,18 @@ +if true then return end -- REMOVE THIS LINE TO ACTIVATE THIS FILE + +-- This will run last in the setup process and is a good place to configure +-- things like custom filetypes. This just pure lua so anything that doesn't +-- fit in the normal config locations above can go here + +-- Set up custom filetypes +vim.filetype.add { + extension = { + foo = "fooscript", + }, + filename = { + ["Foofile"] = "fooscript", + }, + pattern = { + ["~/%.config/foo/.*"] = "fooscript", + }, +}