Chore: moved lineNumberColors to Setup

This commit is contained in:
Ward Truyen
2025-07-07 22:26:23 +02:00
parent ce889c3d17
commit 3ed6529711
2 changed files with 20 additions and 20 deletions

View File

@@ -10,15 +10,7 @@ require("ward.lazy")
--$ Neovide configuration if used
if vim.g.neovide then
vim.g.neovide_opacity = 0.7
vim.g.neovide_window_blurred = true
vim.o.guifont = "Source Code Pro:h14"
vim.g.neovide_opacity = 0.7
vim.g.neovide_window_blurred = true
vim.o.guifont = "Source Code Pro:h14"
end
-- Sets colors to line numbers Above, Current and Below in this order
function LineNumberColors()
vim.api.nvim_set_hl(0, 'LineNrAbove', { fg='#51B3EC', bold=true })
vim.api.nvim_set_hl(0, 'LineNr', { fg='white', bold=true })
vim.api.nvim_set_hl(0, 'LineNrBelow', { fg='#FB508F', bold=true })
end
LineNumberColors()

View File

@@ -1,24 +1,32 @@
vim.g.have_nerd_font = true -- use nerd_font
vim.g.have_nerd_font = true -- use nerd_font
vim.opt.clipboard = "unnamedplus" -- use system keyboard for yank
vim.opt.nu = true -- set line numbers
vim.opt.relativenumber = true -- use relative line numbers
vim.opt.clipboard = 'unnamedplus' -- use system keyboard for yank
vim.opt.nu = true -- set line numbers
vim.opt.relativenumber = true -- use relative line numbers
-- set tab size to 2 spaces
vim.opt.tabstop = 2
vim.opt.softtabstop = 2
vim.opt.shiftwidth = 2
vim.opt.expandtab = true
vim.opt.smartindent = true
vim.opt.wrap = false
--vim.opt.colorcolumn= 110
vim.api.nvim_set_option_value("colorcolumn", "110", {})
vim.opt.confirm = true
vim.opt.hlsearch = true
vim.opt.incsearch = true -- incremental search
vim.opt.termguicolors = true
-- Sets colors to line numbers Above, Current and Below in this order
function LineNumberColors()
vim.api.nvim_set_hl(0, "LineNrAbove", { fg = "#51B3EC", bold = true })
vim.api.nvim_set_hl(0, "LineNr", { fg = "white", bold = true })
vim.api.nvim_set_hl(0, "LineNrBelow", { fg = "#FB508F", bold = true })
end
LineNumberColors()