added a few plugins

This commit is contained in:
rocketdebris 2026-10-21 12:04:03 -04:00
parent b79a146d37
commit ee1fc7d291
4 changed files with 82 additions and 6 deletions

48
init.lua.bak Normal file
View file

@ -0,0 +1,48 @@
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("plugins")
require("mason").setup()
require("mason-lspconfig").setup({
ensure_installed = {
"pylsp",
"clangd",
"gopls",
-- "dcm",
"ols",
},
})
-- My user settings:
vim.opt.number = true
vim.opt.relativenumber = true
vim.opt.shiftwidth = 4
vim.opt.tabstop = 4
--vim.opt.expandtab = true
vim.opt.autoindent = true
vim.opt.foldmethod = "indent"
vim.opt.foldenable = false
vim.cmd([[colorscheme everforest]])
-- My custom keybinds
-- vim.keymap.set("n", "<space><space>x", "<cmd>source %<CR>") -- Can't do this with lazy.nvim apparently
vim.keymap.set("n", "<space>x", ":.lua<CR>")
vim.keymap.set("v", "<space>x", ":lua<CR>")
vim.api.nvim_set_keymap('t', '<ESC>', [[<C-\><C-n>]], {noremap = true})
local lspconfig = require('lspconfig')
lspconfig.pylsp.setup{}
lspconfig.clangd.setup{}
lspconfig.gopls.setup{}
--lspconfig.dcm.setup{}
lspconfig.ols.setup{}