Compare commits

..

11 Commits

Author SHA1 Message Date
Ward Truyen
3fbfc5bd2b feat: alpha-dashboard added 2025-11-29 23:20:34 +01:00
Ward Truyen
470b1012f1 fix: catppucin/neovide terminal colors 2025-11-27 13:17:37 +01:00
Ward Truyen
dec548e1d7 feat: Updated lineNr colors 2025-11-21 13:11:44 +01:00
Ward Truyen
b25bc2d63a docs: Wrote something in README.md 2025-10-19 11:48:58 +02:00
Ward Truyen
64d0992a24 feat: added instal-zsh-optionals for instaling (AUR) packages for zsh configuration 2025-10-19 10:45:41 +02:00
Ward Truyen
e2c6a96e18 feat: improved make instal-optionals to include nvim vim tree and --needed instal arguement 2025-10-11 11:27:24 +02:00
Ward Truyen
ca05e88876 chore: improved keybinds 2025-10-10 07:10:03 +02:00
Ward Truyen
93b9162d16 chore: added refresh gitsigns keybind 2025-08-17 22:38:35 +02:00
Ward Truyen
3bce3cb3ed fix: simplified and fixed a lot of keymaps 2025-07-26 17:37:35 +02:00
Ward Truyen
71edd9843a chore: more Standardized remap 2025-07-22 16:31:05 +02:00
Ward Truyen
369cc7db08 chore: removed quit when last buffer closes 2025-07-22 16:29:45 +02:00
17 changed files with 325 additions and 72 deletions

View File

@@ -0,0 +1 @@
# NeoVim config repository from Ward Truyen 2025

View File

@@ -10,7 +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.75
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

View File

