style: cleanup brackets
This commit is contained in:
parent
8e8367ad84
commit
022de641c8
@ -21,11 +21,11 @@ local volume_widget = require('awesome-wm-widgets.volume-widget.volume')
|
|||||||
|
|
||||||
-- {{{ Error handling
|
-- {{{ Error handling
|
||||||
if awesome.startup_errors then
|
if awesome.startup_errors then
|
||||||
naughty.notify({
|
naughty.notify{
|
||||||
preset = naughty.config.presets.critical,
|
preset = naughty.config.presets.critical,
|
||||||
title = "Oops, there were errors during startup!",
|
title = "Oops, there were errors during startup!",
|
||||||
text = awesome.startup_errors
|
text = awesome.startup_errors
|
||||||
})
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
do
|
do
|
||||||
@ -39,11 +39,11 @@ do
|
|||||||
end
|
end
|
||||||
in_error = true
|
in_error = true
|
||||||
|
|
||||||
naughty.notify({
|
naughty.notify{
|
||||||
preset = naughty.config.presets.critical,
|
preset = naughty.config.presets.critical,
|
||||||
title = "Oops, an error happened!",
|
title = "Oops, an error happened!",
|
||||||
text = tostring(err)
|
text = tostring(err)
|
||||||
})
|
}
|
||||||
in_error = false
|
in_error = false
|
||||||
end
|
end
|
||||||
)
|
)
|
||||||
@ -129,7 +129,7 @@ local function set_clock(s)
|
|||||||
local dpi = require("beautiful.xresources").apply_dpi
|
local dpi = require("beautiful.xresources").apply_dpi
|
||||||
|
|
||||||
s.mytextclock = wibox.widget.textclock()
|
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)
|
s.month_calendar:attach(s.mytextclock)
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -183,24 +183,24 @@ awful.screen.connect_for_each_screen(
|
|||||||
)
|
)
|
||||||
))
|
))
|
||||||
-- Create a taglist widget
|
-- Create a taglist widget
|
||||||
s.mytaglist = awful.widget.taglist {
|
s.mytaglist = awful.widget.taglist{
|
||||||
screen = s,
|
screen = s,
|
||||||
filter = awful.widget.taglist.filter.all,
|
filter = awful.widget.taglist.filter.all,
|
||||||
buttons = taglist_buttons
|
buttons = taglist_buttons
|
||||||
}
|
}
|
||||||
|
|
||||||
-- Create a tasklist widget
|
-- Create a tasklist widget
|
||||||
s.mytasklist = awful.widget.tasklist {
|
s.mytasklist = awful.widget.tasklist{
|
||||||
screen = s,
|
screen = s,
|
||||||
filter = awful.widget.tasklist.filter.currenttags,
|
filter = awful.widget.tasklist.filter.currenttags,
|
||||||
buttons = tasklist_buttons
|
buttons = tasklist_buttons
|
||||||
}
|
}
|
||||||
|
|
||||||
-- Create the wibox
|
-- Create the wibox
|
||||||
s.mywibox = awful.wibar({position = "top", screen = s})
|
s.mywibox = awful.wibar{position = "top", screen = s}
|
||||||
|
|
||||||
-- Add widgets to the wibox
|
-- Add widgets to the wibox
|
||||||
s.mywibox:setup {
|
s.mywibox:setup{
|
||||||
layout = wibox.layout.align.horizontal,
|
layout = wibox.layout.align.horizontal,
|
||||||
{ -- Left widgets
|
{ -- Left widgets
|
||||||
layout = wibox.layout.fixed.horizontal,
|
layout = wibox.layout.fixed.horizontal,
|
||||||
|
@ -16,7 +16,7 @@ au BufNewFile,BufRead *.h set cc=81
|
|||||||
" packages
|
" packages
|
||||||
source ~/.config/nvim/epitech_header.vim
|
source ~/.config/nvim/epitech_header.vim
|
||||||
packadd! nvim-treesitter
|
packadd! nvim-treesitter
|
||||||
lua require('nvim-treesitter.configs').setup {highlight = {enable = true}}
|
lua require('nvim-treesitter.configs').setup{highlight = {enable = true}}
|
||||||
|
|
||||||
"packadd! nvim-lspconfig
|
"packadd! nvim-lspconfig
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user