Updated things, following TJ Devries advent of Neovim.

This commit is contained in:
rocketdebris 2025-05-15 13:40:48 -04:00
parent 61417e64f5
commit 2c749ac329
5 changed files with 36 additions and 18 deletions

View file

@ -1,19 +1,15 @@
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("config.lazy")
require("lazy").setup("plugins")
require("mason").setup()
require("mason-lspconfig").setup()
require("mason-lspconfig").setup({
ensure_installed = {
"pylsp",
"clangd",
"gopls",
-- "dcm",
"ols",
},
})
-- My user settings:
vim.opt.number = true
@ -27,9 +23,14 @@ 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{}