From 2be2aaf8bcf9181fb0f081b85c42acb78a0d8ac1 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Wed, 17 May 2023 17:06:16 +0100 Subject: [PATCH] Stylua formatting pass --- init.lua | 2 +- lua/plugins/barbecue.lua | 2 +- lua/plugins/magma_nvim.lua | 2 +- lua/plugins/neotree.lua | 4 +--- lua/plugins/noice.lua | 14 +++++++------- lua/plugins/tokyonight.lua | 4 ++-- lua/plugins/which_key.lua | 2 +- 7 files changed, 14 insertions(+), 16 deletions(-) diff --git a/init.lua b/init.lua index ed5fb2b..a79cb70 100644 --- a/init.lua +++ b/init.lua @@ -43,7 +43,7 @@ require("lazy").setup { } -- Set vim options -vim.cmd([[colorscheme tokyonight]]) +vim.cmd [[colorscheme tokyonight]] vim.opt.laststatus = 3 vim.opt.showtabline = 1 vim.opt.shiftwidth = 4 diff --git a/lua/plugins/barbecue.lua b/lua/plugins/barbecue.lua index 7c6da7b..65083fe 100644 --- a/lua/plugins/barbecue.lua +++ b/lua/plugins/barbecue.lua @@ -10,6 +10,6 @@ return { "folke/tokyonight.nvim", }, opts = { - theme = 'tokyonight', + theme = "tokyonight", }, } diff --git a/lua/plugins/magma_nvim.lua b/lua/plugins/magma_nvim.lua index 33d4eef..f51d26d 100644 --- a/lua/plugins/magma_nvim.lua +++ b/lua/plugins/magma_nvim.lua @@ -1,4 +1,4 @@ return { "dccsillag/magma-nvim", - event = { "BufReadPre", "BufNewFile" } + event = { "BufReadPre", "BufNewFile" }, } diff --git a/lua/plugins/neotree.lua b/lua/plugins/neotree.lua index 21b1760..559f4f5 100644 --- a/lua/plugins/neotree.lua +++ b/lua/plugins/neotree.lua @@ -15,9 +15,7 @@ return { vim.keymap.set("n", "nb", "Neotree toggle show buffers right") if vim.fn.argc() == 1 then local stat = vim.loop.fs_stat(vim.fn.argv(0)) - if stat and stat.type == "directory" then - require("neo-tree") - end + if stat and stat.type == "directory" then require "neo-tree" end end end, config = true, diff --git a/lua/plugins/noice.lua b/lua/plugins/noice.lua index a822508..5d05cde 100644 --- a/lua/plugins/noice.lua +++ b/lua/plugins/noice.lua @@ -1,6 +1,6 @@ return { "folke/noice.nvim", - event = {"VeryLazy"}, + event = { "VeryLazy" }, dependencies = { "MunifTanjim/nui.nvim", "rcarriga/nvim-notify", @@ -12,8 +12,8 @@ return { enabled = true, format = { "({data.progress.percentage}%) ", - { "{spinner} ", hl_group = "NoiceLspProgressSpinner" }, - { "{data.progress.title} ", hl_group = "NoiceLspProgressTitle" }, + { "{spinner} ", hl_group = "NoiceLspProgressSpinner" }, + { "{data.progress.title} ", hl_group = "NoiceLspProgressTitle" }, { "{data.progress.client} ", hl_group = "NoiceLspProgressClient" }, }, }, @@ -33,11 +33,11 @@ return { }, -- you can enable a preset for easier configuration presets = { - bottom_search = false, -- use a classic bottom cmdline for search - command_palette = true, -- position the cmdline and popupmenu together + bottom_search = false, -- use a classic bottom cmdline for search + command_palette = true, -- position the cmdline and popupmenu together long_message_to_split = false, -- long messages will be sent to a splitnoice - inc_rename = true, -- enables an input dialog for inc-rename.nvim - lsp_doc_border = true, -- add a border to hover docs and signature help + inc_rename = true, -- enables an input dialog for inc-rename.nvim + lsp_doc_border = true, -- add a border to hover docs and signature help }, }, } diff --git a/lua/plugins/tokyonight.lua b/lua/plugins/tokyonight.lua index 9414b02..5e7ecee 100644 --- a/lua/plugins/tokyonight.lua +++ b/lua/plugins/tokyonight.lua @@ -1,9 +1,9 @@ return { - 'folke/tokyonight.nvim', + "folke/tokyonight.nvim", lazy = true, opts = { transparent = false, - styles = { sidebars = "normal", floats = "transparent", } + styles = { sidebars = "normal", floats = "transparent" }, }, config = true, } diff --git a/lua/plugins/which_key.lua b/lua/plugins/which_key.lua index d87f0c0..6f540db 100644 --- a/lua/plugins/which_key.lua +++ b/lua/plugins/which_key.lua @@ -1,6 +1,6 @@ return { "folke/which-key.nvim", - event = { "VeryLazy"}, + event = { "VeryLazy" }, init = function() vim.o.timeout = true vim.o.timeoutlen = 300