Initial commit

This commit is contained in:
Asdam9
2026-04-14 22:48:18 +02:00
parent dea140ace7
commit 827124afdb
35 changed files with 3999 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
require("navi")
require('lz.n').load('plugins')

View File

@@ -0,0 +1,10 @@
function ColorMyPencils(color)
require('kanagawa').setup({
transparent = true,
})
color = color or "kanagawa"
vim.cmd.colorscheme(color)
end
ColorMyPencils()

View File

@@ -0,0 +1,7 @@
require("navi.remap")
require("navi.set")
require("navi.colors")
--require("navi.lazy")

View File

@@ -0,0 +1,62 @@
-- Bootstrap lazy.nvim
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)
return require('lazy').setup({
{
'nvim-telescope/telescope.nvim', tag = '0.1.8',
-- or , branch = '0.1.x',
dependencies = { {'nvim-lua/plenary.nvim'} }
},
"rebelot/kanagawa.nvim",
{
'nvim-treesitter/nvim-treesitter',
build = ':TSUpdate'
},
'nvim-treesitter/playground',
'theprimeagen/harpoon',
'mbbill/undotree',
'tpope/vim-fugitive',
--'github/copilot.vim',
--'vimwiki/vimwiki',
{
"supermaven-inc/supermaven-nvim",
config = function()
require("supermaven-nvim").setup({})
end,
},
{
'VonHeikemen/lsp-zero.nvim',
branch = 'v3.x',
dependencies = {
{'neovim/nvim-lspconfig'},
{'williamboman/mason.nvim'},
{'williamboman/mason-lspconfig.nvim'},
{'hrsh7th/nvim-cmp'},
{'hrsh7th/cmp-buffer'},
{'hrsh7th/cmp-path'},
{'saadparwaiz1/cmp_luasnip'},
{'hrsh7th/cmp-nvim-lsp'},
{'hrsh7th/cmp-nvim-lua'},
{'L3MON4D3/LuaSnip'},
}
},
{
'serenevoid/kiwi.nvim',
dependencies = { {'nvim-lua/plenary.nvim'} }
},
})

View File

@@ -0,0 +1,27 @@
vim.g.mapleader = " "
vim.keymap.set("n", "<leader>pv", vim.cmd.Ex)
vim.keymap.set("n", "<F5>", ":w! | !compiler %<CR>")
vim.keymap.set("n", "<leader>u", vim.cmd.UndotreeToggle)
vim.keymap.set("v", "J", ":m '>+1<CR>gv=gv")
vim.keymap.set("v", "K", ":m '<-2<CR>gv=gv")
vim.keymap.set("n", "J", "mzJ`z")
vim.keymap.set("n", "<C-d>", "<C-d>zz")
vim.keymap.set("n", "<C-u>", "<C-u>zz")
vim.keymap.set("n", "n", "nzzzv")
vim.keymap.set("n", "N", "Nzzzv")
--vim.keymap.set("x", "<leader>p", "\"_dP")
vim.keymap.set("n", "<leader>y", "\"+y")
vim.keymap.set("v", "<leader>y", "\"+y")
vim.keymap.set("n", "<leader>Y", "\"+Y")
vim.keymap.set("n", "Q", "<nop>")
vim.keymap.set("n", "<leader>s", ":%s/\\<<C-r><C-w>\\>/<C-r><C-w>/gI<Left><Left><Left>")

View File

@@ -0,0 +1,33 @@
vim.opt.nu = true
vim.opt.relativenumber = true
vim.cmd("autocmd BufEnter * setlocal formatoptions-=cro") -- No good way of doing this with lua
vim.opt.tabstop = 4
vim.opt.softtabstop = 4
vim.opt.shiftwidth = 4
vim.opt.expandtab = true
vim.opt.smartindent = true
vim.opt.smartcase = true
vim.opt.ignorecase = true
vim.opt.wrap = false
vim.opt.updatetime = 300
vim.opt.termguicolors = true
vim.opt.mouse = "a"
vim.opt.cursorline = true
vim.opt.pumheight = 16
vim.opt.winborder = "single"
vim.opt.swapfile = false
vim.opt.backup = false
vim.opt.undodir = os.getenv("HOME") .. "/.vim/undodir"
vim.opt.undofile = true
vim.opt.hlsearch = false
vim.opt.incsearch = true
vim.opt.termguicolors = true
vim.opt.scrolloff = 8
vim.opt.scroll = 6
vim.opt.signcolumn = "yes"
vim.opt.isfname:append("@-@")
vim.opt.updatetime = 50
vim.opt.colorcolumn = "80"
vim.g.mapleader = " "

View File

@@ -0,0 +1,6 @@
return {
"vim-fugitive",
after = function()
vim.keymap.set("n", "<leader>gs", vim.cmd.Git)
end
}

View File

@@ -0,0 +1,7 @@
return {
"undotree",
after = function ()
vim.keymap.set("n", "<leader>u", vim.cmd.UndotreeToggle)
vim.g.undotree_UndoDir = ".local/share/nvim/"
end
}