minor changes

This commit is contained in:
2025-05-07 14:34:10 +08:00
parent 280469e805
commit d25bf6d7b1
6 changed files with 1472 additions and 30 deletions

View File

@@ -24,6 +24,7 @@ ct.map('n', '<Leader>W', ':bprevious<LF>')
-- close buffer
ct.map('n', '<Leader>q', ':bd<LF>')
ct.map('n', '<Leader>wq', '<cmd>w<LF><cmd>bd<LF>')
--
-- Commands

View File

@@ -2,35 +2,35 @@ return {
--
-- Theme
--
{
'navarasu/onedark.nvim',
lazy = false,
opts = {
style = 'darker',
toggle_style_key = '<leader>c',
toggle_style_list = {'darker', 'light'},
},
config = function()
require('onedark').load()
end,
--[[ keys = {
{
'<Leader>c',
function()
if vim.o.background == 'light' then
vim.o.background = 'dark'
else
vim.o.background = 'light'
-- vim.api.nvim_set_hl(0, 'ColorColumn', {bg = '#c0bfbc'})
vim.cmd('redraw')
vim.cmd('redraw')
end
end,
desc = 'toggle color themes'
},
}, --]]
-- {
-- 'navarasu/onedark.nvim',
-- lazy = false,
-- opts = {
-- style = 'darker',
-- toggle_style_key = '<leader>c',
-- toggle_style_list = {'darker', 'light'},
-- },
-- config = function()
-- require('onedark').load()
-- end,
-- --[[ keys = {
-- {
-- '<Leader>c',
-- function()
-- if vim.o.background == 'light' then
-- vim.o.background = 'dark'
-- else
-- vim.o.background = 'light'
-- -- vim.api.nvim_set_hl(0, 'ColorColumn', {bg = '#c0bfbc'})
-- vim.cmd('redraw')
-- vim.cmd('redraw')
-- end
-- end,
-- desc = 'toggle color themes'
-- },
-- }, --]]
},
-- },
--
-- Indentation

View File

@@ -17,9 +17,10 @@ vim.opt.list = true
-- Misc.
--
ct.set('ruler', 'showcmd', 'cursorline', 'title')
vim.cmd [[ colo selenized_bw ]]
-- ct.set('number')
ct.set(
{'termguicolors', true},
-- {'termguicolors', true},
{'signcolumn', 'number'},
{'conceallevel', 0},
{'colorcolumn', '81,121'},