@@ -0,0 +1,191 @@
return {
"goolord/alpha-nvim",
dependencies = {
"nvim-telescope/telescope.nvim",
-- "nvim-telescope/telescope-project.nvim",
},
priority = 2000,
lazy = false,
config = function()
-- require("telescope").load_extension("project")
local alpha = require("alpha")
local dashboard = require("alpha.themes.dashboard")
local datetime = tonumber(os.date(" %H "))
local stats = require("lazy").stats()
local total_plugins = stats.count
local function button(sc, txt, keybind, keybind_opts)
local b = dashboard.button(sc, txt, keybind, keybind_opts)
b.opts.hl_shortcut = "MiniIconsPurple"
return b
end
local logo = [[
_
_ __ ___ _____ _(_)_ __ ___
| '_ \ / _ \/ _ \ \ / / | '_ ` _ \
| | | | __/ (_) \ V /| | | | | | |
|_| |_|\___|\___/ \_/ |_|_| |_| |_|
]]
dashboard.section.header.val = vim.split(logo, "\n")
dashboard.section.buttons.val = {
-- button("p", " Find project", ":lua require'telescope'.extensions.project.project{}<CR>"),
button("n", " New file", ":ene <BAR> startinsert <CR>"),
button("f", " Find Files", ":Telescope find_files <CR>"),
button("o", " Recent Files", "<cmd>Telescope oldfiles<cr>"),
button("t", " Find text", ":Telescope live_grep <CR>"),
button("m", " Bookmarks", ":Telescope marks <CR>"),
button("c", " Neovim config", "<cmd>e ~/.config/nvim/ | cd %:p:h<cr>"),
button("l", "󰒲 Lazy", "<cmd>Lazy<cr>"),
button("q", " Quit NVIM", ":qa<CR>"),
}
local function footer()
local footer_datetime = os.date(" %m-%d-%Y  %H:%M:%S")
local version = vim.version()
local nvim_version_info = "  v" .. version.major .. "." .. version.minor .. "." .. version.patch
-- local ms = (math.floor(stats.startuptime * 100 + 0.5) / 100)
local value = footer_datetime .. "  Plugins " .. total_plugins .. nvim_version_info
return value
end
-- Append the footer string below the ASCII art
local count = 0
for _ in pairs(dashboard.section.header.val) do
count = count + 1
end
local extraline = count - 14
print(extraline)
for _ = 1, extraline do
table.insert(dashboard.section.header.val, 1, "")
end
-- table.insert(dashboard.section.header.val, footer())
-- dashboard.section.footer.val = require("alpha.fortune")()
dashboard.section.footer.val = footer()
local greeting = function()
-- Determine the appropriate greeting based on the hour
local mesg
local username = os.getenv("USER")
if datetime >= 0 and datetime < 6 then
mesg = "Dreaming..󰒲 󰒲 "
elseif datetime >= 6 and datetime < 12 then
mesg = "🌅 Hi " .. username .. ", Good Morning ☀️"
elseif datetime >= 12 and datetime < 18 then
mesg = "🌞 Hi " .. username .. ", Good Afternoon ☕️"
elseif datetime >= 18 and datetime < 21 then
mesg = "🌆 Hi " .. username .. ", Good Evening 🌙"
else
mesg = "Hi " .. username .. ", it's getting late, get some sleep 😴"
end
return mesg
end
local function capture(cmd, raw)
local f = assert(io.popen(cmd, "r"))
local s = assert(f:read("*a"))
f:close()
if raw then
return s
end
s = string.gsub(s, "^%s+", "")
s = string.gsub(s, "%s+$", "")
s = string.gsub(s, "[\n\r]+", " ")
return s
end
local function split(source, sep)
local result, i = {}, 1
while true do
local a, b = source:find(sep)
if not a then
break
end
local candidat = source:sub(1, a - 1)
if candidat ~= "" then
result[i] = candidat
end
i = i + 1
source = source:sub(b + 1)
end
if source ~= "" then
result[i] = source
end
return result
end
local bottom_section = {
type = "text",
val = greeting,
opts = {
position = "center",
},
}
local section = {
header = dashboard.section.header,
bottom_section = bottom_section,
buttons = dashboard.section.buttons,
footer = dashboard.section.footer,
}
local opts = {
layout = {
{ type = "padding", val = 1 },
section.header,
{ type = "padding", val = 1 },
section.buttons,
{ type = "padding", val = 1 },
section.bottom_section,
{ type = "padding", val = 1 },
section.footer,
},
}
dashboard.opts.opts.noautocmd = true
-- close Lazy and re-open when the dashboard is ready
if vim.o.filetype == "lazy" then
vim.cmd.close()
vim.api.nvim_create_autocmd("User", {
once = true,
pattern = "AlphaReady",
callback = function()
require("lazy").show()
end,
})
end
alpha.setup(opts)
-- don't show status line in alpha dashboard
vim.api.nvim_create_autocmd({ "User" }, {
pattern = { "AlphaReady" },
callback = function()
vim.cmd([[ set laststatus=0 | autocmd BufUnload <buffer> set laststatus=3 ]])
end,
})
-- onefetch header for alpha dashboard if onefetch is installed and git repo is present
vim.api.nvim_create_augroup("vimrc_alpha", { clear = true })
vim.api.nvim_create_autocmd({ "User" }, {
group = "vimrc_alpha",
pattern = "AlphaReady",
callback = function()
if vim.fn.executable("onefetch") == 1 then
local header = split(
capture(
[[onefetch 2>/dev/null | sed 's/\x1B[@A-Z\\\]^_]\|\x1B\[[0-9:;<=>?]*[-!"#$%&'"'"'()*+,.\/]*[][\\@A-Z^_`a-z{|}~]//g']],
true
),
"\n"
)
if next(header) ~= nil then
require("alpha.themes.dashboard").section.header.val = header
require("alpha").redraw()
end
end
end,
once = true,
})
end,
}

View File

@@ -4,6 +4,10 @@ return {
"ojroques/nvim-bufdel", "ojroques/nvim-bufdel",
version = "*", version = "*",
config = function() config = function()
require('bufdel').setup {
next = 'tabs',
quit = false,
}
vim.keymap.set("n", "<leader>bc", vim.cmd.BufDel) vim.keymap.set("n", "<leader>bc", vim.cmd.BufDel)
end, end,
} }

View File

@@ -6,7 +6,11 @@ return {
priority = 1000, priority = 1000,
config = function() config = function()
require("catppuccin").setup({}) require("catppuccin").setup({
transparent_backgroud = true,
term_colors = true,
})
vim.cmd.colorscheme("catppuccin") vim.cmd.colorscheme("catppuccin")
LineNumberColors()
end, end,
} }

View File

@@ -5,7 +5,7 @@ return {
config = function() config = function()
require("gitsigns").setup { require("gitsigns").setup {
signs = { signs = {
-- add = { text = "│" }, -- add = { text = "│" },
-- change = { text = "│" }, -- change = { text = "│" },
delete = { text = "_", show_count = true }, delete = { text = "_", show_count = true },
@@ -13,8 +13,12 @@ return {
-- changedelete = { text = "~" }, -- changedelete = { text = "~" },
-- untracked = { text = "┆" }, -- untracked = { text = "┆" },
}, },
numhl = true, -- Toggle with `:Gitsigns toggle_numhl` numhl = true, -- Toggle with `:Gitsigns toggle_numhl`
linehl = false, -- Toggle with `:Gitsigns toggle_linehl` linehl = false, -- Toggle with `:Gitsigns toggle_linehl`
} }
vim.keymap.set('n', '<Leader>xs', function()
require("gitsigns").refresh();
end, { desc = "Gitsigns refresh" })
end, end,
} }

