This commit is contained in:
Walter Jenkins 2025-08-12 23:10:09 -05:00
parent 83f02dbde7
commit 5bdc9a9944
7 changed files with 31 additions and 8 deletions

View file

@ -24,7 +24,7 @@ vim.o.shiftwidth = 4 -- the number of spaces ins
vim.o.tabstop = 2 -- insert n spaces for a tab
vim.o.softtabstop = 4 -- Number of spaces that a tab counts for while performing editing operations
vim.o.expandtab = true -- convert tabs to spaces
vim.o.cursorline = true -- highlight the current line
vim.o.cursorline = true -- highlight the current line
vim.o.splitbelow = true -- force all horizontal splits to go below current window
vim.o.splitright = true -- force all vertical splits to go to the right of current window
vim.o.swapfile = false -- creates a swapfile
@ -60,4 +60,12 @@ vim.opt.foldlevel = 99 -- Keep folds open by default
vim.api.nvim_create_autocmd("FileType", {
pattern = "templ",
callback = function()
vim.bo.tabstop = 2
vim.bo.shiftwidth = 2
vim.bo.softtabstop = 2
vim.bo.expandtab = true
end,
})

View file

@ -32,7 +32,6 @@ return {
event = 'VimEnter',
opts = function(_, opts)
local logo = [[
@ -46,14 +45,14 @@ return {
]]
logo = string.rep('\n', 8) .. logo .. '\n\n'
-- 🔥 Ensure `opts.config` is a table before modifying
opts.config = opts.config or {}
opts.config.header = vim.split(logo, '\n')
-- ✅ Disable project module to avoid error
opts.config.project = { enable = false }
end,
},
}