Compare commits

...

2 Commits

Author SHA1 Message Date
fd451b891c Remove colorcolumn from krypton 2025-09-02 21:03:14 +03:00
85cdecf0a2 Fix crash on startup 2025-09-02 21:03:08 +03:00
2 changed files with 3 additions and 1 deletions

View File

@@ -140,7 +140,7 @@ local function compile_project(command)
end
vim.api.nvim_create_user_command('CompileClose', function()
if vim.api.nvim_buf_is_valid(BuildTerminalBuf) then
if BuildTerminalBuf ~= nil and vim.api.nvim_buf_is_valid(BuildTerminalBuf) then
vim.api.nvim_buf_delete(BuildTerminalBuf, { force = true })
end
end, {})

View File

@@ -34,6 +34,8 @@ vim.opt.smoothscroll = true
local dir = vim.fn.fnamemodify(vim.fn.getcwd(), ':t')
if dir == 'grimoire' then
vim.opt.colorcolumn = '0'
elseif dir == 'krypton' then
vim.opt.colorcolumn = ''
else
vim.opt.colorcolumn = '100'
end