View File

@@ -44,7 +44,7 @@ return {
}, },
filetypes = { "c", "cpp", "objc", "objcpp", "cuda", "proto", "hpp" }, filetypes = { "c", "cpp", "objc", "objcpp", "cuda", "proto", "hpp" },
init_options = { init_options = {
fllbackFlags = { '-std=c++20' }, fallbackFlags = { '-std=c17' },
}, },
handlers = handlers, handlers = handlers,
}) })

View File

@@ -10,6 +10,7 @@ return {
"mason-org/mason.nvim", "mason-org/mason.nvim",
config = function() config = function()
require("mason").setup() require("mason").setup()
vim.keymap.set("n", "<leader>xm", vim.cmd.Mason, { desc = "Mason" })
end, end,
}, },
"neovim/nvim-lspconfig", "neovim/nvim-lspconfig",

View File

@@ -15,10 +15,16 @@ return {
require("nvim-tree").setup({ require("nvim-tree").setup({
view = { view = {
width = 32, width = 32,
relativenumber = true,
}, },
filters = { filters = {
git_ignored = false, git_ignored = false,
}, },
actions = {
open_file = {
quit_on_open = true,
},
},
on_attach = function(bufnr) on_attach = function(bufnr)
local api = require "nvim-tree.api" local api = require "nvim-tree.api"
@@ -35,7 +41,8 @@ return {
vim.keymap.set('n', '?', api.tree.toggle_help, opts('Help')) vim.keymap.set('n', '?', api.tree.toggle_help, opts('Help'))
end, end,
}) })
vim.keymap.set("n", "<leader>e", vim.cmd.NvimTreeToggle)
vim.keymap.set("n", "<leader>e", vim.cmd.NvimTreeToggle, { desc = "Explorer" })
vim.api.nvim_create_autocmd({ "QuitPre" }, { callback = function() vim.cmd("NvimTreeClose") end, }) vim.api.nvim_create_autocmd({ "QuitPre" }, { callback = function() vim.cmd("NvimTreeClose") end, })
end, end,
} }

View File

@@ -1,4 +1,3 @@
---@type NvPluginSpec
-- NOTE: This plugin activly shows the result of your markdown while you're typing it -- NOTE: This plugin activly shows the result of your markdown while you're typing it
-- URL: https://https://github.com/MeanderingProgrammer/render-markdown.nvim -- URL: https://https://github.com/MeanderingProgrammer/render-markdown.nvim
return { return {
@@ -6,7 +5,5 @@ return {
-- dependencies = { 'nvim-treesitter/nvim-treesitter', 'echasnovski/mini.nvim' }, -- if you use the mini.nvim suite -- dependencies = { 'nvim-treesitter/nvim-treesitter', 'echasnovski/mini.nvim' }, -- if you use the mini.nvim suite
-- dependencies = { 'nvim-treesitter/nvim-treesitter', 'echasnovski/mini.icons' }, -- if you use standalone mini plugins -- dependencies = { 'nvim-treesitter/nvim-treesitter', 'echasnovski/mini.icons' }, -- if you use standalone mini plugins
dependencies = { 'nvim-treesitter/nvim-treesitter', 'nvim-tree/nvim-web-devicons' }, -- if you prefer nvim-web-devicons dependencies = { 'nvim-treesitter/nvim-treesitter', 'nvim-tree/nvim-web-devicons' }, -- if you prefer nvim-web-devicons
---@module 'render-markdown'
---@type render.md.UserConfig
opts = {}, opts = {},
} }

View File

@@ -10,20 +10,24 @@ return {
require('telescope').setup() require('telescope').setup()
local builtin = require('telescope.builtin') local builtin = require('telescope.builtin')
vim.keymap.set('n', '<leader>pf', builtin.find_files, {}) local wk = require("which-key")
vim.keymap.set('n', '<leader>pg', builtin.git_files, {}) wk.add({
vim.keymap.set('n', '<leader>pws', function() { "<leader>p", group = "Project" },
})
vim.keymap.set('n', '<leader>pf', builtin.find_files, { desc = "Find file" })
vim.keymap.set('n', '<leader>pg', builtin.git_files, { desc = "Git files" })
vim.keymap.set('n', '<leader>pw', function()
local word = vim.fn.expand("<cword>") local word = vim.fn.expand("<cword>")
builtin.grep_string({ search = word }) builtin.grep_string({ search = word })
end) end, { desc = "Grep word search" })
vim.keymap.set('n', '<leader>pWs', function() vim.keymap.set('n', '<leader>pW', function()
local word = vim.fn.expand("<cWORD>") local word = vim.fn.expand("<cWORD>")
builtin.grep_string({ search = word }) builtin.grep_string({ search = word })
end) end, { desc = "Grep WORD search" })
vim.keymap.set('n', '<leader>ps', function() vim.keymap.set('n', '<leader>ps', function()
builtin.grep_string({ search = vim.fn.input("Grep > ") }) builtin.grep_string({ search = vim.fn.input("Grep > ") })
end) end, { desc = "Grep string search" })
vim.keymap.set('n', '<leader>vh', builtin.help_tags, {desc = "Search [H]elp"}) vim.keymap.set('n', '<leader>vh', builtin.help_tags, { desc = "Search [H]elp" })
vim.keymap.set('n', '<leader>vk', builtin.keymaps, {desc = "Search [K]eymaps"}) vim.keymap.set('n', '<leader>vk', builtin.keymaps, { desc = "Search [K]eymaps" })
end end
} }

