Compare commits

7 Commits

Author SHA1 Message Date
mzpx bf9ca21814 Screen center at up/down 2026-06-30 19:25:57 +02:00
mzpx b919ee1268 Colorizer added 2026-06-29 16:10:22 +02:00
mzpx 6c6ec48b86 mini.icon added, error corrected 2026-06-27 17:49:36 +02:00
mzpx acd130badc Cleanup the config and colorizer added 2026-06-27 17:18:56 +02:00
mzpx df067c3842 Cleanup and Colorizer added 2026-06-27 17:18:27 +02:00
mzpx 0adb83f3e4 Tuning config files
Finetuning of config files, formatting them
2026-06-26 16:25:37 +02:00
mzpx 2f643c1e1f Cleanup the config file 2026-06-25 22:25:58 +02:00
8 changed files with 262 additions and 138 deletions
+118 -47
View File
@@ -1,122 +1,193 @@
vim.g.mapleader = " " vim.g.mapleader = " "
local keymap = vim.keymap local keymap = vim.keymap
local base_comment = ""
-- ************************************************************************************************
--
-- Modes -- Modes
-- --
-- "n" = normal mode -- "n" = normal mode
-- "i" = insert mode -- "i" = insert mode
-- "v" = visual mode -- "v" = visual mode
-- "x" = visual block mode -- "x" = visual block mode
-- "r" = Replace mode
-- "t" = term mode -- "t" = term mode
-- "c" = command mode -- "c" = command mode
-- --
-- ************************************************************************************************
-- ----------------------------------------------------------------------------
-- Normal -- ************************************************************************************************
-- ---------------------------------------------------------------------------- --
-- NORMAL mode
--
-- ************************************************************************************************
-- ------------------------------------------------------------------------------------------------
-- Window splitting -- Window splitting
keymap.set( "n", "<leader>sv", "<C-w>v" ) -- split widow vertically -- ------------------------------------------------------------------------------------------------
keymap.set( "n", "<leader>sh", "<C-w>s" ) -- split widow horizontaly keymap.set( "n", "<leader>sv", "<C-w>v" , {desc = "slit widow vertically"} ) -- slit widow vertically
keymap.set( "n", "<leader>se", "<C-w>=" ) -- make split windows equal width keymap.set( "n", "<leader>sh", "<C-w>s" , {desc = "split widow horizontaly"} ) -- split widow horizontaly
keymap.set( "n", "<leader>sx", ":close<CR>" ) -- close window keymap.set( "n", "<leader>se", "<C-w>=" , {desc = "make split windows equal width"}) -- make split windows equal width
keymap.set( "n", "<leader>sx", ":close<CR>" , {desc = "close window"} ) -- close window
-- keymap.set( "n", "<leader>sm", ":MaximizerToggle<CR>" ) -- keymap.set( "n", "<leader>sm", ":MaximizerToggle<CR>" )
keymap.set( "n", "<leader>sm", '<cmd>lua require("maximizer").toggle()<CR>', {silent = true, noremap = true}) keymap.set( "n", "<leader>sm", '<cmd>lua require("maximizer").toggle()<CR>', {silent = true, noremap = true})
-- keymap.set('n', 'mm', '<cmd>lua require("maximizer").maximize()<CR>', {silent = true, noremap = true}) -- keymap.set('n', 'mm', '<cmd>lua require("maximizer").maximize()<CR>', {silent = true, noremap = true})
-- keymap.set('n', 'mr', '<cmd>lua require("maximizer").restore()<CR>', {silent = true, noremap = true}) -- keymap.set('n', 'mr', '<cmd>lua require("maximizer").restore()<CR>', {silent = true, noremap = true})
-- --
-- Window navigation -- ------------------------------------------------------------------------------------------------
-- Window navigation commans
-- ------------------------------------------------------------------------------------------------
keymap.set( "n", "<C-h>", "<C-w>h") keymap.set( "n", "<C-h>", "<C-w>h")
keymap.set( "n", "<C-j>", "<C-w>j") keymap.set( "n", "<C-j>", "<C-w>j")
keymap.set( "n", "<C-k>", "<C-w>k") keymap.set( "n", "<C-k>", "<C-w>k")
keymap.set( "n", "<C-l>", "<C-w>l") keymap.set( "n", "<C-l>", "<C-w>l")
-- -- ------------------------------------------------------------------------------------------------
-- Insert date
--
keymap.set( "n", "<leader><leader>d", ":pu=strftime('%Y-%m-%d')<CR>" )
--
--
--
--keymap.set( "n", "<leader><leader>f", ":toggle-fullscreen<CR>" )
-- Resize window with arrows -- Resize window with arrows
-- keymap.set( "n", "<A-h>", ":vertical resize -2<cr>") -- ------------------------------------------------------------------------------------------------
-- keymap.set( "n", "<A-l>", ":vertical resize +2<cr>") keymap.set( "n", "<A-h>", ":vertical resize -2<cr>")
-- keymap.set( "n", "<A-k>", ":resize +2<cr>") keymap.set( "n", "<A-l>", ":vertical resize +2<cr>")
-- keymap.set( "n", "<A-j>", ":resize -2<cr>") keymap.set( "n", "<A-k>", ":resize -2<cr>")
keymap.set( "n", "<A-j>", ":resize +2<cr>")
-- keymap.set( "n", "<leader>e", ":Lex 30 <cr>")
-- Buffers -- Buffers
keymap.set( "n", "<S-l>", ":bnext<cr>" ) -- next buffer keymap.set( "n", "<S-l>", ":bnext<cr>" ) -- next buffer
keymap.set( "n", "<S-h>", ":bprevious<cr>" ) -- prev buffer keymap.set( "n", "<S-h>", ":bprevious<cr>" ) -- prev buffer
keymap.set( "n", "<C-w>", ":bd<CR>" ) -- delete buffer keymap.set( "n", "<C-w>", ":bd<CR>" ) -- delete buffer
-- keymap.set( "n", "<C-TAB>", ":bnext<cr>" ) -- go to next tab
-- keymap.set( "n", "<C-S-TAB>", ":bprevious<CR>" ) -- go to prev tab
--
-- TABs -- TABs
--
keymap.set( "n", "<leader>to", ":tabnew<CR>" ) -- open new tab keymap.set( "n", "<leader>to", ":tabnew<CR>" ) -- open new tab
keymap.set( "n", "<leader>tx", ":tabclose<CR>" ) -- close current tab keymap.set( "n", "<leader>tx", ":tabclose<CR>" ) -- close current tab
keymap.set( "n", "<leader>tn", ":tabn<CR>" ) -- go to next tab keymap.set( "n", "<leader>tn", ":tabn<CR>" ) -- go to next tab
keymap.set( "n", "<leader>tp", ":tabp<CR>" ) -- go to prev tab keymap.set( "n", "<leader>tp", ":tabp<CR>" ) -- go to prev tab
-- diagnostic warning/error navigation
keymap.set( "n", "g[", vim.diagnostic.goto_prev)
keymap.set( "n", "g]", vim.diagnostic.goto_next)
-- --
-- Page movement with center alignment
--
keymap.set( "n", "<C-d>", "<C-d>zz", { desc = "Half page down"} )
keymap.set( "n", "<C-u>", "<C-u>zz", { desc = "Half page up"} )
--
-- diagnostic warning/error navigation
--
-- keymap.set( "n", "g[", vim.diagnostic.goto_prev)
-- keymap.set( "n", "g]", vim.diagnostic.goto_next)
-- ----------------------------------------------------------------------------
-- Insert spectial text
-- ----------------------------------------------------------------------------
keymap.set( "n", "<leader><leader>d", ":pu=strftime('%Y-%m-%d')<CR>" , {desc = "Insert actual date"} )
keymap.set( "n", "<leader><leader>c",
"i-- ------------------------------------------------------------------------------------------------<CR><CR>" ..
"------------------------------------------------------------------------------------------------<CR><esc>",
{desc = "Insert main comment section"} )
keymap.set( "n", "yc", "yy<cmd>normal gcc<CR>p", { noremap = true, desc = "Duplicate line and comment original" })
keymap.set( "n", ",", "*" ) -- due to HUN keybard, the * hard to access: keymap.set( "n", ",", "*" ) -- due to HUN keybard, the * hard to access:
keymap.set( "n", "<leader>nh", ":nohl<CR>")
keymap.set( "n", "x", '"_x"')
-- ----------------------------------------------------------------------------
-- ************************************************************************************************
--
-- Insert mode -- Insert mode
-- ---------------------------------------------------------------------------- --
keymap.set("i", "jk", "<ESC>") -- ************************************************************************************************
keymap.set( "i", "jk", "<ESC>")
-- ---------------------------------------------------------------------------- -- ************************************************************************************************
--
-- Visual mode -- Visual mode
-- ---------------------------------------------------------------------------- --
-- ************************************************************************************************
-- Stay in indent mode -- Stay in indent mode
keymap.set("v", "<", "<gv") keymap.set( "v", "<", "<gv")
keymap.set("v", ">", ">gv") keymap.set( "v", ">", ">gv")
-- ------------------------------------------------------------------------------------------------
-- Visual Block -- -- Visual Block --
keymap.set("v", "<A-j>", ":m .+1<CR>==") -- ------------------------------------------------------------------------------------------------
keymap.set("v", "<A-k>", ":m .-2<CR>==") keymap.set( "v", "<A-j>", ":m .+1<CR>==")
keymap.set("v", "p", '"_dP') keymap.set( "v", "<A-k>", ":m .-2<CR>==")
keymap.set( "v", "p", '"_dP')
-- ************************************************************************************************
--
-- Visual Block Mode
--
-- ************************************************************************************************
-- ------------------------------------------------------------------------------------------------
-- Move text up and down -- Move text up and down
-- ------------------------------------------------------------------------------------------------
keymap.set( "x", "J", ":move '>+1<CR>gv-gv") keymap.set( "x", "J", ":move '>+1<CR>gv-gv")
keymap.set( "x", "K", ":move '<-2<CR>gv-gv") keymap.set( "x", "K", ":move '<-2<CR>gv-gv")
keymap.set( "x", "<A-j>", ":move '>+1<CR>gv-gv") keymap.set( "x", "<A-j>", ":move '>+1<CR>gv-gv")
keymap.set( "x", "<A-k>", ":move '<-2<CR>gv-gv") keymap.set( "x", "<A-k>", ":move '<-2<CR>gv-gv")
-- Terminal --
-- ************************************************************************************************
--
-- Terminal
--
-- ************************************************************************************************
-- ------------------------------------------------------------------------------------------------
-- Better terminal navigation -- Better terminal navigation
-- ------------------------------------------------------------------------------------------------
keymap.set( "t", "<C-h>", "<C-\\><C-N><C-w>h") keymap.set( "t", "<C-h>", "<C-\\><C-N><C-w>h")
keymap.set( "t", "<C-j>", "<C-\\><C-N><C-w>j") keymap.set( "t", "<C-j>", "<C-\\><C-N><C-w>j")
keymap.set( "t", "<C-k>", "<C-\\><C-N><C-w>k") keymap.set( "t", "<C-k>", "<C-\\><C-N><C-w>k")
keymap.set( "t", "<C-l>", "<C-\\><C-N><C-w>l") keymap.set( "t", "<C-l>", "<C-\\><C-N><C-w>l")
keymap.set("n", "<leader>nh", ":nohl<CR>")
keymap.set("n", "x", '"_x"')
keymap.set("n", "<C-TAB>", ":tabn<CR>") -- go to next tab -- ------------------------------------------------------------------------------------------------
keymap.set("n", "<C-S-TAB>", ":tabp<CR>") -- go to prev tab
-- plugin keymaps -- plugin keymaps
-- ------------------------------------------------------------------------------------------------
-- nvim-tree -- nvim-tree
keymap.set("n", "<leader>e", ":NvimTreeToggle<CR>") keymap.set("n", "<leader>e", ":NvimTreeToggle<CR>", {desc = "File browser"})
-- telescope -- telescope
--keymap.set("n", "<leader>ff", ":Telescope find_files<cr>" ) --keymap.set("n", "<leader>ff", ":Telescope find_files<cr>" )
keymap.set("n", "<leader>ff", ":Files<cr>" ) keymap.set("n", "<leader>ff", ":Files<cr>" , {desc = "File find (internal)"})
keymap.set("n", "<leader>fs", ":Telescope live_grep<cr>" ) keymap.set("n", "<leader>fs", ":Telescope live_grep<cr>" , {desc = "File grep (internal)"} )
keymap.set("n", "<leader>fg", ":Rg<cr>") keymap.set("n", "<leader>fg", ":Rg<cr>")
keymap.set("n", "<leader>fb", ":Telescope buffers<cr>" ) keymap.set("n", "<leader>fb", ":Telescope buffers<cr>" , {desc = "Buffer search"} )
keymap.set("n", "<leader>fh", ":Telescope help_tags<cr>" ) keymap.set("n", "<leader>fh", ":Telescope help_tags<cr>" , {desc = "help_tags search"} )
keymap.set("n", "<leader>x", "<cmd>lua require'telescope.builtin'.find_files(require('telescope.themes').get_dropdown({ previewer = false }))<cr>") keymap.set("n", "<leader>x", "<cmd>lua require'telescope.builtin'."..
"find_files(require('telescope.themes')."..
"get_dropdown({ previewer = false }))<cr>")
keymap.set("n", "<c-t>", "<cmd>Telescope live_grep<cr>") keymap.set("n", "<c-t>", "<cmd>Telescope live_grep<cr>")
--
-- ------------------------------------------------------------------------------------------------
-- Langmap
-- ------------------------------------------------------------------------------------------------
--
keymap.set("n", "ő", "{")
keymap.set("n", "Ő", "[")
keymap.set("n", "ú", "}")
keymap.set("n", "Ú", "]")
keymap.set("v", ",", "<gv" , {desc = "Ident left <--"} )
keymap.set("v", ".", ">gv" , {desc = "Ident right -->"} )
+8 -14
View File
@@ -3,7 +3,9 @@ local opt = vim.opt
-- [[ Font ]] -- [[ Font ]]
--opt.guifont = { "SauceCodePro NF:h11:r:#e-subpixelantialias:#h-none" } --opt.guifont = { "SauceCodePro NF:h11:r:#e-subpixelantialias:#h-none" }
--opt.guifont = { "BlexMono NFM:h11:l:i:#e-subpixelantialias:#h-none" } --opt.guifont = { "BlexMono NFM:h11:l:i:#e-subpixelantialias:#h-none" }
opt.guifont = { "BlexMono NFM:h11:l:#e-subpixelantialias:#h-none" } -- opt.guifont = { "BlexMono NFM:h20:l:#e-subpixelantialias:#h-none" }
-- opt.guifont = { "MesloLGS Nerd Font Mono:h19:l:#e-subpixelantialias:#h-none" }
opt.guifont = { "JetBrainsMono Nerd Font:h19:l:#e-subpixelantialias:#h-none" }
-- [[ Context ]] -- [[ Context ]]
opt.number = true -- set numbered lines opt.number = true -- set numbered lines
@@ -105,17 +107,9 @@ autocmd CursorHold * lua vim.diagnostic.open_float(nil, { focusable = false })
opt.clipboard:append("unnamedplus") -- allows neovim to access the system clipboard opt.clipboard:append("unnamedplus") -- allows neovim to access the system clipboard
opt.iskeyword:append("-") opt.iskeyword:append("-")
--vim.g.neovide_cursor_vfx_mode = "" -- ----------------------------------------------------------------------------
--vim.g.neovide_cursor_animation_length = 0
--vim.g.neovide_transparency = 1.0
--vim.g.neovide_remember_window_size = true
---- vim.g.neovide_profiler =false
--vim.g.neovide_scroll_animation_length = 0.0
--
-- which.key options - 2026-05-28 -- which.key options - 2026-05-28
-- -- ----------------------------------------------------------------------------
vim.o.timeout = true vim.o.timeout = true
vim.o.timeoutlen = 300 vim.o.timeoutlen = 300
vim.o.mouse = '' vim.o.mouse = ''
+83 -53
View File
@@ -1,8 +1,17 @@
local fn = vim.fn local fn = vim.fn
-- ---------------------------------------------------------------------------- local function system(command)
local file = assert(io.popen(command, 'r'))
local output = file:read('*all'):gsub("%s+", "")
file:close()
return output
end
vim.g.localaded_python3_provider = system("which python3")
-- ------------------------------------------------------------------------------------------------
-- Automatically install packer -- Automatically install packer
-- ---------------------------------------------------------------------------- -- ------------------------------------------------------------------------------------------------
local install_path = fn.stdpath "data" .. "/site/pack/packer/start/packer.nvim" local install_path = fn.stdpath "data" .. "/site/pack/packer/start/packer.nvim"
if fn.empty(fn.glob(install_path)) > 0 then if fn.empty(fn.glob(install_path)) > 0 then
@@ -22,9 +31,9 @@ if fn.empty(fn.glob(install_path)) > 0 then
]] ]]
end end
-- ---------------------------------------------------------------------------- -- ------------------------------------------------------------------------------------------------
-- Autocommand that reloads neovim whenever you save the plugins.lua file -- Autocommand that reloads neovim whenever you save the plugins.lua file
-- ---------------------------------------------------------------------------- -- ------------------------------------------------------------------------------------------------
vim.cmd [[ vim.cmd [[
augroup packer_user_config augroup packer_user_config
autocmd! autocmd!
@@ -32,17 +41,17 @@ vim.cmd [[
augroup end augroup end
]] ]]
-- ---------------------------------------------------------------------------- -- ------------------------------------------------------------------------------------------------
-- Use a protected call so we don't error out on first use -- Use a protected call so we don't error out on first use
-- ---------------------------------------------------------------------------- -- ------------------------------------------------------------------------------------------------
local status, packer = pcall(require, "packer") local status, packer = pcall(require, "packer")
if not status then if not status then
return return
end end
-- ---------------------------------------------------------------------------- -- ------------------------------------------------------------------------------------------------
-- Have packer use a popup window -- Have packer use a popup window
-- ---------------------------------------------------------------------------- -- ------------------------------------------------------------------------------------------------
packer.init { packer.init {
display = { display = {
open_fn = function() open_fn = function()
@@ -51,34 +60,36 @@ packer.init {
}, },
} }
-- ---------------------------------------------------------------------------- -- ------------------------------------------------------------------------------------------------
-- Install plugins -- Install plugins
-- ---------------------------------------------------------------------------- -- ------------------------------------------------------------------------------------------------
return packer.startup(function(use) return packer.startup(function(use)
-- ------------------------------------------------------ vim.tbl_islist = vim.islist
-- --------------------------------------------------------------------------------------------
-- Have packer manage itself -- Have packer manage itself
-- ------------------------------------------------------ -- --------------------------------------------------------------------------------------------
use "wbthomason/packer.nvim" use "wbthomason/packer.nvim"
use "lewis6991/impatient.nvim" use "lewis6991/impatient.nvim"
-- ---------------------------------------------------- -- --------------------------------------------------------------------------------------------
-- web devicons used by e.g.: nvim-tree, lualine, ... -- web devicons used by e.g.: nvim-tree, lualine, ...
-- ---------------------------------------------------- -- --------------------------------------------------------------------------------------------
use "kyazdani42/nvim-web-devicons" use "kyazdani42/nvim-web-devicons"
-- ---------------------------------------------------- -- --------------------------------------------------------------------------------------------
-- colorschemas -- colorschemas
-- ---------------------------------------------------- -- --------------------------------------------------------------------------------------------
use { "bluz71/vim-nightfly-colors", as = "nighfly" } use { "bluz71/vim-nightfly-colors", as = "nighfly" }
use { "bluz71/vim-moonfly-colors", as = "moonfly" } use { "bluz71/vim-moonfly-colors", as = "moonfly" }
use { "rebelot/kanagawa.nvim", as = "kanagawa"} use { "rebelot/kanagawa.nvim", as = "kanagawa"}
-- ---------------------------------------------------- -- --------------------------------------------------------------------------------------------
-- lualine (status line) -- lualine (status line)
-- ---------------------------------------------------- -- --------------------------------------------------------------------------------------------
use { use {
"nvim-lualine/lualine.nvim", "nvim-lualine/lualine.nvim",
@@ -87,9 +98,9 @@ return packer.startup(function(use)
end end
} }
-- -------------------------------------------------------------- -- --------------------------------------------------------------------------------------------
-- telescope -- telescope
-- -------------------------------------------------------------- -- --------------------------------------------------------------------------------------------
use { use {
"nvim-telescope/telescope.nvim", "nvim-telescope/telescope.nvim",
-- branch = "0.1.x", -- branch = "0.1.x",
@@ -106,9 +117,9 @@ return packer.startup(function(use)
end end
} }
-- ---------------------------------------------------- -- --------------------------------------------------------------------------------------------
-- nvim-tree -- nvim-tree
-- ---------------------------------------------------- -- --------------------------------------------------------------------------------------------
use { use {
"nvim-tree/nvim-tree.lua", "nvim-tree/nvim-tree.lua",
@@ -117,9 +128,9 @@ return packer.startup(function(use)
end end
} }
-- -------------------------------------------------------------- -- -------------------------------------------------------------------------------------------
-- autocompletion -- autocompletion
-- -------------------------------------------------------------- -- -------------------------------------------------------------------------------------------
use { use {
"hrsh7th/nvim-cmp", "hrsh7th/nvim-cmp",
@@ -137,47 +148,45 @@ return packer.startup(function(use)
end end
} }
-- -------------------------------------------------------------- -- --------------------------------------------------------------------------------------------
-- autocompletion/snippets -- autocompletion/snippets
-- -------------------------------------------------------------- -- --------------------------------------------------------------------------------------------
use { use {
"L3MON4D3/LuaSnip", -- Required "L3MON4D3/LuaSnip", -- Required
"rafamadriz/friendly-snippets", -- Optional "rafamadriz/friendly-snippets", -- Optional
run = "make install_jsregexp"
} }
-- -------------------------------------------------------------- -- --------------------------------------------------------------------------------------------
-- bufferline - mz -- bufferline - mz
-- -------------------------------------------------------------- -- --------------------------------------------------------------------------------------------
use { use {
"akinsho/bufferline.nvim", "akinsho/bufferline.nvim",
tag = "*", tag = "*",
requires = "nvim-tree/nvim-web-devicons", requires = "nvim-tree/nvim-web-devicons",
-- vim.opt.termguicolors = true
config = function() config = function()
-- require("bufferline").setup{}
require("mzpx.plug.bufferline") require("mzpx.plug.bufferline")
end end
} }
-- -------------------------------------------------------------- -- --------------------------------------------------------------------------------------------
-- fzf - mz -- fzf - mz
-- -------------------------------------------------------------- -- --------------------------------------------------------------------------------------------
use { use {
"junegunn/fzf.vim", "junegunn/fzf.vim",
requires = { 'junegunn/fzf', run = ':call fzf#install()' } requires = { 'junegunn/fzf', run = ':call fzf#install()' }
} }
-- -------------------------------------------------------------- -- --------------------------------------------------------------------------------------------
-- nvim-treesitter - mz -- nvim-treesitter - mz
-- -------------------------------------------------------------- -- --------------------------------------------------------------------------------------------
use { use {
'nvim-treesitter/nvim-treesitter', 'nvim-treesitter/nvim-treesitter',
branch = "master", run = function()
run = ':TSUpdate', -- This automatically updates parsers on install/update local ts_update = require('nvim-treesitter.install').update({ with_sync = true })
} ts_update()
end,
}
-- -------------------------------------------------------------- -- --------------------------------------------------------------
-- render-markdown - mz -- render-markdown - mz
@@ -193,14 +202,15 @@ return packer.startup(function(use)
end end
} }
-- -------------------------------------------------------------
-- --------------------------------------------------------------------------------------------
-- which-key -- which-key
-- ------------------------------------------------------------- -- --------------------------------------------------------------------------------------------
use "folke/which-key.nvim" use "folke/which-key.nvim"
-- ------------------------------------------------------------- -- --------------------------------------------------------------------------------------------
-- toggle-fullscreen - 2026-05-31 -- toggle-fullscreen - 2026-05-31
-- ------------------------------------------------------------- -- --------------------------------------------------------------------------------------------
-- use { -- use {
-- "propet/toggle-fullscreen.nvim", -- "propet/toggle-fullscreen.nvim",
-- config = function() -- config = function()
@@ -208,24 +218,44 @@ return packer.startup(function(use)
-- end -- end
-- } -- }
-- --
-- -------------------------------------------------------------
-- --------------------------------------------------------------------------------------------
-- maximizer - 2026-05-31 -- maximizer - 2026-05-31
-- ------------------------------------------------------------- -- --------------------------------------------------------------------------------------------
use { use {
"0x00-ketsu/maximizer.nvim", "0x00-ketsu/maximizer.nvim",
config = function() config = function()
require("maximizer").setup { require("maximizer").setup {
-- your configuration comes here -- your configuration comes here
-- or leave it empty to use the default settings -- or leave it empty to use the default settings
-- refer to the configuration section below -- refer to the configuration section below
} }
end end
} }
-- ------------------------------------------------------------------- -- --------------------------------------------------------------------------------------------
-- Colorizer - 2026-06-27
-- --------------------------------------------------------------------------------------------
use {
"norcalli/nvim-colorizer.lua",
config = function()
require( "mzpx.plug.nvim-colorizer" )
end
}
-- --------------------------------------------------------------------------------------------
-- Mini Icons - 2026-06-27
-- --------------------------------------------------------------------------------------------
use {
'nvim-mini/mini.icons'
}
-- --------------------------------------------------------------------------------------------
-- Automatically set up your configuration after cloning packer.nvim. -- Automatically set up your configuration after cloning packer.nvim.
-- Put this at the end after all plugins. -- Put this at the end after all plugins.
-- ------------------------------------------------------------------- -- --------------------------------------------------------------------------------------------
if PACKER_BOOTSTRAP then if PACKER_BOOTSTRAP then
require("packer").sync() require("packer").sync()
end end
+2 -1
View File
@@ -12,7 +12,8 @@ local custom_highlight =
vim.api.nvim_set_hl( 0, "Comment", { fg = "#808080", italic = false }) vim.api.nvim_set_hl( 0, "Comment", { fg = "#808080", italic = false })
vim.api.nvim_set_hl( 0, "Function", { fg = "#82aaff", italic = false }) vim.api.nvim_set_hl( 0, "Function", { fg = "#82aaff", italic = false })
vim.api.nvim_set_hl( 0, "CursorLineNr", { fg = "#82aaff", italic = false }) vim.api.nvim_set_hl( 0, "CursorLineNr", { fg = "#82aaff", italic = false })
vim.api.nvim_set_hl( 0, "Delimiter", { fg = "#ff0000", italic = false }) -- vim.api.nvim_set_hl( 0, "Delimiter", { fg = "#ff0000", italic = false })
vim.api.nvim_set_hl( 0, "Delimiter", { fg = "#aaaaaa", italic = false })
end, end,
group = custom_highlight, group = custom_highlight,
+17
View File
@@ -0,0 +1,17 @@
require'colorizer'.setup(
{'*';},
{
RGB = true; -- #RGB hex codes
RRGGBB = true; -- #RRGGBB hex codes
names = true; -- "Name" codes like Blue
RRGGBBAA = false; -- #RRGGBBAA hex codes
rgb_fn = false; -- CSS rgb() and rgba() functions
hsl_fn = false; -- CSS hsl() and hsla() functions
css = false; -- Enable all CSS features: rgb_fn, hsl_fn, names, RGB, RRGGBB
css_fn = false; -- Enable all CSS *functions*: rgb_fn, hsl_fn
-- Available modes: foreground, background
mode = 'background'; -- Set the display mode.
}
)
+2 -1
View File
@@ -16,7 +16,8 @@ require('nvim-treesitter.configs').setup {
highlight = { highlight = {
enable = true, -- false will disable the whole extension enable = true, -- false will disable the whole extension
additional_vim_regex_highlighting = false, disable = { "" }
additional_vim_regex_highlighting = ture,
}, },
indent = { indent = {
+27 -22
View File
@@ -1,40 +1,45 @@
require("which-key").setup { require("which-key").setup {
plugins = { plugins = {
marks = true, -- shows a list of your marks on ' and ` marks = true, -- shows a list of your marks on ' and `
registers = true, -- shows your registers on " in NORMAL or <C-r> in INSERT mode registers = true, -- shows your registers on " in NORMAL
-- or <C-r> in INSERT mode
-- the presets plugin, adds help for a bunch of default keybindings in Neovim -- the presets plugin, adds help for a bunch of default keybindings in Neovim
-- No actual key bindings are created -- No actual key bindings are created
--
spelling = { spelling = {
enabled = true, -- enabling this will show WhichKey when pressing z= to select spelling suggestions enabled = true, -- enabling this will show WhichKey when pressing
suggestions = 20, -- how many suggestions should be shown in the list? -- z= to select spelling suggestions
suggestions = 20, -- how many suggestions should be shown in the list?
}, },
presets = { presets = {
operators = true, -- adds help for operators like d, y, ... operators = true, -- adds help for operators like d, y, ...
motions = true, -- adds help for motions motions = true, -- adds help for motions
text_objects = true, -- help for text objects triggered after entering an operator text_objects = true, -- help for text objects triggered after entering an operator
windows = true, -- default bindings on <c-w> windows = true, -- default bindings on <c-w>
nav = true, -- misc bindings to work with windows nav = true, -- misc bindings to work with windows
z = true, -- bindings for folds, spelling and others prefixed with z z = true, -- bindings for folds, spelling and others prefixed with z
g = true, -- bindings for prefixed with g g = true, -- bindings for prefixed with g
}, },
}, },
operators = { gc = "Comments" }, operators = { gc = "Comments" },
icons = { icons = {
breadcrumb = "»", -- symbol used in the command line area that shows your active key combo breadcrumb = "»", -- symbol used in the command line area that shows your active key combo
separator = "", -- symbol used between a key and it's label separator = "", -- symbol used between a key and it's label
group = "+", -- symbol prepended to a group group = "+", -- symbol prepended to a group
}, },
popup_mappings = { popup_mappings = {
scroll_down = "<c-d>", -- binding to scroll down inside the popup scroll_down = "<c-d>", -- binding to scroll down inside the popup
scroll_up = "<c-u>", -- binding to scroll up inside the popup scroll_up = "<c-u>", -- binding to scroll up inside the popup
}, },
window = { window = {
border = "none", -- none, single, double, shadow border = "double", -- none, single, double, shadow
position = "bottom", -- bottom, top position = "bottom", -- bottom, top
margin = { 1, 0, 1, 0 }, -- extra window margin [top, right, bottom, left]. When between 0 and 1, will be treated as a percentage of the screen size. -- margin = { 1, 0, 1, 0 }, -- extra window margin [top, right, bottom, left]. When between 0 and 1, will be treated as a percentage of the screen size.
padding = { 1, 2, 1, 2 }, -- extra window padding [top, right, bottom, left] margin = { 5, 5, 5, 5 }, -- extra window margin [top, right, bottom, left].
winblend = 0, -- value between 0-100 0 for fully opaque and 100 for fully transparent -- When between 0 and 1, will be treated as a percentage of the screen size.
zindex = 1000, -- positive value to position WhichKey above other floating windows. padding = { 5, 5, 5, 5 }, -- extra window padding [top, right, bottom, left]
winblend = 0, -- value between 0-100 0 for fully opaque and 100 for fully transparent
zindex = 1000, -- positive value to position WhichKey above other floating windows.
}, },
} }
+5
View File
@@ -4,3 +4,8 @@ after switching to another branch, the following folders must be deleted
- delete `%XDG_CACHE_HOME%\nvim` folder - delete `%XDG_CACHE_HOME%\nvim` folder
- delete `%XDG_CONFIG_HOME%\nvim\plugin` folder - delete `%XDG_CONFIG_HOME%\nvim\plugin` folder
- delete `%XDG_DATA_HOME%\nvim-data` folder - delete `%XDG_DATA_HOME%\nvim-data` folder
## For test
```sh
ls /etc/ppp/
```