Compare commits

1 Commits

Author SHA1 Message Date
Meszaros Zoltan (XC-AS/ESY3-HU) b2608bff8c Bosch version 2026-06-26 11:38:57 +02:00
8 changed files with 140 additions and 260 deletions
+40 -111
View File
@@ -1,193 +1,122 @@
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>sv", "<C-w>v" , {desc = "slit widow vertically"} ) -- slit widow vertically keymap.set( "n", "<leader>sh", "<C-w>s" ) -- split widow horizontaly
keymap.set( "n", "<leader>sh", "<C-w>s" , {desc = "split widow horizontaly"} ) -- split widow horizontaly keymap.set( "n", "<leader>se", "<C-w>=" ) -- make split windows equal width
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>" ) -- close window
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-h>", ":vertical resize -2<cr>") -- keymap.set( "n", "<A-l>", ":vertical resize +2<cr>")
keymap.set( "n", "<A-l>", ":vertical resize +2<cr>") -- keymap.set( "n", "<A-k>", ":resize +2<cr>")
keymap.set( "n", "<A-k>", ":resize -2<cr>") -- keymap.set( "n", "<A-j>", ":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
--
-- 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 -- diagnostic warning/error navigation
keymap.set( "n", "g[", vim.diagnostic.goto_prev)
keymap.set( "n", "g]", vim.diagnostic.goto_next)
-- --
-- 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-j>", ":m .+1<CR>==")
keymap.set("v", "<A-k>", ":m .-2<CR>==") keymap.set("v", "<A-k>", ":m .-2<CR>==")
keymap.set("v", "p", '"_dP') 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>", {desc = "File browser"}) keymap.set("n", "<leader>e", ":NvimTreeToggle<CR>")
-- 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>" , {desc = "File find (internal)"}) keymap.set("n", "<leader>ff", ":Files<cr>" )
keymap.set("n", "<leader>fs", ":Telescope live_grep<cr>" , {desc = "File grep (internal)"} ) keymap.set("n", "<leader>fs", ":Telescope live_grep<cr>" )
keymap.set("n", "<leader>fg", ":Rg<cr>") keymap.set("n", "<leader>fg", ":Rg<cr>")
keymap.set("n", "<leader>fb", ":Telescope buffers<cr>" , {desc = "Buffer search"} ) keymap.set("n", "<leader>fb", ":Telescope buffers<cr>" )
keymap.set("n", "<leader>fh", ":Telescope help_tags<cr>" , {desc = "help_tags search"} ) keymap.set("n", "<leader>fh", ":Telescope help_tags<cr>" )
keymap.set("n", "<leader>x", "<cmd>lua require'telescope.builtin'.".. keymap.set("n", "<leader>x", "<cmd>lua require'telescope.builtin'.find_files(require('telescope.themes').get_dropdown({ previewer = false }))<cr>")
"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 -->"} )
+11 -5
View File
@@ -3,9 +3,7 @@ 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:h20:l:#e-subpixelantialias:#h-none" } opt.guifont = { "BlexMono NFM:h11: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
@@ -107,9 +105,17 @@ 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 = ''
+47 -77
View File
@@ -1,17 +1,8 @@
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
@@ -31,9 +22,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!
@@ -41,17 +32,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()
@@ -60,36 +51,34 @@ 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",
@@ -98,9 +87,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",
@@ -117,9 +106,9 @@ return packer.startup(function(use)
end end
} }
-- -------------------------------------------------------------------------------------------- -- ----------------------------------------------------
-- nvim-tree -- nvim-tree
-- -------------------------------------------------------------------------------------------- -- ----------------------------------------------------
use { use {
"nvim-tree/nvim-tree.lua", "nvim-tree/nvim-tree.lua",
@@ -128,9 +117,9 @@ return packer.startup(function(use)
end end
} }
-- ------------------------------------------------------------------------------------------- -- --------------------------------------------------------------
-- autocompletion -- autocompletion
-- ------------------------------------------------------------------------------------------- -- --------------------------------------------------------------
use { use {
"hrsh7th/nvim-cmp", "hrsh7th/nvim-cmp",
@@ -148,44 +137,46 @@ 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',
run = function() branch = "master",
local ts_update = require('nvim-treesitter.install').update({ with_sync = true }) run = ':TSUpdate', -- This automatically updates parsers on install/update
ts_update()
end,
} }
-- -------------------------------------------------------------- -- --------------------------------------------------------------
@@ -202,15 +193,14 @@ 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()
@@ -218,10 +208,9 @@ 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()
@@ -233,29 +222,10 @@ return packer.startup(function(use)
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
+1 -2
View File
@@ -12,8 +12,7 @@ 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
@@ -1,17 +0,0 @@
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.
}
)
+1 -2
View File
@@ -16,8 +16,7 @@ require('nvim-treesitter.configs').setup {
highlight = { highlight = {
enable = true, -- false will disable the whole extension enable = true, -- false will disable the whole extension
disable = { "" } additional_vim_regex_highlighting = false,
additional_vim_regex_highlighting = ture,
}, },
indent = { indent = {
+5 -10
View File
@@ -1,14 +1,11 @@
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 registers = true, -- shows your registers on " in NORMAL or <C-r> in INSERT mode
-- 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 enabled = true, -- enabling this will show WhichKey when pressing z= to select spelling suggestions
-- z= to select spelling suggestions
suggestions = 20, -- how many suggestions should be shown in the list? suggestions = 20, -- how many suggestions should be shown in the list?
}, },
presets = { presets = {
@@ -32,12 +29,10 @@ require("which-key").setup {
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 = "double", -- none, single, double, shadow border = "none", -- 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.
margin = { 5, 5, 5, 5 }, -- extra window margin [top, right, bottom, left]. padding = { 1, 2, 1, 2 }, -- extra window padding [top, right, bottom, left]
-- When between 0 and 1, will be treated as a percentage of the screen size.
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 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. zindex = 1000, -- positive value to position WhichKey above other floating windows.
}, },
+3 -4
View File
@@ -5,7 +5,6 @@ after switching to another branch, the following folders must be deleted
- 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 # Note 2026-06-26:
```sh Original folder was in vscode :
ls /etc/ppp/ C:\tools\.config\nvim\init.lua
```