feat: Initial nvim configs

This commit is contained in:
2026-08-18 21:47:15 +01:00
commit 6bc5875bad
12 changed files with 124 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
require("config.options")
require("config.keymaps")
-- Lazyvim
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
"--branch=stable",
lazypath,
})
end
vim.opt.rtp:prepend(lazypath)
require("lazy").setup({
spec = {
{ import = "plugins" }
},
})
+14
View File
@@ -0,0 +1,14 @@
{
"blink.cmp": { "branch": "main", "commit": "e116ff9c5c1c2ed6bcdb2e0a6e547099876a8116" },
"blink.lib": { "branch": "main", "commit": "c8fdc12c8a2fab6cf786dd7141a283f8079f902b" },
"crates.nvim": { "branch": "main", "commit": "694357861ec9ebf12475ddcdd04ea45a0923c32d" },
"gruvbox.nvim": { "branch": "main", "commit": "154eb5ff5b96d0641307113fa385eaf0d36d9796" },
"lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" },
"lualine.nvim": { "branch": "master", "commit": "221ce6b2d999187044529f49da6554a92f740a96" },
"nvim-autopairs": { "branch": "master", "commit": "7b9923abad60b903ece7c52940e1321d39eccc79" },
"nvim-lspconfig": { "branch": "master", "commit": "fbaef6156f9ad65790931ab543ab1dfec57bbec7" },
"nvim-tree.lua": { "branch": "master", "commit": "b2aadda94b107480c48e548d6db51c6840b7b33c" },
"nvim-web-devicons": { "branch": "master", "commit": "2ae6958df7ced50baac5035cec0c15799eedfbf7" },
"rustaceanvim": { "branch": "main", "commit": "58172f8275ccf66e5d771e26867a1cf908b4fc1b" },
"vim-lastplace": { "branch": "master", "commit": "e58cb0df716d3c88605ae49db5c4741db8b48aa9" }
}
+3
View File
@@ -0,0 +1,3 @@
vim.keymap.set("n", "<Leader>tt", function()
require("nvim-tree.api").tree.toggle()
end, { desc = "Open directory tree" })
+17
View File
@@ -0,0 +1,17 @@
vim.g.loaded_netrw = 1
vim.g.loaded_netrwPlugin = 1
vim.opt.number = true
vim.opt.relativenumber = true
vim.opt.undofile = true
vim.g.mapleader = " "
vim.opt.expandtab = true
vim.opt.tabstop = 4
vim.opt.shiftwidth = 0
vim.o.scrolloff = 20
vim.opt.signcolumn = 'yes'
+6
View File
@@ -0,0 +1,6 @@
return {
{
"saecki/crates.nvim",
ft = { "toml" },
}
}
+3
View File
@@ -0,0 +1,3 @@
return {
{ "ellisonleao/gruvbox.nvim", priority = 1000 , config = function() vim.cmd([[colorscheme gruvbox]]) end, opts = ...},
}
+3
View File
@@ -0,0 +1,3 @@
return {
{ "neovim/nvim-lspconfig" },
}
+9
View File
@@ -0,0 +1,9 @@
return {
{
"https://github.com/nvim-lualine/lualine.nvim",
event = "VeryLazy",
config = function()
require("lualine").setup()
end,
},
}
+9
View File
@@ -0,0 +1,9 @@
return {
{
"https://github.com/windwp/nvim-autopairs",
event = "InsertEnter",
config = function()
require("nvim-autopairs").setup()
end,
},
}
+13
View File
@@ -0,0 +1,13 @@
return {
{
"nvim-tree/nvim-tree.lua",
dependencies = { "nvim-tree/nvim-web-devicons" },
config = function()
require("nvim-tree").setup({
filters = {
dotfiles = true,
},
})
end
},
}
+18
View File
@@ -0,0 +1,18 @@
return {
{
"saghen/blink.cmp",
dependencies = {
"saghen/blink.lib",
},
build = function()
require("blink.cmp").build():pwait()
end,
opts = {
keymap = { preset = "default" },
}
},
{
"mrcjkb/rustaceanvim",
ft = { "rust" },
}
}
+6
View File
@@ -0,0 +1,6 @@
return {
{
"https://github.com/farmergreg/vim-lastplace",
event = "BufReadPost",
},
}