Format Neovim config
This commit is contained in:
parent
208d89af36
commit
719f2f297d
2 changed files with 14 additions and 14 deletions
|
|
@ -1,6 +1,6 @@
|
|||
local markdown_format = vim.api.nvim_create_augroup("markdown_format", { clear = true })
|
||||
|
||||
vim.api.nvim_create_autocmd({"BufEnter", "BufWinEnter"}, {
|
||||
vim.api.nvim_create_autocmd({ "BufEnter", "BufWinEnter" }, {
|
||||
group = markdown_format,
|
||||
pattern = { "*.md" },
|
||||
callback = function()
|
||||
|
|
@ -12,7 +12,7 @@ vim.api.nvim_create_autocmd({"BufEnter", "BufWinEnter"}, {
|
|||
end
|
||||
})
|
||||
|
||||
-- vim.api.nvim_create_autocmd({"BufEnter", "BufWinEnter", "VimResized", "WinResized"}, {
|
||||
-- vim.api.nvim_create_autocmd({ "BufEnter", "BufWinEnter", "VimResized", "WinResized" }, {
|
||||
-- group = markdown_format,
|
||||
-- callback = function()
|
||||
-- if vim.bo.filetype == 'markdown' then
|
||||
|
|
|
|||
|
|
@ -1,23 +1,23 @@
|
|||
-- Bootstrap lazy.nvim
|
||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
if not (vim.uv or vim.loop).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
|
||||
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)
|
||||
|
||||
-- Setup lazy.nvim
|
||||
require("lazy").setup({
|
||||
spec = {{ import = "wekuz.plugins" }},
|
||||
spec = { { import = "wekuz.plugins" } },
|
||||
install = { colorscheme = { "cyberdream" } },
|
||||
checker = { enabled = false },
|
||||
change_detection = { notify = false }
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue