From 022de641c86b9e5ebf31d265c721bb73eed45883 Mon Sep 17 00:00:00 2001 From: angeD Date: Tue, 28 Dec 2021 14:02:50 +0100 Subject: [PATCH] style: cleanup brackets --- .config/awesome/rc.lua | 18 +++++++++--------- .config/nvim/init.vim | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index b8a2c01..685acd3 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -21,11 +21,11 @@ local volume_widget = require('awesome-wm-widgets.volume-widget.volume') -- {{{ Error handling if awesome.startup_errors then - naughty.notify({ + naughty.notify{ preset = naughty.config.presets.critical, title = "Oops, there were errors during startup!", text = awesome.startup_errors - }) + } end do @@ -39,11 +39,11 @@ do end in_error = true - naughty.notify({ + naughty.notify{ preset = naughty.config.presets.critical, title = "Oops, an error happened!", text = tostring(err) - }) + } in_error = false end ) @@ -129,7 +129,7 @@ local function set_clock(s) local dpi = require("beautiful.xresources").apply_dpi s.mytextclock = wibox.widget.textclock() - s.month_calendar = awful.widget.calendar_popup.month({screen = s}) + s.month_calendar = awful.widget.calendar_popup.month{screen = s} s.month_calendar:attach(s.mytextclock) end @@ -183,24 +183,24 @@ awful.screen.connect_for_each_screen( ) )) -- Create a taglist widget - s.mytaglist = awful.widget.taglist { + s.mytaglist = awful.widget.taglist{ screen = s, filter = awful.widget.taglist.filter.all, buttons = taglist_buttons } -- Create a tasklist widget - s.mytasklist = awful.widget.tasklist { + s.mytasklist = awful.widget.tasklist{ screen = s, filter = awful.widget.tasklist.filter.currenttags, buttons = tasklist_buttons } -- Create the wibox - s.mywibox = awful.wibar({position = "top", screen = s}) + s.mywibox = awful.wibar{position = "top", screen = s} -- Add widgets to the wibox - s.mywibox:setup { + s.mywibox:setup{ layout = wibox.layout.align.horizontal, { -- Left widgets layout = wibox.layout.fixed.horizontal, diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 13a0412..78aad2a 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -16,7 +16,7 @@ au BufNewFile,BufRead *.h set cc=81 " packages source ~/.config/nvim/epitech_header.vim packadd! nvim-treesitter -lua require('nvim-treesitter.configs').setup {highlight = {enable = true}} +lua require('nvim-treesitter.configs').setup{highlight = {enable = true}} "packadd! nvim-lspconfig