Format Neovim config

This commit is contained in:
Wekuz 2026-05-10 22:38:34 +03:00
parent 208d89af36
commit 719f2f297d
Signed by: Wekuz
GPG key ID: 2E502F2AABD32DF9
2 changed files with 14 additions and 14 deletions

View file

@ -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

View file

@ -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 }