minor updates to fix bugs

This commit is contained in:
Solomon Laing 2023-03-23 18:22:08 +10:30
parent ecf2107cb3
commit ef9de2c748
4 changed files with 4 additions and 35 deletions

View File

@ -1,2 +1,2 @@
require "lazyvim" -- my config based on folkes LazyVim starter
require("lazyvim") -- my config based on folkes LazyVim starter
-- require("chris") -- my config based on Christian Chiarullis work

View File

@ -37,7 +37,7 @@ local options = {
sidescrolloff = 8,
guifont = "monospace:h17",
title = true,
spelllang = "en_us",
spelllang = "en_gb",
autowrite = true,
confirm = true,
formatoptions = "jcroqlnt", -- tcqj

View File

@ -18,6 +18,8 @@ vim.api.nvim_set_keymap("n", "<leader>L", "<cmd>:Lazy<cr>", { desc = "Lazy GUI"
vim.opt.rtp:prepend(vim.env.LAZY or lazypath)
require("lazyvim.config").setup()
if not vim.g.vscode then
require("lazy").setup({
spec = "lazyvim.plugins",

View File

@ -1,33 +0,0 @@
local function load(name)
local Util = require("lazy.core.util")
-- always load lazyvim, then user file
for _, mod in ipairs({ "lazyvim.config." .. name, "config." .. name }) do
Util.try(function()
require(mod)
end, {
msg = "Failed loading " .. mod,
on_error = function(msg)
local modpath = require("lazy.core.cache").find(mod)
if modpath then
Util.error(msg)
end
end,
})
end
end
-- load options here, before lazy init while sourcing plugin modules
-- this is needed to make sure options will be correctly applied
-- after installing missing plugins
load("options")
-- autocmds and keymaps can wait to load
vim.api.nvim_create_autocmd("User", {
pattern = "VeryLazy",
callback = function()
load("autocmds")
load("keymaps")
end,
})
return {}