View File

@@ -16,7 +16,7 @@ return {
return 20 return 20
end, end,
}) })
vim.keymap.set('n', '<leader>t', ":ToggleTerm name=BottomTerm<cr>") vim.keymap.set('n', '<leader>`', ":ToggleTerm name=BottomTerm<cr>", { desc = "ToggleTerm" })
--vim.keymap.set('n', '<leader>tv', ":ToggleTerm direction=vertical name=VerticalTerm<cr>") --vim.keymap.set('n', '<leader>tv', ":ToggleTerm direction=vertical name=VerticalTerm<cr>")
--vim.keymap.set('n', '<leader>tf', ":ToggleTerm direction=float name=FloatTerm<cr>") --vim.keymap.set('n', '<leader>tf', ":ToggleTerm direction=float name=FloatTerm<cr>")
end, end,

View File

@@ -0,0 +1,39 @@
--$ URL: https://github.com/folke/trouble.nvim
--# :help trouble
return {
"folke/trouble.nvim",
opts = {}, -- for default options, refer to the configuration section for custom setup.
cmd = "Trouble",
keys = {
{
"<leader>tx",
"<cmd>Trouble diagnostics toggle<cr>",
desc = "Diagnostics (Trouble)",
},
{
"<leader>tq",
"<cmd>Trouble diagnostics toggle filter.buf=0<cr>",
desc = "Buffer Diagnostics (Trouble)",
},
{
"<leader>ts",
"<cmd>Trouble symbols toggle focus=false<cr>",
desc = "Symbols (Trouble)",
},
{
"<leader>tl",
"<cmd>Trouble lsp toggle focus=false win.position=right<cr>",
desc = "LSP Definitions / references / ... (Trouble)",
},
{
"<leader>tL",
"<cmd>Trouble loclist toggle<cr>",
desc = "Location List (Trouble)",
},
{
"<leader>tq",
"<cmd>Trouble qflist toggle<cr>",
desc = "Quickfix List (Trouble)",
},
},
}

View File

