Something went wrong. Try again.
This repository has no description
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321--[-- ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⠀⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀-- ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⡤⠶⠚⠉⢉⣩⠽⠟⠛⠛⠛⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀-- ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⠞⠉⠀⢀⣠⠞⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀-- ⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡞⠁⠀⠀⣰⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀-- ⠀⠀⠀⠀⠀⠀⠀⠀⠀⣾⠀⠀⠀⡼⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⣠⡤⠤⠄⢤⣄⣀⣀⣀⠀⠀⠀⠀⠀⠀⠀⠀-- ⠀⠀⠀⠀⠀⠀⠀⠀⠀⡇⠀⠀⢰⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⠴⠒⠋⠉⠀⠀⠀⣀⣤⠴⠒⠋⠉⠉⠀⠀⠀⠀⠀⠀⠀⠀-- ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠻⡄⠀⠀⣧⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⠞⢳⡄⢀⡴⠚⠉⠀⠀⠀⠀⠀⣠⠴⠚⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀-- ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⢦⡀⠘⣧⠀⠀⠀⠀⠀⠀⠀⠀⣰⠃⠀⠀⠹⡏⠀⠀⠀⠀⠀⣀⣴⠟⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀-- ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠳⢬⣳⣄⣠⠤⠤⠶⠶⠒⠋⠀⠀⠀⠀⠹⡀⠀⠀⠀⠀⠈⠉⠛⠲⢦⣄⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀-- ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⠤⠖⠋⠉⠉⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠱⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⢳⠦⣄⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀-- ⠀⠀⠀⠀⠀⠀⠀⠀⣠⠖⠋⠀⠀⠀⣠⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢱⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⠀⢃⠈⠙⠲⣄⡀⠀⠀⠀⠀⠀⠀⠀-- ⠀⠀⠀⠀⠀⠀⢠⠞⠁⠀⠀⠀⢀⢾⠃⠀⠀⠀⠀⠀⠀⠀⠀⢢⠀⠀⠀⠀⠀⠀⠀⢣⠀⠀⠀⠀⠀⠀⠀⠀⠀⣹⠮⣄⠀⠀⠀⠙⢦⡀⠀⠀⠀⠀⠀-- ⠀⠀⠀⠀⠀⣰⠋⠀⠀⢀⡤⡴⠃⠈⠦⣀⠀⠀⠀⠀⠀⠀⢀⣷⢸⠀⠀⠀⠀⢀⣀⠘⡄⠤⠤⢤⠔⠒⠂⠉⠁⠀⠀⠀⠑⢄⡀⠀⠀⠙⢦⡀⠀⠀⠀-- ⠀⠀⠀⠀⣼⠃⠀⠀⢠⣞⠟⠀⠀⠀⡄⠀⠉⠒⠢⣤⣤⠄⣼⢻⠸⠀⠀⠀⠀⠉⢤⠀⢿⡖⠒⠊⢦⠤⠤⣀⣀⡀⠀⠀⠀⠈⠻⡝⠲⢤⣀⠙⢦⠀⠀-- ⠀⠀⠀⢰⠃⠀⠀⣴⣿⠎⠀⠀⢀⣜⠤⠄⢲⠎⠉⠀⠀⡼⠸⠘⡄⡇⠀⠀⠀⠀⢸⠀⢸⠘⢆⠀⠘⡄⠀⠀⠀⢢⠉⠉⠀⠒⠒⠽⡄⠀⠈⠙⠮⣷⡀-- ⠀⠀⠀⡟⠀⠀⣼⢻⠧⠐⠂⠉⡜⠀⠀⡰⡟⠀⠀⠀⡰⠁⡇⠀⡇⡇⠀⠀⠀⠀⢺⠇⠀⣆⡨⢆⠀⢽⠀⠀⠀⠈⡷⡄⠀⠀⠀⠀⠹⡄⠀⠀⠀⠈⠁-- ⠀⠀⢸⠃⠀⠀⢃⠎⠀⠀⠀⣴⠃⠀⡜⠹⠁⠀⠀⡰⠁⢠⠁⠀⢸⢸⠀⠀⠀⢠⡸⢣⠔⡏⠀⠈⢆⠀⣇⠀⠀⠀⢸⠘⢆⠀⠀⠀⠀⢳⠀⠀⠀⠀⠀-- ⠀⠀⢸⠀⠀⠀⡜⠀⠀⢀⡜⡞⠀⡜⠈⠏⠀⠈⡹⠑⠒⠼⡀⠀⠀⢿⠀⠀⠀⢀⡇⠀⢇⢁⠀⠀⠈⢆⢰⠀⠀⠀⠈⡄⠈⢢⠀⠀⠀⠈⣇⠀⠀⠀⠀-- ⠀⠀⢸⡀⠀⢰⠁⠀⢀⢮⠀⠇⡜⠀⠘⠀⠀⢰⠃⠀⠀⡇⠈⠁⠀⢘⡄⠀⠀⢸⠀⠀⣘⣼⠤⠤⠤⣈⡞⡀⠀⠀⠀⡇⠰⡄⢣⡀⠀⠀⢻⠀⠀⠀⠀-- ⠀⠀⠈⡇⠀⡜⠀⢀⠎⢸⢸⢰⠁⠀⠄⠀⢠⠃⠀⠀⢸⠀⠀⠀⠀⠀⡇⠀⠀⡆⠀⠀⣶⣿⡿⠿⡛⢻⡟⡇⠀⠀⠀⡇⠀⣿⣆⢡⠀⠀⢸⡇⠀⠀⠀-- ⠀⠀⢠⡏⠀⠉⢢⡎⠀⡇⣿⠊⠀⠀⠀⢠⡏⠀⠀⠀⠎⠀⠀⠀⠀⠀⡇⠀⡸⠀⠀⠀⡇⠀⢰⡆⡇⢸⢠⢹⠀⠀⠀⡇⠀⢹⠈⢧⣣⠀⠘⡇⠀⠀⠀-- ⠀⠀⢸⡇⠀⠀⠀⡇⠀⡇⢹⠀⠀⠀⢀⡾⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⡇⢠⠃⠀⠀⠠⠟⡯⣻⣇⢃⠇⢠⠏⡇⠀⢸⡆⠀⢸⠀⠈⢳⡀⠀⡇⠀⠀⠀-- ⠀⠀⠀⣇⠀⡔⠋⡇⠀⢱⢼⠀⠀⡂⣼⡇⢹⣶⣶⣶⣤⣤⣀⠀⠀⠀⣇⠇⠀⠀⠀⠀⣶⡭⢃⣏⡘⠀⡎⠀⠇⠀⡾⣷⠀⣼⠀⠀⠀⢻⡄⡇⠀⠀⠀-- ⠀⠀⠀⣹⠜⠋⠉⠓⢄⡏⢸⠀⠀⢳⡏⢸⠹⢀⣉⢭⣻⡽⠿⠛⠓⠀⠋⠀⠀⠀⠀⠀⠘⠛⠛⠓⠀⡄⡇⠀⢸⢰⡇⢸⡄⡟⠀⠀⠀⠀⢳⡇⠀⠀⠀-- ⠀⣠⠞⠁⠀⠀⠀⠀⠀⢙⠌⡇⠀⣿⠁⠀⡇⡗⠉⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠰⠀⠀⠀⠀⠀⠀⠁⠁⠀⢸⣼⠀⠈⣇⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀-- ⢸⠁⠀⠀⢀⡠⠔⠚⠉⠉⢱⣇⢸⢧⠀⠀⠸⣱⠀⠀⠀⠀⠀⠀⠀⠀⣀⣀⡤⠦⡔⠀⠀⠀⠀⠀⢀⡼⠀⠀⣼⡏⠀⠀⢹⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀-- ⢸⠀⠀⠀⠋⠀⠀⠀⢀⡠⠤⣿⣾⣇⣧⠀⠀⢫⡆⠀⠀⠀⠀⠀⠀⠀⢨⠀⠀⣠⠇⠀⠀⢀⡠⣶⠋⠀⠀⡸⣾⠁⠀⠀⠈⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀-- ⢸⡄⠀⠀⠀⠀⠠⠊⠁⠀⠀⢸⢃⠘⡜⡵⡀⠈⢿⡱⢲⡤⠤⢀⣀⣀⡀⠉⠉⣀⡠⡴⠚⠉⣸⢸⠀⠀⢠⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀-- ⠀⢧⠀⠀⠀⠀⠀⠀⠀⣀⠤⠚⠚⣤⣵⡰⡑⡄⠀⢣⡈⠳⡀⠀⠀⠀⢨⡋⠙⣆⢸⠀⠀⣰⢻⡎⠀⠀⡎⡇⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀-- ⠀⠈⢷⡀⠀⠀⠀⠀⠀⠁⠀⠀⠀⡸⢌⣳⣵⡈⢦⡀⠳⡀⠈⢦⡀⠀⠘⠏⠲⣌⠙⢒⠴⡧⣸⡇⠀⡸⢸⠇⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀-- ⠀⠀⢠⣿⠢⡀⠀⠀⠀⠠⠄⡖⠋⠀⠀⠙⢿⣳⡀⠑⢄⠹⣄⡀⠙⢄⡠⠤⠒⠚⡖⡇⠀⠘⣽⡇⢠⠃⢸⢀⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀-- ⠀⠀⣾⠃⠀⠀⠀⠀⠀⢀⡼⣄⠀⠀⠀⠀⠀⠑⣽⣆⠀⠑⢝⡍⠒⠬⢧⣀⡠⠊⠀⠸⡀⠀⢹⡇⡎⠀⡿⢸⠇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀-- ⠀⡼⠁⠀⠀⠀⠀⠀⠀⢀⠻⣺⣧⠀⠀⠀⠰⢢⠈⢪⡷⡀⠀⠙⡄⠀⠀⠱⡄⠀⠀⠀⢧⠀⢸⡻⠀⢠⡇⣾⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀-- ⢰⠇⠀⠀⠀⠀⠀⠀⠀⢸⠀⡏⣿⠀⠀⠀⠀⢣⢇⠀⠑⣄⠀⠀⠸⡄⠀⠀⠘⡄⠀⠀⠸⡀⢸⠁⠀⡾⢰⡏⢳⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀---- Meisterlala's NeoVim config--]
-- [[ Leader Key Configuration ]]-- Set <space> as the leader key for custom shortcuts throughout Neovim.-- See :help mapleader and :help maplocalleader for details.vim.g.mapleader = ' 'vim.g.maplocalleader = ' '
-- [[ Language and Encoding ]]-- Set language to English with UTF-8 support for proper Unicode rendering-- See :help :languagevim.cmd 'language en_US.UTF-8'
-- Set to true if you have a Nerd Font installed and selected in the terminal-- Used to determine icon style in plugin UIs (see below)vim.g.have_nerd_font = true
-- [[ Editor and UI Options ]]
-- Basic settingsvim.opt.number = true -- Line numbersvim.opt.relativenumber = false -- Relative line numbersvim.opt.cursorline = true -- Highlight current linevim.opt.wrap = true -- wrap linesvim.opt.scrolloff = 10 -- Keep 10 lines above/below cursorvim.opt.sidescrolloff = 8 -- Keep 8 columns left/right of cursor
-- Indentationvim.opt.tabstop = 2 -- Tab widthvim.opt.shiftwidth = 2 -- Indent widthvim.opt.softtabstop = 2 -- Soft tab stopvim.opt.expandtab = true -- Use spaces instead of tabsvim.opt.smartindent = true -- Smart auto-indentingvim.opt.autoindent = true -- Copy indent from current line
-- Search settingsvim.opt.ignorecase = true -- Case insensitive searchvim.opt.smartcase = true -- Case sensitive if uppercase in searchvim.opt.hlsearch = true -- highlight search resultsvim.opt.incsearch = true -- Show matches as you type
-- Visual settingsvim.opt.termguicolors = true -- Enable 24-bit colorsvim.opt.signcolumn = 'yes' -- Always show sign columnvim.opt.list = true -- Show tabs, trailing spaces, etc.vim.opt.listchars = { tab = '» ', trail = '·', nbsp = '␣' }vim.opt.colorcolumn = '' -- Dont show a line at 100 Characters longvim.opt.showmatch = true -- Highlight matching bracketsvim.opt.matchtime = 2 -- How long to show matching bracketvim.opt.cmdheight = 1 -- Command line heightvim.opt.completeopt = 'menuone,noinsert,noselect' -- Completion optionsvim.opt.showmode = true -- Don't show mode in command linevim.opt.pumheight = 10 -- Popup menu heightvim.opt.pumblend = 10 -- Popup menu transparencyvim.opt.winblend = 0 -- Floating window transparencyvim.opt.conceallevel = 0 -- Don't hide markupvim.opt.concealcursor = '' -- Don't hide cursor line markup-- vim.opt.lazyredraw = true -- Don't redraw during macrosvim.opt.synmaxcol = 300 -- Syntax highlighting limitvim.cmd.syntax 'off' -- turn off syntax
-- File handlingvim.opt.backup = true -- Don't create backup filesvim.opt.writebackup = true -- Don't create backup before writingvim.opt.backupdir = vim.fn.expand '~/.vim/backdir' -- backup directorvim.opt.swapfile = true -- Don't create swap filesvim.opt.directory = vim.fn.expand '~/.vim/swapdir' -- Swap directorvim.opt.undofile = true -- Persistent undovim.opt.undolevels = 50000 -- Amount of undus to savevim.opt.undodir = vim.fn.expand '~/.vim/undodir' -- Undo directoryvim.opt.updatetime = 300 -- Faster completion and hover (CursorHold delay)vim.opt.timeoutlen = 500 -- Key timeout durationvim.opt.ttimeoutlen = 0 -- Key code timeoutvim.opt.autoread = true -- Auto reload files changed outside vimvim.opt.autowrite = false -- Don't auto savevim.opt.confirm = true -- Prompt to save changes instead of failing
-- Behavior settingsvim.opt.hidden = true -- Allow hidden buffersvim.opt.errorbells = false -- No error bellsvim.opt.backspace = 'indent,eol,start' -- Better backspace behaviorvim.opt.autochdir = false -- Don't auto change directoryvim.opt.iskeyword:append '-' -- Treat dash as part of wordvim.opt.selection = 'exclusive' -- Selection behaviorvim.opt.mouse = 'a' -- Enable mouse supportvim.opt.modifiable = true -- Allow buffer modificationsvim.opt.encoding = 'UTF-8' -- Set encodingvim.opt.splitright = true -- Vertical splits open to the rightvim.opt.splitbelow = true -- Horizontal splits open below
vim.opt.laststatus = 3
-- [[ Clipboard Integration (optional) ]]--vim.schedule(function()-- vim.opt.clipboard = 'unnamedplus' -- Uncomment to use the system clipboard--end)
-- Disable basic providersvim.g.loaded_node_provider = 0vim.g.loaded_perl_provider = 0vim.g.loaded_python3_provider = 0vim.g.loaded_ruby_provider = 0
-- [[ Basic Keymaps ]]-- See :help vim.keymap.set-- Mac workaroundvim.keymap.set('i', '<M-7>', '|')
-- Set up config sync via Lua module (see lua/sync.lua)local nimv_sync = require 'sync'vim.keymap.set('n', '<leader>u', nimv_sync.commit_and_push_config_changes, { desc = '[U]pload the nvim config to GitHub' })
-- Use my own powershell stuffrequire 'pwsh_lsp'
-- Pressing <Esc> in normal mode will clear search highlightingvim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')
-- Diagnostic keymaps-- <leader>q: Open list of diagnostics in location list (see :help diagnostic)vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagnostic [Q]uickfix list' })
-- Exit terminal mode with Escvim.keymap.set('t', '<Esc><Esc>', '<C-\\><C-n>', { desc = 'Exit terminal mode' })
-- Close and Save with leadervim.keymap.set('n', '<leader>m', '<cmd>update<CR>', { desc = 'Write File', silent = true })vim.keymap.set('n', '<leader>M', '<cmd>w !sudo tee %:p:S >/dev/null | setlocal nomodified<CR>', { desc = 'Write File with sudo' })vim.keymap.set('n', '<leader>n', '<cmd>quit<CR>', { desc = 'Quit File', silent = true })vim.keymap.set('n', '<leader>N', '<cmd>quitall<CR>', { desc = 'Quit Neovim', silent = true })
-- Keybinds for fast window navigation with Ctrl+Arrow keys-- See :help wincmd for details on window commandsvim.keymap.set('n', '<C-left>', '<C-w><C-h>', { desc = 'Move focus to the left window' })vim.keymap.set('n', '<C-right>', '<C-w><C-l>', { desc = 'Move focus to the right window' })vim.keymap.set('n', '<C-down>', '<C-w><C-j>', { desc = 'Move focus to the lower window' })vim.keymap.set('n', '<C-up>', '<C-w><C-k>', { desc = 'Move focus to the upper window' })
-- Keybind for scrolling up or down with page-up and page-downvim.keymap.set('n', '<PageUp>', '<C-u>', { desc = 'Scroll up half a page' })vim.keymap.set('n', '<PageDown>', '<C-d>', { desc = 'Scroll down half a page' })
-- Swap * and # (Thats the moving to next occurance of the word)vim.keymap.set('n', '*', '#', { desc = 'search backward for the identifier under the cursor', noremap = true })vim.keymap.set('n', '#', '*', { desc = 'search forward for the identifier under the cursor', noremap = true })vim.keymap.set('n', 'g*', 'g#', { desc = 'search backward for the identifier under the cursor', noremap = true })vim.keymap.set('n', 'g#', 'g*', { desc = 'search forward for the identifier under the cursor', noremap = true })
-- Open a new tab with ctl-wtvim.keymap.set('n', '<C-w>t', '<cmd>tabnew<CR>', { desc = 'Open new tab' })
-- Insert current date and time in format yyyy-mm-dd HH:MMvim.keymap.set('n', '<leader>did', function() local date = tostring(os.date '%Y-%m-%d %H:%M') -- get current date and time vim.api.nvim_put({ date }, 'c', true, true) -- put it below the current lineend, { desc = '[D]ate and time' })
-- Yank to system clipboard with leader+yvim.keymap.set({ 'n', 'v' }, '<leader>y', [["+y]], { desc = '[Y]ank to system clipboard' })
-- Change fold, to toggle on zzvim.keymap.set('n', 'zz', 'za', { desc = 'Toggle fold at current cursor position' })
-- [[ Custom Tabline ]]-- Custom tab namesvim.o.tabline = '%!v:lua.MyTabline()'
function _G.MyTabline() local s = '' for i = 1, vim.fn.tabpagenr '$' do local winnr = vim.fn.tabpagewinnr(i) local buflist = vim.fn.tabpagebuflist(i) local bufnr = buflist[winnr] local bufname = vim.fn.fnamemodify(vim.fn.bufname(bufnr), ':t')
-- Here you decide how the tab should be named if bufname == '' then bufname = '[No Name]' end
s = s .. '%' .. i .. 'T' .. ' ' .. bufname .. ' ' end return send-- Keybinds for switching tabs with Ctrl+1-9for i = 1, 9 do vim.keymap.set('n', '<C-' .. i .. '>', function() vim.cmd('tabn ' .. i) -- go to tab i end, { noremap = true, silent = true })end
-- [[ Basic Autocommands ]]-- See :help lua-guide-autocommands for details on autocommand usage.
-- Jump to previous tab when closing a tabvim.api.nvim_create_autocmd('TabClosed', { callback = function() -- always move back one tab when a tab closes local prev = vim.fn.tabpagenr() - 1 if prev >= 1 then vim.cmd('tabnext ' .. prev) end end,})
-- Highlight yanked (copied) text briefly for visual feedback-- Try it by selecting text in normal mode and pressing "yap"-- See :help vim.highlight.on_yank()vim.api.nvim_create_autocmd('TextYankPost', { desc = 'Highlight when yanking (copying) text', group = vim.api.nvim_create_augroup('kickstart-highlight-yank', { clear = true }), callback = function() vim.highlight.on_yank() end,})
-- [[ Automatically jump to last opened line when opening a file ]]-- Restore cursor positionvim.api.nvim_create_autocmd({ 'BufReadPost' }, { desc = 'Jump to the last Position when the file was closed', pattern = { '*' }, callback = function() vim.api.nvim_exec2('silent! normal! g`"zv', { output = false }) end,})
-- [[ Install and Bootstrap `lazy.nvim` Plugin Manager ]]-- This block ensures lazy.nvim is installed to manage all other plugins.-- See :help lazy.nvim.txt or https://github.com/folke/lazy.nvim for more infolocal lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim'if not (vim.uv or vim.loop).fs_stat(lazypath) then local lazyrepo = 'https://github.com/folke/lazy.nvim.git' local out = vim.fn.system { 'git', 'clone', '--filter=blob:none', '--branch=stable', lazyrepo, lazypath } if vim.v.shell_error ~= 0 then error('Error cloning lazy.nvim:\n' .. out) endend ---@diagnostic disable-next-line: undefined-fieldvim.opt.rtp:prepend(lazypath)
-- [[ Load Encrypted Secrets ]]-- Auto-load secrets if password is set and encrypted file exists-- Use :SecretManager set <password> to set password, then :SecretManager loadpcall(function() require('secrets.manager').auto_load()end)
-- [[ Configure and Load Plugins with lazy.nvim ]]---- All actual plugin specs are imported from lua/plugins/-- Icons are set based on Nerd Font status above for best compatibility.require('lazy').setup({ { import = 'plugins', },}, { checker = { enabled = true, -- Enable automatic plugin update checks notify = false, }, change_detection = { notify = true, -- Don't show notification when plugin settings change }, ui = { icons = { cmd = '⌘', config = '🛠', event = '📅', ft = '📂', init = '⚙', keys = '🗝', plugin = '🔌', runtime = '💻', require = '🌙', source = '📄', start = '🚀', task = '📌', lazy = '💤 ', }, }, rocks = { enabled = false, hererocks = false },})
-- vim: ts=2 sts=2 sw=2 et