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 })
|
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,
|
group = markdown_format,
|
||||||
pattern = { "*.md" },
|
pattern = { "*.md" },
|
||||||
callback = function()
|
callback = function()
|
||||||
|
|
@ -12,7 +12,7 @@ vim.api.nvim_create_autocmd({"BufEnter", "BufWinEnter"}, {
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
-- vim.api.nvim_create_autocmd({"BufEnter", "BufWinEnter", "VimResized", "WinResized"}, {
|
-- vim.api.nvim_create_autocmd({ "BufEnter", "BufWinEnter", "VimResized", "WinResized" }, {
|
||||||
-- group = markdown_format,
|
-- group = markdown_format,
|
||||||
-- callback = function()
|
-- callback = function()
|
||||||
-- if vim.bo.filetype == 'markdown' then
|
-- if vim.bo.filetype == 'markdown' then
|
||||||
|
|
|
||||||
|
|
@ -1,23 +1,23 @@
|
||||||
-- Bootstrap lazy.nvim
|
-- Bootstrap lazy.nvim
|
||||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||||
if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
||||||
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
|
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
|
||||||
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
|
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
|
||||||
if vim.v.shell_error ~= 0 then
|
if vim.v.shell_error ~= 0 then
|
||||||
vim.api.nvim_echo({
|
vim.api.nvim_echo({
|
||||||
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
|
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
|
||||||
{ out, "WarningMsg" },
|
{ out, "WarningMsg" },
|
||||||
{ "\nPress any key to exit..." },
|
{ "\nPress any key to exit..." },
|
||||||
}, true, { })
|
}, true, {})
|
||||||
vim.fn.getchar()
|
vim.fn.getchar()
|
||||||
os.exit(1)
|
os.exit(1)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
vim.opt.rtp:prepend(lazypath)
|
vim.opt.rtp:prepend(lazypath)
|
||||||
|
|
||||||
-- Setup lazy.nvim
|
-- Setup lazy.nvim
|
||||||
require("lazy").setup({
|
require("lazy").setup({
|
||||||
spec = {{ import = "wekuz.plugins" }},
|
spec = { { import = "wekuz.plugins" } },
|
||||||
install = { colorscheme = { "cyberdream" } },
|
install = { colorscheme = { "cyberdream" } },
|
||||||
checker = { enabled = false },
|
checker = { enabled = false },
|
||||||
change_detection = { notify = false }
|
change_detection = { notify = false }
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue