aboutsummaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorMichal Hanus <hanus.michal@divelit.cz>2024-03-02 18:49:55 +0100
committerMichal Hanus <hanus.michal@divelit.cz>2024-03-02 18:49:55 +0100
commitaab38f32e0a02e43565a554d0a76ff65636499b8 (patch)
treef3f00df05c63228c69a338e80fd0e7d02986e8cf /init.lua
parent99353a355321d68ef4fb3c26291084b23e8f4978 (diff)
crazyshitHEADmaster
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua48
1 files changed, 0 insertions, 48 deletions
diff --git a/init.lua b/init.lua
deleted file mode 100644
index 633f887..0000000
--- a/init.lua
+++ /dev/null
@@ -1,48 +0,0 @@
--- This is my personal Nvim configuration supporting Mac, Linux and Windows, with various plugins configured.
--- This configuration evolves as I learn more about Nvim and become more proficient in using Nvim.
--- Since it is very long (more than 1000 lines!), you should read it carefully and take only the settings that suit you.
--- I would not recommend cloning this repo and replace your own config. Good configurations are personal,
--- built over time with a lot of polish.
---
--- Author: Jiedong Hao
--- Email: jdhao@hotmail.com
--- Blog: https://jdhao.github.io/
--- GitHub: https://github.com/jdhao
--- StackOverflow: https://stackoverflow.com/users/6064933/jdhao
-vim.loader.enable()
-
-local version = vim.version
-
--- check if we have the latest stable version of nvim
-local expected_ver = "0.9.5"
-local ev = version.parse(expected_ver)
-local actual_ver = version()
-
-if version.cmp(ev, actual_ver) ~= 0 then
- local _ver = string.format("%s.%s.%s", actual_ver.major, actual_ver.minor, actual_ver.patch)
- local msg = string.format("Expect nvim %s, but got %s instead. Use at your own risk!", expected_ver, _ver)
- vim.api.nvim_err_writeln(msg)
-end
-
-local core_conf_files = {
- "globals.lua", -- 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
-}
-
-local viml_conf_dir = vim.fn.stdpath("config") .. "/viml_conf"
--- source all the core config files
-for _, file_name in ipairs(core_conf_files) do
- if vim.endswith(file_name, 'vim') then
- local path = string.format("%s/%s", viml_conf_dir, file_name)
- local source_cmd = "source " .. path
- vim.cmd(source_cmd)
- else
- local module_name, _ = string.gsub(file_name, "%.lua", "")
- package.loaded[module_name] = nil
- require(module_name)
- end
-end