@@ -21,33 +21,18 @@ return {
--# Structure of my standard keys --# Structure of my standard keys
local wk = require("which-key") local wk = require("which-key")
wk.add({ wk.add({
{ "<leader>w", desc = "Write" }, { "<leader>b", group = "Buffers" },
{ "<leader>q", desc = "Quit" }, { "<leader>t", group = "Trouble" },
{ "<leader>e", desc = "Explore" }, { "<leader>v", group = "Vim" },
{ "<leader><TAB>", desc = "Switch window" }, { "<leader>l", group = "LSP" },
{ "<leader>n", desc = "Next buffer" }, { "<leader>x", group = "Plugins" },
{ "<leader>b", group = "Buffers" }, -- group { "<leader>xl", vim.cmd.Lazy, desc = "Lazy" },
{ "<leader>bn", desc = "Next buffer" }, { "<leader>xw", vim.cmd.WhichKey, desc = "Which-key" },
{ "<leader>bp", desc = "Pervious buffer" }, { "<leader>w", function()
{ "<leader>bb", desc = "Pervious buffer" }, wk.show({ keys = "<c-w>" })
{ "<leader>bl", desc = "Buffer list" }, end,
{ "<leader>bc", desc = "Close buffer" }, desc = "Windows"
{ "<leader>t", group = "Terminal" }, },
-- {"<leader>tt", desc = "Bottom Terminal"},
-- {"<leader>tv", desc = "Vertical Terminal"},
-- {"<leader>tf", desc = "Floating Terminal"},
{ "<leader>p", group = "Project" },
{ "<leader>pf", desc = "Find file" },
{ "<leader>pg", desc = "Git files" },
{ "<leader>ps", desc = "Grep string search" },
{ "<leader>pw", desc = "Grep word search" },
{ "<leader>pW", desc = "Grep WORD search" },
{ "<leader>v", group = "Vim" },
{ "<leader>vh", desc = "Help search" },
{ "<leader>vm", "<Cmd>marks<Cr>", desc = "Marks", },
{ "<leader>vr", "<Cmd>registers<Cr>", desc = "Registers" },
{ "<leader>h", "<Cmd>nohlsearch<Cr>", desc = "Stop Highlight" },
{ "<leader>l", group = "LSP" },
}) })
end, end,
} }

View File

@@ -3,22 +3,26 @@
vim.g.mapleader = " " vim.g.mapleader = " "
vim.g.maplocalleader = "\\" vim.g.maplocalleader = "\\"
vim.keymap.set("n", "<leader>w", vim.cmd.w) vim.keymap.set("n", "<leader>bn", vim.cmd.bnext, { desc = "Next buffer" })
vim.keymap.set("n", "<leader>q", vim.cmd.q) vim.keymap.set("n", "<leader>n", vim.cmd.bnext, { desc = "Next buffer" })
vim.keymap.set("n", "<leader>bn", vim.cmd.bnext) vim.keymap.set("n", "<leader>bw", vim.cmd.w, { desc = "Write buffer" })
vim.keymap.set("n", "<leader>n", vim.cmd.bnext) vim.keymap.set("n", "<leader>bp", vim.cmd.bprevious, { desc = "Previous buffer" })
vim.keymap.set("n", "<leader>bp", vim.cmd.bprevious) vim.keymap.set("n", "<leader>bb", vim.cmd.bprevious, { desc = "Previous buffer" })
vim.keymap.set("n", "<leader>bb", vim.cmd.bprevious) vim.keymap.set("n", "<leader>bl", vim.cmd.buffers, { desc = "List buffers" })
vim.keymap.set("n", "<leader>bl", vim.cmd.buffers) vim.keymap.set("n", "<leader>bc", vim.cmd.bdelete, { desc = "Close buffer" })
vim.keymap.set("n", "<leader>bc", vim.cmd.bdelete) vim.keymap.set("n", "<leader>e", vim.cmd.Ex, { desc = "Explore" })
vim.keymap.set("n", "<leader>e", vim.cmd.Ex) vim.keymap.set("n", "<leader>vq", vim.cmd.qall, { desc = "Quit vim" })
vim.keymap.set("n", "<leader><TAB>", [[<C-w>w]]) vim.keymap.set("n", "<leader>vm", "<Cmd>marks<Cr>", {desc = "Marks"})
vim.keymap.set("n", "<leader>vm", "<Cmd>marks<Cr>") vim.keymap.set("n", "<leader>vr", "<Cmd>registers<Cr>", {desc = "Registers"})
vim.keymap.set("n", "<leader>vr", "<Cmd>registers<Cr>") vim.keymap.set("n", "<leader>h", "<Cmd>nohlsearch<Cr>", {desc = "Stop Highlight"})
vim.keymap.set("n", "<leader>h", "<Cmd>nohlsearch<Cr>") vim.keymap.set("n", "<leader><TAB>", [[<C-w>w]], { desc = "Next Window" })
-- vim.keymap.set("n", "<leader>wh", [[<C-w>h]], { desc = "Window left" })
-- vim.keymap.set("n", "<leader>wl", [[<C-w>l]], { desc = "Window right" })
-- vim.keymap.set("n", "<leader>wj", [[<C-w>j]], { desc = "Window down" })
-- vim.keymap.set("n", "<leader>wk", [[<C-w>k]], { desc = "Window up" })
--"$ map exit terminal mode to Escape --"$ map exit terminal mode to Escape
vim.keymap.set("t", "<Esc>", [[<C-\><C-n>]]) vim.keymap.set("t", "<Esc>", [[<C-\><C-n>]], { desc = "Escape terminal" })
--"$ normal mappings --"$ normal mappings
--"$ up/down half a page centered --"$ up/down half a page centered
@@ -32,6 +36,7 @@ vim.keymap.set("n", "N", [[Nzz]])
--nnoremap n nzzzv --nnoremap n nzzzv
--nnoremap N Nzzzv --nnoremap N Nzzzv
vim.keymap.set({ "i", "c" }, "<C-S-V>", '<C-R>+', { desc = "Paste system clipboard" }) vim.keymap.set({ "n", "x", "c", "v" }, "<C-S-C>", '"+y', { desc = "Copy system clipboard" }) -- ctrl+shift+c
vim.keymap.set({ "n", "x", "c", "v" }, "<C-S-C>", '"+y', { desc = "Copy system clipboard" }) vim.keymap.set({ "i", "c" }, "<C-S-V>", '<C-R>+', { desc = "Paste system clipboard" }) -- ctrl+shift+v
-- vim.keymap.set({ "n", "x" }, "<C-S-V>", '"+p', { desc = "Paste system clipboard" }) vim.keymap.set({ "n", "x" }, "<C-S-V>", '"+P', { desc = "Paste system clipboard" }) -- ctrl+shift+v
vim.keymap.set({ "i", "n", "x", "c", "v" }, "<C-S>", vim.cmd.w) -- save=crtl+s

