nvim: in-line Markdown rendering
This commit is contained in:
23
.config/nvim/lua/config/lazy.lua
Normal file
23
.config/nvim/lua/config/lazy.lua
Normal file
@@ -0,0 +1,23 @@
|
||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
if not vim.uv.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)
|
||||
|
||||
require("lazy").setup({
|
||||
spec = {
|
||||
{ import = "plugins" },
|
||||
},
|
||||
install = { colorscheme = { "nord" } },
|
||||
checker = { enabled = false },
|
||||
})
|
||||
@@ -15,12 +15,6 @@ opt.expandtab = true
|
||||
|
||||
opt.mouse = "a"
|
||||
|
||||
-- Neovim's built-in default colors paint their own dark/light background even
|
||||
-- without a colorscheme; clear it so the terminal's own background shows through.
|
||||
for _, group in ipairs({ "Normal", "NormalNC", "NormalFloat", "SignColumn" }) do
|
||||
vim.api.nvim_set_hl(0, group, { bg = "none" })
|
||||
end
|
||||
|
||||
opt.undofile = true
|
||||
|
||||
opt.ignorecase = true
|
||||
|
||||
Reference in New Issue
Block a user