Stylua formatting pass

This commit is contained in:
Evie Litherland-Smith 2023-05-17 17:06:16 +01:00
parent 9afe8567fd
commit 2be2aaf8bc
7 changed files with 14 additions and 16 deletions

View file

@ -43,7 +43,7 @@ require("lazy").setup {
} }
-- Set vim options -- Set vim options
vim.cmd([[colorscheme tokyonight]]) vim.cmd [[colorscheme tokyonight]]
vim.opt.laststatus = 3 vim.opt.laststatus = 3
vim.opt.showtabline = 1 vim.opt.showtabline = 1
vim.opt.shiftwidth = 4 vim.opt.shiftwidth = 4

View file

@ -10,6 +10,6 @@ return {
"folke/tokyonight.nvim", "folke/tokyonight.nvim",
}, },
opts = { opts = {
theme = 'tokyonight', theme = "tokyonight",
}, },
} }

View file

@ -1,4 +1,4 @@
return { return {
"dccsillag/magma-nvim", "dccsillag/magma-nvim",
event = { "BufReadPre", "BufNewFile" } event = { "BufReadPre", "BufNewFile" },
} }

View file

@ -15,9 +15,7 @@ return {
vim.keymap.set("n", "<leader>nb", "<cmd>Neotree toggle show buffers right<cr>") vim.keymap.set("n", "<leader>nb", "<cmd>Neotree toggle show buffers right<cr>")
if vim.fn.argc() == 1 then if vim.fn.argc() == 1 then
local stat = vim.loop.fs_stat(vim.fn.argv(0)) local stat = vim.loop.fs_stat(vim.fn.argv(0))
if stat and stat.type == "directory" then if stat and stat.type == "directory" then require "neo-tree" end
require("neo-tree")
end
end end
end, end,
config = true, config = true,

View file

@ -1,6 +1,6 @@
return { return {
"folke/noice.nvim", "folke/noice.nvim",
event = {"VeryLazy"}, event = { "VeryLazy" },
dependencies = { dependencies = {
"MunifTanjim/nui.nvim", "MunifTanjim/nui.nvim",
"rcarriga/nvim-notify", "rcarriga/nvim-notify",
@ -12,8 +12,8 @@ return {
enabled = true, enabled = true,
format = { format = {
"({data.progress.percentage}%) ", "({data.progress.percentage}%) ",
{ "{spinner} ", hl_group = "NoiceLspProgressSpinner" }, { "{spinner} ", hl_group = "NoiceLspProgressSpinner" },
{ "{data.progress.title} ", hl_group = "NoiceLspProgressTitle" }, { "{data.progress.title} ", hl_group = "NoiceLspProgressTitle" },
{ "{data.progress.client} ", hl_group = "NoiceLspProgressClient" }, { "{data.progress.client} ", hl_group = "NoiceLspProgressClient" },
}, },
}, },
@ -33,11 +33,11 @@ return {
}, },
-- you can enable a preset for easier configuration -- you can enable a preset for easier configuration
presets = { presets = {
bottom_search = false, -- use a classic bottom cmdline for search bottom_search = false, -- use a classic bottom cmdline for search
command_palette = true, -- position the cmdline and popupmenu together command_palette = true, -- position the cmdline and popupmenu together
long_message_to_split = false, -- long messages will be sent to a splitnoice long_message_to_split = false, -- long messages will be sent to a splitnoice
inc_rename = true, -- enables an input dialog for inc-rename.nvim inc_rename = true, -- enables an input dialog for inc-rename.nvim
lsp_doc_border = true, -- add a border to hover docs and signature help lsp_doc_border = true, -- add a border to hover docs and signature help
}, },
}, },
} }

View file

@ -1,9 +1,9 @@
return { return {
'folke/tokyonight.nvim', "folke/tokyonight.nvim",
lazy = true, lazy = true,
opts = { opts = {
transparent = false, transparent = false,
styles = { sidebars = "normal", floats = "transparent", } styles = { sidebars = "normal", floats = "transparent" },
}, },
config = true, config = true,
} }

View file

@ -1,6 +1,6 @@
return { return {
"folke/which-key.nvim", "folke/which-key.nvim",
event = { "VeryLazy"}, event = { "VeryLazy" },
init = function() init = function()
vim.o.timeout = true vim.o.timeout = true
vim.o.timeoutlen = 300 vim.o.timeoutlen = 300