View File

@@ -17,17 +17,20 @@ 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 -- confirm on quit with unsave changes
vim.opt.hlsearch = true vim.opt.hlsearch = true -- highlight search
vim.opt.incsearch = true -- incremental search vim.opt.incsearch = true -- incremental search
vim.opt.termguicolors = true vim.opt.termguicolors = true
--set shell=/usr/bin/zsh
vim.opt.shell='/usr/bin/zsh'
-- Sets colors to line numbers Above, Current and Below in this order -- Sets colors to line numbers Above, Current and Below in this order
function LineNumberColors() function LineNumberColors()
vim.api.nvim_set_hl(0, "LineNrAbove", { fg = "#51B3EC", bold = true }) vim.api.nvim_set_hl(0, "LineNrAbove", { fg = "#51B3EC", bold = false })
vim.api.nvim_set_hl(0, "LineNr", { fg = "white", bold = true }) vim.api.nvim_set_hl(0, "LineNr", { fg = white, bold = true })
vim.api.nvim_set_hl(0, "LineNrBelow", { fg = "#FB508F", bold = true }) vim.api.nvim_set_hl(0, "LineNrBelow", { fg = "#FB508F", bold = false })
end end
LineNumberColors() LineNumberColors()

View File

@@ -6,6 +6,8 @@ help : print-help
print-help : print-help :
@echo -e "Help!?!?" @echo -e "Help!?!?"
@echo -e "Use 'make instal' to instal this config to your home config" @echo -e "Use 'make instal' to instal this config to your home config"
@echo -e "Use 'make instal-optionals' to instal additional interesting packages: nvim, neovide, wl-clipboard"
@echo -e "Use 'make instal-zsh-optionals' to instal additional interesting packages: zsh, easy-zsh-config, oh-my-posh"
@echo -e "Use 'make code' to get code from your config to this project" @echo -e "Use 'make code' to get code from your config to this project"
@echo -e "ConfigPath=$(NVIM_CONFIG)" @echo -e "ConfigPath=$(NVIM_CONFIG)"
@@ -15,9 +17,15 @@ instal :
cp -r ./lua $(NVIM_CONFIG) cp -r ./lua $(NVIM_CONFIG)
instal-optionals : instal-optionals :
sudo pacman -S wl-clipboard #Use clipboard in wayland sudo pacman -S --needed vim nvim tree
sudo pacman -S xsel #Use clipboard in X11 sudo pacman -S --needed wl-clipboard #Use clipboard in wayland
sudo pacman -S neovide #Neovim in graphical enviorment # sudo pacman -S --needed xsel #Use clipboard in X11
sudo pacman -S --needed neovide #Neovim in graphical enviorment
instal-zsh-optionals :
sudo pacman -S --needed zsh #zsh shell environment
yay -S --needed easy-zsh-config #zsh suggestion/command-completion and syntax higlighting
yay -S --needed oh-my-posh #zsh theme provider
code : code :
@echo -e "Getting code from $(NVIM_CONFIG)" @echo -e "Getting code from $(NVIM_CONFIG)"