Marty Oehme
1c7d0a9835
Using the lazy option 'version' we default to updating only to the latest stable (semver) version of plugins. This should make it a little more stable in the long run to keep up with plugin updates. Not all plugins support this versioning scheme and for those that do not it just keeps tracking the main branch. Currently from the plugins that support it, only `nvim-lspconfig` needs to be manually kept on the main branch since it is missing the correct lua language server otherwise. This should be a problem of the past with the release of the next version of the plugin.
32 lines
956 B
Lua
32 lines
956 B
Lua
-- many ideas for this config come from
|
|
-- https://github.com/elianiva/dotfiles/ - with much gratitude
|
|
local api = vim.api
|
|
|
|
api.nvim_exec('runtime abbrev.vim', false)
|
|
|
|
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", -- latest stable release
|
|
lazypath
|
|
})
|
|
end
|
|
vim.opt.rtp:prepend(lazypath)
|
|
|
|
-- set our leader key to space since with hjkl, space is largely useless
|
|
-- needs to be set before lazy.nvim is loaded
|
|
vim.g.mapleader = " "
|
|
|
|
require('settings')
|
|
require('autocmds')
|
|
require("lazy").setup("plugins", {
|
|
defaults = { version = "*" },
|
|
performance = { rtp = { disabled_plugins = { "netrw", "netrwPlugin" } } }
|
|
})
|
|
require('look')
|
|
require('maps')
|
|
|
|
-- to include e.g. the spell dictionaries for vim
|
|
vim.opt.rtp:append(vim.fn.stdpath("data") .. "/site")
|