Compare commits
7 Commits
3718945ab1
...
treesitter
| Author | SHA1 | Date | |
|---|---|---|---|
| bf9ca21814 | |||
| b919ee1268 | |||
| 6c6ec48b86 | |||
| acd130badc | |||
| df067c3842 | |||
| 0adb83f3e4 | |||
| 2f643c1e1f |
+118
-47
@@ -1,122 +1,193 @@
|
||||
vim.g.mapleader = " "
|
||||
|
||||
local keymap = vim.keymap
|
||||
local base_comment = ""
|
||||
|
||||
|
||||
-- ************************************************************************************************
|
||||
--
|
||||
-- Modes
|
||||
--
|
||||
-- "n" = normal mode
|
||||
-- "i" = insert mode
|
||||
-- "v" = visual mode
|
||||
-- "x" = visual block mode
|
||||
-- "r" = Replace mode
|
||||
-- "t" = term mode
|
||||
-- "c" = command mode
|
||||
--
|
||||
-- ************************************************************************************************
|
||||
|
||||
-- ----------------------------------------------------------------------------
|
||||
-- Normal
|
||||
-- ----------------------------------------------------------------------------
|
||||
|
||||
-- ************************************************************************************************
|
||||
--
|
||||
-- NORMAL mode
|
||||
--
|
||||
-- ************************************************************************************************
|
||||
|
||||
-- ------------------------------------------------------------------------------------------------
|
||||
-- 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>se", "<C-w>=" ) -- make split windows equal width
|
||||
keymap.set( "n", "<leader>sx", ":close<CR>" ) -- close window
|
||||
-- ------------------------------------------------------------------------------------------------
|
||||
keymap.set( "n", "<leader>sv", "<C-w>v" , {desc = "slit widow vertically"} ) -- slit widow vertically
|
||||
keymap.set( "n", "<leader>sh", "<C-w>s" , {desc = "split widow horizontaly"} ) -- split widow horizontaly
|
||||
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", '<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', '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-j>", "<C-w>j")
|
||||
keymap.set( "n", "<C-k>", "<C-w>k")
|
||||
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
|
||||
-- keymap.set( "n", "<A-h>", ":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-j>", ":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-k>", ":resize -2<cr>")
|
||||
keymap.set( "n", "<A-j>", ":resize +2<cr>")
|
||||
|
||||
|
||||
-- keymap.set( "n", "<leader>e", ":Lex 30 <cr>")
|
||||
|
||||
-- Buffers
|
||||
keymap.set( "n", "<S-l>", ":bnext<cr>" ) -- next buffer
|
||||
keymap.set( "n", "<S-h>", ":bprevious<cr>" ) -- prev 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
|
||||
--
|
||||
keymap.set( "n", "<leader>to", ":tabnew<CR>" ) -- open new 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>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", "<leader>nh", ":nohl<CR>")
|
||||
keymap.set( "n", "x", '"_x"')
|
||||
|
||||
|
||||
-- ----------------------------------------------------------------------------
|
||||
|
||||
|
||||
-- ************************************************************************************************
|
||||
--
|
||||
-- Insert mode
|
||||
-- ----------------------------------------------------------------------------
|
||||
keymap.set("i", "jk", "<ESC>")
|
||||
--
|
||||
-- ************************************************************************************************
|
||||
keymap.set( "i", "jk", "<ESC>")
|
||||
|
||||
-- ----------------------------------------------------------------------------
|
||||
-- ************************************************************************************************
|
||||
--
|
||||
-- Visual mode
|
||||
-- ----------------------------------------------------------------------------
|
||||
--
|
||||
-- ************************************************************************************************
|
||||
-- Stay in indent mode
|
||||
keymap.set("v", "<", "<gv")
|
||||
keymap.set("v", ">", ">gv")
|
||||
keymap.set( "v", "<", "<gv")
|
||||
keymap.set( "v", ">", ">gv")
|
||||
|
||||
-- ------------------------------------------------------------------------------------------------
|
||||
-- Visual Block --
|
||||
keymap.set("v", "<A-j>", ":m .+1<CR>==")
|
||||
keymap.set("v", "<A-k>", ":m .-2<CR>==")
|
||||
keymap.set("v", "p", '"_dP')
|
||||
-- ------------------------------------------------------------------------------------------------
|
||||
keymap.set( "v", "<A-j>", ":m .+1<CR>==")
|
||||
keymap.set( "v", "<A-k>", ":m .-2<CR>==")
|
||||
keymap.set( "v", "p", '"_dP')
|
||||
|
||||
|
||||
-- ************************************************************************************************
|
||||
--
|
||||
-- Visual Block Mode
|
||||
--
|
||||
-- ************************************************************************************************
|
||||
|
||||
-- ------------------------------------------------------------------------------------------------
|
||||
-- Move text up and down
|
||||
-- ------------------------------------------------------------------------------------------------
|
||||
keymap.set( "x", "J", ":move '>+1<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-k>", ":move '<-2<CR>gv-gv")
|
||||
|
||||
|
||||
-- Terminal --
|
||||
|
||||
-- ************************************************************************************************
|
||||
--
|
||||
-- Terminal
|
||||
--
|
||||
-- ************************************************************************************************
|
||||
|
||||
-- ------------------------------------------------------------------------------------------------
|
||||
-- Better terminal navigation
|
||||
-- ------------------------------------------------------------------------------------------------
|
||||
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-k>", "<C-\\><C-N><C-w>k")
|
||||
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
|
||||
-- ------------------------------------------------------------------------------------------------
|
||||
|
||||
-- nvim-tree
|
||||
keymap.set("n", "<leader>e", ":NvimTreeToggle<CR>")
|
||||
keymap.set("n", "<leader>e", ":NvimTreeToggle<CR>", {desc = "File browser"})
|
||||
|
||||
-- telescope
|
||||
--keymap.set("n", "<leader>ff", ":Telescope find_files<cr>" )
|
||||
keymap.set("n", "<leader>ff", ":Files<cr>" )
|
||||
keymap.set("n", "<leader>fs", ":Telescope live_grep<cr>" )
|
||||
keymap.set("n", "<leader>ff", ":Files<cr>" , {desc = "File find (internal)"})
|
||||
keymap.set("n", "<leader>fs", ":Telescope live_grep<cr>" , {desc = "File grep (internal)"} )
|
||||
keymap.set("n", "<leader>fg", ":Rg<cr>")
|
||||
keymap.set("n", "<leader>fb", ":Telescope buffers<cr>" )
|
||||
keymap.set("n", "<leader>fh", ":Telescope help_tags<cr>" )
|
||||
keymap.set("n", "<leader>fb", ":Telescope buffers<cr>" , {desc = "Buffer search"} )
|
||||
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>")
|
||||
|
||||
|
||||
--
|
||||
-- ------------------------------------------------------------------------------------------------
|
||||
-- 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 -->"} )
|
||||
|
||||
@@ -3,7 +3,9 @@ local opt = vim.opt
|
||||
-- [[ Font ]]
|
||||
--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:#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 ]]
|
||||
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.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
|
||||
--
|
||||
vim.o.timeout = true
|
||||
vim.o.timeoutlen = 300
|
||||
vim.o.mouse = ''
|
||||
-- ----------------------------------------------------------------------------
|
||||
vim.o.timeout = true
|
||||
vim.o.timeoutlen = 300
|
||||
vim.o.mouse = ''
|
||||
|
||||
+83
-53
@@ -1,8 +1,17 @@
|
||||
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
|
||||
-- ----------------------------------------------------------------------------
|
||||
-- ------------------------------------------------------------------------------------------------
|
||||
local install_path = fn.stdpath "data" .. "/site/pack/packer/start/packer.nvim"
|
||||
|
||||
if fn.empty(fn.glob(install_path)) > 0 then
|
||||
@@ -22,9 +31,9 @@ if fn.empty(fn.glob(install_path)) > 0 then
|
||||
]]
|
||||
end
|
||||
|
||||
-- ----------------------------------------------------------------------------
|
||||
-- ------------------------------------------------------------------------------------------------
|
||||
-- Autocommand that reloads neovim whenever you save the plugins.lua file
|
||||
-- ----------------------------------------------------------------------------
|
||||
-- ------------------------------------------------------------------------------------------------
|
||||
vim.cmd [[
|
||||
augroup packer_user_config
|
||||
autocmd!
|
||||
@@ -32,17 +41,17 @@ vim.cmd [[
|
||||
augroup end
|
||||
]]
|
||||
|
||||
-- ----------------------------------------------------------------------------
|
||||
-- ------------------------------------------------------------------------------------------------
|
||||
-- Use a protected call so we don't error out on first use
|
||||
-- ----------------------------------------------------------------------------
|
||||
-- ------------------------------------------------------------------------------------------------
|
||||
local status, packer = pcall(require, "packer")
|
||||
if not status then
|
||||
return
|
||||
end
|
||||
|
||||
-- ----------------------------------------------------------------------------
|
||||
-- ------------------------------------------------------------------------------------------------
|
||||
-- Have packer use a popup window
|
||||
-- ----------------------------------------------------------------------------
|
||||
-- ------------------------------------------------------------------------------------------------
|
||||
packer.init {
|
||||
display = {
|
||||
open_fn = function()
|
||||
@@ -51,34 +60,36 @@ packer.init {
|
||||
},
|
||||
}
|
||||
|
||||
-- ----------------------------------------------------------------------------
|
||||
-- ------------------------------------------------------------------------------------------------
|
||||
-- Install plugins
|
||||
-- ----------------------------------------------------------------------------
|
||||
-- ------------------------------------------------------------------------------------------------
|
||||
return packer.startup(function(use)
|
||||
|
||||
-- ------------------------------------------------------
|
||||
vim.tbl_islist = vim.islist
|
||||
|
||||
-- --------------------------------------------------------------------------------------------
|
||||
-- Have packer manage itself
|
||||
-- ------------------------------------------------------
|
||||
-- --------------------------------------------------------------------------------------------
|
||||
use "wbthomason/packer.nvim"
|
||||
|
||||
|
||||
use "lewis6991/impatient.nvim"
|
||||
|
||||
-- ----------------------------------------------------
|
||||
-- --------------------------------------------------------------------------------------------
|
||||
-- web devicons used by e.g.: nvim-tree, lualine, ...
|
||||
-- ----------------------------------------------------
|
||||
-- --------------------------------------------------------------------------------------------
|
||||
use "kyazdani42/nvim-web-devicons"
|
||||
|
||||
-- ----------------------------------------------------
|
||||
-- --------------------------------------------------------------------------------------------
|
||||
-- colorschemas
|
||||
-- ----------------------------------------------------
|
||||
-- --------------------------------------------------------------------------------------------
|
||||
use { "bluz71/vim-nightfly-colors", as = "nighfly" }
|
||||
use { "bluz71/vim-moonfly-colors", as = "moonfly" }
|
||||
use { "rebelot/kanagawa.nvim", as = "kanagawa"}
|
||||
|
||||
-- ----------------------------------------------------
|
||||
-- --------------------------------------------------------------------------------------------
|
||||
-- lualine (status line)
|
||||
-- ----------------------------------------------------
|
||||
-- --------------------------------------------------------------------------------------------
|
||||
use {
|
||||
"nvim-lualine/lualine.nvim",
|
||||
|
||||
@@ -87,9 +98,9 @@ return packer.startup(function(use)
|
||||
end
|
||||
}
|
||||
|
||||
-- --------------------------------------------------------------
|
||||
-- --------------------------------------------------------------------------------------------
|
||||
-- telescope
|
||||
-- --------------------------------------------------------------
|
||||
-- --------------------------------------------------------------------------------------------
|
||||
use {
|
||||
"nvim-telescope/telescope.nvim",
|
||||
-- branch = "0.1.x",
|
||||
@@ -106,9 +117,9 @@ return packer.startup(function(use)
|
||||
end
|
||||
}
|
||||
|
||||
-- ----------------------------------------------------
|
||||
-- --------------------------------------------------------------------------------------------
|
||||
-- nvim-tree
|
||||
-- ----------------------------------------------------
|
||||
-- --------------------------------------------------------------------------------------------
|
||||
use {
|
||||
"nvim-tree/nvim-tree.lua",
|
||||
|
||||
@@ -117,9 +128,9 @@ return packer.startup(function(use)
|
||||
end
|
||||
}
|
||||
|
||||
-- --------------------------------------------------------------
|
||||
-- -------------------------------------------------------------------------------------------
|
||||
-- autocompletion
|
||||
-- --------------------------------------------------------------
|
||||
-- -------------------------------------------------------------------------------------------
|
||||
use {
|
||||
"hrsh7th/nvim-cmp",
|
||||
|
||||
@@ -137,47 +148,45 @@ return packer.startup(function(use)
|
||||
end
|
||||
}
|
||||
|
||||
-- --------------------------------------------------------------
|
||||
-- --------------------------------------------------------------------------------------------
|
||||
-- autocompletion/snippets
|
||||
-- --------------------------------------------------------------
|
||||
-- --------------------------------------------------------------------------------------------
|
||||
use {
|
||||
"L3MON4D3/LuaSnip", -- Required
|
||||
"rafamadriz/friendly-snippets", -- Optional
|
||||
run = "make install_jsregexp"
|
||||
}
|
||||
|
||||
-- --------------------------------------------------------------
|
||||
-- --------------------------------------------------------------------------------------------
|
||||
-- bufferline - mz
|
||||
-- --------------------------------------------------------------
|
||||
-- --------------------------------------------------------------------------------------------
|
||||
use {
|
||||
"akinsho/bufferline.nvim",
|
||||
tag = "*",
|
||||
requires = "nvim-tree/nvim-web-devicons",
|
||||
|
||||
|
||||
-- vim.opt.termguicolors = true
|
||||
config = function()
|
||||
-- require("bufferline").setup{}
|
||||
require("mzpx.plug.bufferline")
|
||||
end
|
||||
|
||||
}
|
||||
|
||||
-- --------------------------------------------------------------
|
||||
-- --------------------------------------------------------------------------------------------
|
||||
-- fzf - mz
|
||||
-- --------------------------------------------------------------
|
||||
-- --------------------------------------------------------------------------------------------
|
||||
use {
|
||||
"junegunn/fzf.vim",
|
||||
requires = { 'junegunn/fzf', run = ':call fzf#install()' }
|
||||
}
|
||||
|
||||
-- --------------------------------------------------------------
|
||||
-- --------------------------------------------------------------------------------------------
|
||||
-- nvim-treesitter - mz
|
||||
-- --------------------------------------------------------------
|
||||
-- --------------------------------------------------------------------------------------------
|
||||
use {
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
branch = "master",
|
||||
run = ':TSUpdate', -- This automatically updates parsers on install/update
|
||||
}
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
run = function()
|
||||
local ts_update = require('nvim-treesitter.install').update({ with_sync = true })
|
||||
ts_update()
|
||||
end,
|
||||
}
|
||||
|
||||
-- --------------------------------------------------------------
|
||||
-- render-markdown - mz
|
||||
@@ -193,14 +202,15 @@ return packer.startup(function(use)
|
||||
end
|
||||
}
|
||||
|
||||
-- -------------------------------------------------------------
|
||||
|
||||
-- --------------------------------------------------------------------------------------------
|
||||
-- which-key
|
||||
-- -------------------------------------------------------------
|
||||
-- --------------------------------------------------------------------------------------------
|
||||
use "folke/which-key.nvim"
|
||||
|
||||
-- -------------------------------------------------------------
|
||||
-- --------------------------------------------------------------------------------------------
|
||||
-- toggle-fullscreen - 2026-05-31
|
||||
-- -------------------------------------------------------------
|
||||
-- --------------------------------------------------------------------------------------------
|
||||
-- use {
|
||||
-- "propet/toggle-fullscreen.nvim",
|
||||
-- config = function()
|
||||
@@ -208,24 +218,44 @@ return packer.startup(function(use)
|
||||
-- end
|
||||
-- }
|
||||
--
|
||||
-- -------------------------------------------------------------
|
||||
|
||||
-- --------------------------------------------------------------------------------------------
|
||||
-- maximizer - 2026-05-31
|
||||
-- -------------------------------------------------------------
|
||||
-- --------------------------------------------------------------------------------------------
|
||||
use {
|
||||
"0x00-ketsu/maximizer.nvim",
|
||||
config = function()
|
||||
"0x00-ketsu/maximizer.nvim",
|
||||
config = function()
|
||||
require("maximizer").setup {
|
||||
-- your configuration comes here
|
||||
-- or leave it empty to use the default settings
|
||||
-- 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.
|
||||
-- Put this at the end after all plugins.
|
||||
-- -------------------------------------------------------------------
|
||||
-- --------------------------------------------------------------------------------------------
|
||||
if PACKER_BOOTSTRAP then
|
||||
require("packer").sync()
|
||||
end
|
||||
|
||||
@@ -12,7 +12,8 @@ local custom_highlight =
|
||||
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, "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,
|
||||
|
||||
group = custom_highlight,
|
||||
|
||||
Executable
+17
@@ -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.
|
||||
}
|
||||
)
|
||||
|
||||
@@ -16,7 +16,8 @@ require('nvim-treesitter.configs').setup {
|
||||
|
||||
highlight = {
|
||||
enable = true, -- false will disable the whole extension
|
||||
additional_vim_regex_highlighting = false,
|
||||
disable = { "" }
|
||||
additional_vim_regex_highlighting = ture,
|
||||
},
|
||||
|
||||
indent = {
|
||||
|
||||
+27
-22
@@ -1,40 +1,45 @@
|
||||
require("which-key").setup {
|
||||
plugins = {
|
||||
marks = true, -- shows a list of your marks on ' and `
|
||||
registers = true, -- shows your registers on " in NORMAL or <C-r> in INSERT mode
|
||||
marks = true, -- shows a list of your marks on ' and `
|
||||
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
|
||||
-- No actual key bindings are created
|
||||
--
|
||||
spelling = {
|
||||
enabled = true, -- enabling this will show WhichKey when pressing z= to select spelling suggestions
|
||||
suggestions = 20, -- how many suggestions should be shown in the list?
|
||||
enabled = true, -- enabling this will show WhichKey when pressing
|
||||
-- z= to select spelling suggestions
|
||||
suggestions = 20, -- how many suggestions should be shown in the list?
|
||||
},
|
||||
presets = {
|
||||
operators = true, -- adds help for operators like d, y, ...
|
||||
motions = true, -- adds help for motions
|
||||
text_objects = true, -- help for text objects triggered after entering an operator
|
||||
windows = true, -- default bindings on <c-w>
|
||||
nav = true, -- misc bindings to work with windows
|
||||
z = true, -- bindings for folds, spelling and others prefixed with z
|
||||
g = true, -- bindings for prefixed with g
|
||||
operators = true, -- adds help for operators like d, y, ...
|
||||
motions = true, -- adds help for motions
|
||||
text_objects = true, -- help for text objects triggered after entering an operator
|
||||
windows = true, -- default bindings on <c-w>
|
||||
nav = true, -- misc bindings to work with windows
|
||||
z = true, -- bindings for folds, spelling and others prefixed with z
|
||||
g = true, -- bindings for prefixed with g
|
||||
},
|
||||
},
|
||||
operators = { gc = "Comments" },
|
||||
icons = {
|
||||
breadcrumb = "»", -- symbol used in the command line area that shows your active key combo
|
||||
separator = "➜", -- symbol used between a key and it's label
|
||||
group = "+", -- symbol prepended to a group
|
||||
breadcrumb = "»", -- symbol used in the command line area that shows your active key combo
|
||||
separator = "➜", -- symbol used between a key and it's label
|
||||
group = "+", -- symbol prepended to a group
|
||||
},
|
||||
popup_mappings = {
|
||||
scroll_down = "<c-d>", -- binding to scroll down inside the popup
|
||||
scroll_up = "<c-u>", -- binding to scroll up 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
|
||||
},
|
||||
window = {
|
||||
border = "none", -- none, single, double, shadow
|
||||
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.
|
||||
padding = { 1, 2, 1, 2 }, -- 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.
|
||||
border = "double", -- none, single, double, shadow
|
||||
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 = { 5, 5, 5, 5 }, -- extra window margin [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
|
||||
zindex = 1000, -- positive value to position WhichKey above other floating windows.
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user