From 5238f24acf517090da09336e3201ebc10a7d560f Mon Sep 17 00:00:00 2001 From: poslop Date: Mon, 9 Feb 2026 09:41:09 -0600 Subject: [PATCH] stylua --- init.lua | 2 +- lua/config/lazy.lua | 16 ++++++++-------- lua/plugins/format.lua | 28 ++++++++++++++-------------- lua/plugins/markdown.lua | 6 +++--- lua/plugins/which.lua | 6 +++--- 5 files changed, 29 insertions(+), 29 deletions(-) diff --git a/init.lua b/init.lua index 55b8979..727cc08 100644 --- a/init.lua +++ b/init.lua @@ -1 +1 @@ -require("config.lazy") +require "config.lazy" diff --git a/lua/config/lazy.lua b/lua/config/lazy.lua index d7c046b..d0adb76 100644 --- a/lua/config/lazy.lua +++ b/lua/config/lazy.lua @@ -1,7 +1,7 @@ -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 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 vim.api.nvim_echo({ { "Failed to clone lazy.nvim:\n", "ErrorMsg" }, @@ -17,17 +17,17 @@ vim.opt.rtp:prepend(lazypath) vim.g.mapleader = " " vim.g.maplocalleader = " " -require("config.maps") -require("config.opts") +require "config.maps" +require "config.opts" -require("lazy").setup({ +require("lazy").setup { spec = { { import = "plugins" }, }, install = { colorscheme = { "tokyonight" } }, checker = { enabled = true }, -}) +} -vim.cmd[[colorscheme tokyonight]] +vim.cmd [[colorscheme tokyonight]] -require("bufferline").setup{} +require("bufferline").setup {} diff --git a/lua/plugins/format.lua b/lua/plugins/format.lua index 8868a03..36c8d9e 100644 --- a/lua/plugins/format.lua +++ b/lua/plugins/format.lua @@ -1,8 +1,8 @@ return { { - 'windwp/nvim-autopairs', + "windwp/nvim-autopairs", event = "InsertEnter", - config = true + config = true, }, { "folke/ts-comments.nvim", @@ -13,20 +13,20 @@ return { "hrsh7th/nvim-cmp", }, { - 'stevearc/conform.nvim', + "stevearc/conform.nvim", opts = { - formatters_by_ft = { - lua = { "stylua" }, - }, - default_format_opts = { - lsp_format = "fallback", - }, - format_on_save = { timeout_ms = 500 }, - formatters = { - shfmt = { - append_args = { "-i", "2" }, + formatters_by_ft = { + lua = { "stylua" }, + }, + default_format_opts = { + lsp_format = "fallback", + }, + format_on_save = { timeout_ms = 500 }, + formatters = { + shfmt = { + append_args = { "-i", "2" }, + }, }, }, }, - } } diff --git a/lua/plugins/markdown.lua b/lua/plugins/markdown.lua index c0a37bf..1057e1d 100644 --- a/lua/plugins/markdown.lua +++ b/lua/plugins/markdown.lua @@ -1,5 +1,5 @@ return { - { - "iamcco/markdown-preview.nvim" - } + { + "iamcco/markdown-preview.nvim", + }, } diff --git a/lua/plugins/which.lua b/lua/plugins/which.lua index 08c5841..6d0cadb 100644 --- a/lua/plugins/which.lua +++ b/lua/plugins/which.lua @@ -1,15 +1,15 @@ return { - { + { "folke/which-key.nvim", event = "VeryLazy", keys = { { "?", function() - require("which-key").show({ global = false }) + require("which-key").show { global = false } end, desc = "Buffer Local Keymaps (which-key)", }, }, - } + }, }