aboutsummaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2022-09-10 23:55:22 +0800
committerjdhao <jdhao@hotmail.com>2022-09-10 23:55:22 +0800
commitaaeb6a813a9044892e5bb76ba4a3a61db08eae4d (patch)
tree6a1dc5a4f79f08678bdb8903a7920e8545718fa7 /init.lua
parent9ba728e201657892681cafc2c6fe8ad997873b49 (diff)
format with stylua
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua16
1 files changed, 8 insertions, 8 deletions
diff --git a/init.lua b/init.lua
index de5909b..658d3ce 100644
--- a/init.lua
+++ b/init.lua
@@ -9,7 +9,7 @@
-- Blog: https://jdhao.github.io/
local api = vim.api
-local utils = require "utils"
+local utils = require("utils")
-- check if we have the latest stable version of nvim
local expected_ver = "0.7.2"
@@ -22,17 +22,17 @@ if nvim_ver ~= expected_ver then
end
local core_conf_files = {
- "globals.vim", -- some global settings
- "options.vim", -- setting options in nvim
- "autocommands.vim", -- various autocommands
- "mappings.lua", -- all the user-defined mappings
- "plugins.vim", -- all the plugins installed and their configurations
- "colorschemes.lua", -- colorscheme settings
+ "globals.vim", -- some global settings
+ "options.vim", -- setting options in nvim
+ "autocommands.vim", -- various autocommands
+ "mappings.lua", -- all the user-defined mappings
+ "plugins.vim", -- all the plugins installed and their configurations
+ "colorschemes.lua", -- colorscheme settings
}
-- source all the core config files
for _, name in ipairs(core_conf_files) do
- local path = string.format("%s/core/%s", vim.fn.stdpath('config'), name)
+ local path = string.format("%s/core/%s", vim.fn.stdpath("config"), name)
local source_cmd = "source " .. path
vim.cmd(source_cmd)
end