First draft at going back to nvim

This commit is contained in:
Michael Bradley 2025-04-05 20:11:54 -04:00
parent b8b20cf817
commit 37afe78942
Signed by: MichaelBradley
SSH key fingerprint: SHA256:cj/YZ5VT+QOKncqSkx+ibKTIn0Obg7OIzwzl9BL8EO8
9 changed files with 82 additions and 169 deletions

37
nvim/lua/config/lazy.lua Normal file
View file

@ -0,0 +1,37 @@
-- Modified from https://lazy.folke.io/installation
-- 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)
-- Make sure to setup `mapleader` and `maplocalleader` before
-- loading lazy.nvim so that mappings are correct.
-- This is also a good place to setup other settings (vim.opt)
vim.g.mapleader = " "
vim.g.maplocalleader = "\\"
-- Setup lazy.nvim
require("lazy").setup({
spec = {
-- import your plugins
{ import = "plugins" },
},
-- Configure any other settings here. See the documentation for more details.
-- colorscheme that will be used when installing plugins.
-- install = { colorscheme = { "habamax" } },
-- automatically check for plugin updates
checker = { enabled = true },
})

View file

@ -0,0 +1,7 @@
vim.opt.shiftwidth = 4
vim.opt.tabstop = 4
vim.opt.relativenumber = true
vim.opt.clipboard = "unnamedplus"
vim.opt.wrap = true
vim.opt.spell = true
vim.opt.spelllang = "en"

32
nvim/lua/plugins.lua Normal file
View file

@ -0,0 +1,32 @@
return {
"gpanders/editorconfig.nvim",
"mhartington/formatter.nvim",
"f-person/git-blame.nvim",
{
"williamboman/mason.nvim",
config = function()
require("mason").setup()
end
},
{
"catppuccin/nvim",
name = "catppuccin",
priority = 1000,
config = function()
require("catppuccin").setup({
flavour = "mocha",
transparent_background = true,
})
vim.cmd.colorscheme "catppuccin"
end
},
"mfussenegger/nvim-dap",
"mfussenegger/nvim-lint",
"neovim/nvim-lspconfig",
"nvim-treesitter/nvim-treesitter",
"nvim-treesitter/nvim-treesitter-context",
{
"folke/todo-comments.nvim",
dependencies = { "nvim-lua/plenary.nvim" }
},
}