move to new repo

This commit is contained in:
tumillanino
2026-03-24 20:17:22 +11:00
parent 083b57c87b
commit 35bcba335a
1910 changed files with 161640 additions and 41 deletions

View File

@@ -0,0 +1,8 @@
-- Autocmds are automatically loaded on the VeryLazy event
-- Default autocmds that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/autocmds.lua
--
-- Add any additional autocmds here
-- with `vim.api.nvim_create_autocmd`
--
-- Or remove existing autocmds by their group name (which is prefixed with `lazyvim_` for the defaults)
-- e.g. vim.api.nvim_del_augroup_by_name("lazyvim_wrap_spell")

View File

@@ -0,0 +1,84 @@
-- Keymaps are automatically loaded on the VeryLazy event
-- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua
-- Add any additional keymaps here
--
-- set leader key to space
vim.g.mapleader = " "
local keymap = vim.keymap -- for conciseness
---------------------
-- General Keymaps -------------------
-- use jk to exit insert mode
keymap.set("i", "jk", "<ESC>", { desc = "Exit insert mode with jk" })
--make navigation a bit more logical
keymap.set("n", "1", "0", { desc = "Jump to beginning of line" })
keymap.set("n", "0", "$", { desc = "jump to end of line" })
--same navigation but for visual mode
keymap.set("v", "1", "0", { desc = "Jump to beginning of line" })
keymap.set("v", "0", "$", { desc = "jump to end of line" })
--make yanking and deleting whole words more logical
keymap.set("n", "yw", "yiw", { desc = "Yanks current word under cursor" })
keymap.set("n", "ye", "yw", { desc = "Yanks from cursor placement to the end of the word" })
--make yanking and deleting whole words more logical
keymap.set("v", "yw", "yiw", { desc = "Yanks current word under cursor" })
keymap.set("v", "ye", "yw", { desc = "Yanks from cursor placement to the end of the word" })
--make yanking and deleting whole words more logical
keymap.set("n", "dw", "diw", { desc = "Deletes current word under cursor" })
keymap.set("n", "de", "dw", { desc = "Deletes from cursor placement to the end of the word" })
--make yanking and deleting whole words more logical
keymap.set("v", "dw", "diw", { desc = "Deletes current word under cursor" })
keymap.set("v", "de", "dw", { desc = "Deletes from cursor placement to the end of the word" })
-- clear search highlights
keymap.set("n", "<leader>nh", ":nohl<CR>", { desc = "Clear search highlights" })
-- fix control V keymap
--keymap.set("n","<leader>vl","C-v", { desc = "visual in start of line"} )
-- delete single character without copying into register
-- keymap.set("n", "x", '"_x')
-- increment/decrement numbers
keymap.set("n", "<leader>+", "<C-a>", { desc = "Increment number" }) -- increment
keymap.set("n", "<leader>-", "<C-x>", { desc = "Decrement number" }) -- decrement
-- window management
keymap.set("n", "<leader>sv", "<C-w>v", { desc = "Split window vertically" }) -- split window vertically
keymap.set("n", "<leader>sh", "<C-w>s", { desc = "Split window horizontally" }) -- split window horizontally
keymap.set("n", "<leader>se", "<C-w>=", { desc = "Make splits equal size" }) -- make split windows equal width & height
keymap.set("n", "<leader>sx", "<cmd>close<CR>", { desc = "Close current split" }) -- close current split window
keymap.set("n", "<leader>to", "<cmd>tabnew<CR>", { desc = "Open new tab" }) -- open new tab
keymap.set("n", "<leader>tx", "<cmd>tabclose<CR>", { desc = "Close current tab" }) -- close current tab
keymap.set("n", "<leader>tn", "<cmd>tabn<CR>", { desc = "Go to next tab" }) -- go to next tab
keymap.set("n", "<leader>tp", "<cmd>tabp<CR>", { desc = "Go to previous tab" }) -- go to previous tab
keymap.set("n", "<leader>tf", "<cmd>tabnew %<CR>", { desc = "Open current buffer in new tab" }) -- move current buffer to new tab
keymap.set("n", "[", "}", { desc = "next paragraph down" })
keymap.set("n", "]", "{", { desc = "next paragraph up" })
--terminal mode keymap
keymap.set("t", "jk", "<C-\\><C-N>")
--set focus back to opened file
keymap.set("n", "<leader>fe", "<C-w>l", { noremap = true, silent = true })
keymap.set("n", "<leader>vb", "<C-q>", { desc = "visual block because control v is used by paste" })
--refactor keymaps
keymap.set("x", "<leader>re", ":Refactor extract<CR> ")
keymap.set("x", "<leader>rf", ":Refactor extract_to_file <CR>")
keymap.set("x", "<leader>rv", ":Refactor extract_var <CR>")
keymap.set({ "n", "x" }, "<leader>ri", ":Refactor inline_var<CR>")
keymap.set("n", "<leader>rI", ":Refactor inline_func<CR>")
keymap.set("n", "<leader>rb", ":Refactor extract_block<CR>")
keymap.set("n", "<leader>rbf", ":Refactor extract_block_to_file<CR>")

View File

@@ -0,0 +1,53 @@
local 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
vim.api.nvim_echo({
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
{ out, "WarningMsg" },
{ "\nPress any key to exit..." },
}, true, {})
vim.fn.getchar()
os.exit(1)
end
end
vim.opt.rtp:prepend(lazypath)
require("lazy").setup({
spec = {
-- add LazyVim and import its plugins
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
-- import/override with your plugins
{ import = "plugins" },
},
defaults = {
-- By default, only LazyVim plugins will be lazy-loaded. Your custom plugins will load during startup.
-- If you know what you're doing, you can set this to `true` to have all your custom plugins lazy-loaded by default.
lazy = false,
-- It's recommended to leave version=false for now, since a lot the plugin that support versioning,
-- have outdated releases, which may break your Neovim install.
version = false, -- always use the latest git commit
-- version = "*", -- try installing the latest stable version for plugins that support semver
},
install = { colorscheme = { "tokyonight", "habamax" } },
checker = {
enabled = true, -- check for plugin updates periodically
notify = false, -- notify on update
}, -- automatically check for plugin updates
performance = {
rtp = {
-- disable some rtp plugins
disabled_plugins = {
"gzip",
-- "matchit",
-- "matchparen",
-- "netrwPlugin",
"tarPlugin",
"tohtml",
"tutor",
"zipPlugin",
},
},
},
})

View File

@@ -0,0 +1,3 @@
-- Options are automatically loaded before lazy.nvim startup
-- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua
-- Add any additional options here