theme:主题更换。

This commit is contained in:
2025-11-27 14:26:21 +08:00
parent 33e16c33f9
commit fc16638653
5 changed files with 24 additions and 60 deletions

View File

@@ -1,37 +0,0 @@
return {
"Civitasv/cmake-tools.nvim",
lazy = true,
init = function()
local loaded = false
local function check()
local cwd = vim.uv.cwd()
if vim.fn.filereadable(cwd .. "/CMakeLists.txt") == 1 then
require("lazy").load({ plugins = { "cmake-tools.nvim" } })
loaded = true
end
end
check()
vim.api.nvim_create_autocmd("DirChanged", {
callback = function()
if not loaded then
check()
end
end,
})
end,
keys = {
{ "<leader>mg", ":CMakeGenerate -G Ninja<CR>", desc = "CMake Generate -G Ninja", remap = false },
{ "<leader>mb", ":CMakeBuild<CR>", desc = "CMake Build", remap = false },
{ "<leader>mr", ":CMakeRun<CR>", desc = "CMake Run", remap = false },
{ "<leader>mc", ":CMakeClean<CR>", desc = "CMake Clear", remap = false },
{ "<leader>ms", ":CMakeStop<CR>", desc = "CMake Stop", remap = false },
{ "<leader>mq", ":CMakeCloseRunner<CR>", desc = "CMake Close", remap = false },
{ "<leader>mt", ":CMakeSelectLaunchTarget<CR>", desc = "CMake Change Target", remap = false },
{ "<leader>ma", ":CMakeLaunchArgs", desc = "CMake Launch Args", remap = false },
{ "<leader>md", ":CMakeDebug<CR>", desc = "CMake Debug", remap = false },
},
opts = {
cmake_build_directory = "build",
cmake_soft_link_compile_commands = false,
},
}

13
lua/plugins/theme.lua Normal file
View File

@@ -0,0 +1,13 @@
return {
"projekt0n/github-nvim-theme",
name = "github-theme",
lazy = false, -- make sure we load this during startup if it is your main colorscheme
priority = 1000, -- make sure to load this before all the other start plugins
config = function()
require("github-theme").setup({
-- ...
})
vim.cmd("colorscheme github_dark_dimmed")
end,
}

View File

@@ -1,12 +0,0 @@
return {
"folke/tokyonight.nvim",
opts = {
-- moon
style = "day"
},
config = function (_, opts)
require("tokyonight").setup(opts)
vim.cmd("colorscheme tokyonight")
end
}