migrated to lazy.nvim, cleanup and fixes

This commit is contained in:
2025-03-25 23:13:50 +08:00
parent 93e008c735
commit 19bded245e
11 changed files with 366 additions and 371 deletions

View File

@@ -1,67 +1,5 @@
local pk_use = require 'packer'.use
local ct = require 'conftool'
--
-- Theme
--
pk_use {
'Mofiqul/adwaita.nvim',
config = function()
local ct = require('conftool')
ct.set({'background', 'dark'})
-- vim.g.adwaita_darker = true
vim.cmd [[colo adwaita]]
vim.keymap.set(
'n',
'<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,
{noremap = true}
)
end
}
--
-- Buffer Bar
--
--[[
pk_use {
'romgrk/barbar.nvim',
config = function()
require('bufferline').setup {
animation = false,
auto_hide = true,
icons = {
filetype = {
custom_colors = false,
enabled = false
},
inactive = {left = ' '},
modified = {button = '*'},
-- separator = {left = '|'},
pinned = {button = '!'},
button = 'X'
},
sidebar_filetypes = {
aerial = true,
netrw = true
}
}
end
}
--]]
--
-- Indentation
--
@@ -74,15 +12,6 @@ ct.set({'tabstop', 5}, {'shiftwidth', 5})
--
vim.opt.list = true
--vim.cmd([[set lcs=tab:\|\ ]])
pk_use {
'nathanaelkane/vim-indent-guides',
setup = function()
vim.g.indent_guides_guide_size = 1
vim.g.indent_guides_tab_guides = 0
vim.g.indent_guides_start_level = 2
vim.g.indent_guides_enable_on_vim_startup = 1
end
}
--
-- Misc.
@@ -98,11 +27,6 @@ ct.set(
{'wrapmargin', 0}
)
-- Rainbow Delimiters
pk_use {
'hiphish/rainbow-delimiters.nvim',
}
-- dont show line number in terminal window
vim.cmd('autocmd TermOpen * setlocal nonu')
-- turn on mouse