refactor: simplify startup profiles and ignore local tooling configs

This commit is contained in:
2026-05-30 15:01:30 +08:00
parent 5cba0307a3
commit 94699474c7
36 changed files with 604 additions and 1166 deletions
+15 -19
View File
@@ -1,23 +1,19 @@
-- bootstrap lazy.nvim, LazyVim and your plugins
vim.g.mapleader = " "
vim.g.maplocalleader = "\\"
vim.opt.clipboard = "unnamedplus"
vim.opt.incsearch = true
vim.opt.hlsearch = true
vim.opt.ignorecase = true
vim.opt.smartcase = true
vim.opt.tabstop = 4
vim.opt.softtabstop = 4
vim.opt.shiftwidth = 4
vim.opt.expandtab = true
if vim.g.vscode then
require('config.lazyvscode')
require("profiles.vscode").setup()
else
local info = debug.getinfo(1, "S")
local path_info = info.source:sub(2)
local path
if vim.loop.os_uname().sysname == "Windows_NT" then
-- Windows platform (backslashes or forward slashes)
path = path_info:match("(.*[/\\])")
else
-- Linux/macOS platform (forward slashes only)
path = path_info:match("(.*/)")
end
local file, err = io.open(string.format("%s%s", path, "/baremetal"), "r")
if file then
file:close()
require("config.lazybaremetal")
else
require("config.lazynvimide")
end
require("profiles.native").setup()
end