Move buncha stuff to old

This commit is contained in:
Marcelo Jacobus 2025-06-29 19:54:22 -03:00
parent da2295e309
commit f09eeadc5d
53 changed files with 117 additions and 117 deletions

234
init.lua
View file

@ -1,118 +1,118 @@
-- bootstrap lazy.nvim, LazyVim and your plugins -- bootstrap lazy.nvim, LazyVim and your plugins
require("config.lazy") -- require("config.lazy")
--
-- init.lua -- -- init.lua
local lspconfig = require("lspconfig") -- local lspconfig = require("lspconfig")
--
if lspconfig and lspconfig.ruby_lsp and lspconfig.ruby_lsp.setup then -- if lspconfig and lspconfig.ruby_lsp and lspconfig.ruby_lsp.setup then
-- Setup Ruby Language Server -- -- Setup Ruby Language Server
lspconfig.ruby_lsp.setup({ -- lspconfig.ruby_lsp.setup({
cmd = { "ruby-lsp" }, -- cmd = { "ruby-lsp" },
filetypes = { "ruby" }, -- filetypes = { "ruby" },
settings = { -- settings = {
ruby = { -- ruby = {
diagnostics = true, -- diagnostics = true,
completion = true, -- completion = true,
}, -- },
}, -- },
}) -- })
end -- end
--
if lspconfig and lspconfig.solargraph and lspconfig.solargraph.setup then -- if lspconfig and lspconfig.solargraph and lspconfig.solargraph.setup then
-- Setup Solargraph -- -- Setup Solargraph
lspconfig.solargraph.setup({ -- lspconfig.solargraph.setup({
cmd = { "solargraph", "stdio" }, -- cmd = { "solargraph", "stdio" },
filetypes = { "ruby" }, -- filetypes = { "ruby" },
settings = { -- settings = {
solargraph = { -- solargraph = {
diagnostics = true, -- diagnostics = true,
}, -- },
}, -- },
}) -- })
end -- end
--
vim.api.nvim_create_autocmd("BufWritePre", { -- vim.api.nvim_create_autocmd("BufWritePre", {
pattern = "*", -- pattern = "*",
callback = function() -- callback = function()
vim.cmd("%s/\\s\\+$//e") -- vim.cmd("%s/\\s\\+$//e")
end, -- end,
}) -- })
--
vim.defer_fn(function() -- vim.defer_fn(function()
local light_bg = "#394264" -- local light_bg = "#394264"
local slightly_darker_bg = "#384160" -- local slightly_darker_bg = "#384160"
local dark_bg = "#222437" -- local dark_bg = "#222437"
--
-- vim.api.nvim_set_hl(0, "Normal", { bg = light_bg }) -- -- vim.api.nvim_set_hl(0, "Normal", { bg = light_bg })
-- vim.api.nvim_set_hl(0, "NormalFloat", { bg = light_bg }) -- -- vim.api.nvim_set_hl(0, "NormalFloat", { bg = light_bg })
-- vim.api.nvim_set_hl(0, "NormalNC", { bg = light_bg }) -- -- vim.api.nvim_set_hl(0, "NormalNC", { bg = light_bg })
-- -- vim.cmd([[highlight Comment guifg=#222436 guibg=#5c5e77 gui=italic]]) -- -- -- vim.cmd([[highlight Comment guifg=#222436 guibg=#5c5e77 gui=italic]])
-- -- --
-- -- Set a vertical line at column 100 -- -- -- Set a vertical line at column 100
-- vim.opt.colorcolumn = "100" -- -- vim.opt.colorcolumn = "100"
-- vim.api.nvim_set_hl(0, "ColorColumn", { bg = slightly_darker_bg }) -- Use the desired color -- -- vim.api.nvim_set_hl(0, "ColorColumn", { bg = slightly_darker_bg }) -- Use the desired color
-- -- --
-- vim.api.nvim_set_hl(0, "LineNr", { fg = dark_bg }) -- -- vim.api.nvim_set_hl(0, "LineNr", { fg = dark_bg })
-- -- --
-- vim.opt.cursorline = true -- -- vim.opt.cursorline = true
-- vim.api.nvim_set_hl(0, "CursorLine", { bg = slightly_darker_bg }) -- -- vim.api.nvim_set_hl(0, "CursorLine", { bg = slightly_darker_bg })
-- -- --
-- -- Set the background color for DiagnosticSignError -- -- -- Set the background color for DiagnosticSignError
-- vim.api.nvim_set_hl(0, "DiagnosticSignError", { bg = light_bg, fg = "#ff0000" }) -- Set your desired colors -- -- vim.api.nvim_set_hl(0, "DiagnosticSignError", { bg = light_bg, fg = "#ff0000" }) -- Set your desired colors
-- -- --
-- -- Set the background color for DiagnosticSignWarn -- -- -- Set the background color for DiagnosticSignWarn
-- vim.api.nvim_set_hl(0, "DiagnosticSignWarn", { bg = light_bg, fg = "#ffaa00" }) -- Set your desired colors -- -- vim.api.nvim_set_hl(0, "DiagnosticSignWarn", { bg = light_bg, fg = "#ffaa00" }) -- Set your desired colors
-- -- --
-- -- Set the background color for DiagnosticSignInfo -- -- -- Set the background color for DiagnosticSignInfo
-- vim.api.nvim_set_hl(0, "DiagnosticSignInfo", { bg = light_bg, fg = "#00aaff" }) -- Set your desired colors -- -- vim.api.nvim_set_hl(0, "DiagnosticSignInfo", { bg = light_bg, fg = "#00aaff" }) -- Set your desired colors
-- -- --
-- -- Set the background color for DiagnosticSignHint -- -- -- Set the background color for DiagnosticSignHint
-- vim.api.nvim_set_hl(0, "DiagnosticSignHint", { bg = light_bg, fg = "#00ff00" }) -- Set your desired colors -- -- vim.api.nvim_set_hl(0, "DiagnosticSignHint", { bg = light_bg, fg = "#00ff00" }) -- Set your desired colors
--
-- Define the new background color -- -- Define the new background color
-- local new_bg = light_bg -- -- local new_bg = light_bg
--
-- Update the highlight groups that match the original background -- -- Update the highlight groups that match the original background
-- local highlights = { -- -- local highlights = {
-- -- General UI elements -- -- -- General UI elements
-- "Normal", -- -- "Normal",
-- "NormalNC", -- -- "NormalNC",
-- "CursorLine", -- -- "CursorLine",
-- "CursorLineNr", -- -- "CursorLineNr",
-- "ColorColumn", -- -- "ColorColumn",
-- "SignColumn", -- -- "SignColumn",
-- "StatusLine", -- -- "StatusLine",
-- "StatusLineNC", -- -- "StatusLineNC",
-- "TabLine", -- -- "TabLine",
-- "TabLineFill", -- -- "TabLineFill",
-- "TabLineSel", -- -- "TabLineSel",
-- "VertSplit", -- -- "VertSplit",
-- "WinSeparator", -- -- "WinSeparator",
-- -- --
-- -- Editor elements -- -- -- Editor elements
-- "LineNr", -- -- "LineNr",
-- "Folded", -- -- "Folded",
-- "NonText", -- -- "NonText",
-- "SpecialKey", -- -- "SpecialKey",
-- "EndOfBuffer", -- -- "EndOfBuffer",
-- "IncSearch", -- -- "IncSearch",
-- "Search", -- -- "Search",
-- "Visual", -- -- "Visual",
-- "VisualNOS", -- -- "VisualNOS",
-- -- --
-- -- Diagnostics -- -- -- Diagnostics
-- "DiagnosticSignError", -- -- "DiagnosticSignError",
-- "DiagnosticSignWarn", -- -- "DiagnosticSignWarn",
-- "DiagnosticSignInfo", -- -- "DiagnosticSignInfo",
-- "DiagnosticSignHint", -- -- "DiagnosticSignHint",
-- -- --
-- -- Gutter elements (like Git signs) -- -- -- Gutter elements (like Git signs)
-- "GitSignsAdd", -- -- "GitSignsAdd",
-- "GitSignsChange", -- -- "GitSignsChange",
-- "GitSignsDelete", -- -- "GitSignsDelete",
-- } -- -- }
-- -- --
-- for _, group in ipairs(highlights) do -- -- for _, group in ipairs(highlights) do
-- vim.api.nvim_set_hl(0, group, { bg = new_bg }) -- -- vim.api.nvim_set_hl(0, group, { bg = new_bg })
-- end -- -- end
end, 100) -- end, 100)