Chore: moved lineNumberColors to Setup
This commit is contained in:
@@ -10,15 +10,7 @@ require("ward.lazy")
|
|||||||
|
|
||||||
--$ Neovide configuration if used
|
--$ Neovide configuration if used
|
||||||
if vim.g.neovide then
|
if vim.g.neovide then
|
||||||
vim.g.neovide_opacity = 0.7
|
vim.g.neovide_opacity = 0.7
|
||||||
vim.g.neovide_window_blurred = true
|
vim.g.neovide_window_blurred = true
|
||||||
vim.o.guifont = "Source Code Pro:h14"
|
vim.o.guifont = "Source Code Pro:h14"
|
||||||
end
|
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()
|
|
||||||
|
|||||||
@@ -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
|
-- set tab size to 2 spaces
|
||||||
vim.opt.tabstop = 2
|
vim.opt.tabstop = 2
|
||||||
vim.opt.softtabstop = 2
|
vim.opt.softtabstop = 2
|
||||||
vim.opt.shiftwidth = 2
|
vim.opt.shiftwidth = 2
|
||||||
vim.opt.expandtab = true
|
vim.opt.expandtab = true
|
||||||
vim.opt.smartindent = true
|
vim.opt.smartindent = true
|
||||||
|
|
||||||
vim.opt.wrap = false
|
vim.opt.wrap = false
|
||||||
|
|
||||||
--vim.opt.colorcolumn= 110
|
--vim.opt.colorcolumn= 110
|
||||||
vim.api.nvim_set_option_value("colorcolumn", "110", {})
|
vim.api.nvim_set_option_value("colorcolumn", "110", {})
|
||||||
|
|
||||||
vim.opt.confirm = true
|
vim.opt.confirm = true
|
||||||
vim.opt.hlsearch = true
|
vim.opt.hlsearch = true
|
||||||
vim.opt.incsearch = true -- incremental search
|
vim.opt.incsearch = true -- incremental search
|
||||||
|
|
||||||
vim.opt.termguicolors = true
|
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()
|
||||||
|
|||||||
Reference in New Issue
Block a user