chore: minor update
This commit is contained in:
parent
55a726816a
commit
a6453bf6da
@ -27,13 +27,13 @@
|
|||||||
width = 370
|
width = 370
|
||||||
|
|
||||||
# The maximum height of a single notification, excluding the frame.
|
# The maximum height of a single notification, excluding the frame.
|
||||||
height = 350
|
height = (0,350)
|
||||||
|
|
||||||
# Position the notification in the top right corner
|
# Position the notification in the top right corner
|
||||||
origin = top-right
|
origin = top-right
|
||||||
|
|
||||||
# Offset from the origin
|
# Offset from the origin
|
||||||
offset = 9x29
|
offset = (9,29)
|
||||||
|
|
||||||
# Scale factor. It is auto-detected if value is 0.
|
# Scale factor. It is auto-detected if value is 0.
|
||||||
scale = 0
|
scale = 0
|
||||||
|
|||||||
@ -2,7 +2,10 @@ local M = {}
|
|||||||
|
|
||||||
M.opts = {
|
M.opts = {
|
||||||
-- could just set this in format.lua buuuut, it's nice to have here
|
-- could just set this in format.lua buuuut, it's nice to have here
|
||||||
|
format = {
|
||||||
autoformat = true,
|
autoformat = true,
|
||||||
|
ignore_files = { "config.def.h" },
|
||||||
|
},
|
||||||
-- options for vim.diagnostic.config()
|
-- options for vim.diagnostic.config()
|
||||||
diagnostics = {
|
diagnostics = {
|
||||||
underline = true,
|
underline = true,
|
||||||
@ -87,7 +90,7 @@ M.opts = {
|
|||||||
|
|
||||||
function M.setup()
|
function M.setup()
|
||||||
-- setup autoformat
|
-- setup autoformat
|
||||||
require("lazyvim.plugins.lsp.format").autoformat = M.opts.autoformat
|
require("lazyvim.plugins.lsp.format").setup(M.opts.format)
|
||||||
|
|
||||||
-- setup formatting and keymaps
|
-- setup formatting and keymaps
|
||||||
require("lazyvim.utils").on_attach(function(client, buffer)
|
require("lazyvim.utils").on_attach(function(client, buffer)
|
||||||
|
|||||||
@ -1,6 +1,12 @@
|
|||||||
local M = {}
|
local M = {}
|
||||||
|
|
||||||
M.autoformat = true
|
M.autoformat = true
|
||||||
|
M.ignore_files = {}
|
||||||
|
|
||||||
|
function M.setup(opts)
|
||||||
|
M.autoformat = opts.autoformat or true
|
||||||
|
M.ignore_files = opts.ignore_files or {}
|
||||||
|
end
|
||||||
|
|
||||||
function M.toggle()
|
function M.toggle()
|
||||||
M.autoformat = not M.autoformat
|
M.autoformat = not M.autoformat
|
||||||
@ -27,6 +33,12 @@ function M.on_attach(client, buf)
|
|||||||
buffer = buf,
|
buffer = buf,
|
||||||
callback = function()
|
callback = function()
|
||||||
if M.autoformat then
|
if M.autoformat then
|
||||||
|
for _, file in pairs(M.ignore_files) do
|
||||||
|
print(vim.api.nvim_buf_get_name(0))
|
||||||
|
if string.find(vim.api.nvim_buf_get_name(0), file) then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
end
|
||||||
M.format()
|
M.format()
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
|||||||
@ -19,6 +19,7 @@ set -s escape-time 0
|
|||||||
|
|
||||||
# Allow opening multiple terminals to view the same session at different sizes.
|
# Allow opening multiple terminals to view the same session at different sizes.
|
||||||
setw -g aggressive-resize on
|
setw -g aggressive-resize on
|
||||||
|
set-option -w -g aggressive-resize on
|
||||||
|
|
||||||
# Ensure window titles get renamed automatically.
|
# Ensure window titles get renamed automatically.
|
||||||
setw -g automatic-rename
|
setw -g automatic-rename
|
||||||
|
|||||||
@ -11,6 +11,11 @@ xsetroot -cursor_name left_ptr
|
|||||||
# numlock
|
# numlock
|
||||||
numlockx
|
numlockx
|
||||||
|
|
||||||
|
# archt14 has trackpad middle click, fucking dumbest idea in history
|
||||||
|
# set middle click 2 to match right click 1
|
||||||
|
# default map is 1 2 3 4 5 6 7
|
||||||
|
xinput set-button-map 10 1 1 3 4 5 6 7
|
||||||
|
|
||||||
nextcloud --background &
|
nextcloud --background &
|
||||||
|
|
||||||
"$HOME/.fehbg"
|
"$HOME/.fehbg"
|
||||||
@ -31,6 +36,8 @@ autostart=(
|
|||||||
"plumber"
|
"plumber"
|
||||||
|
|
||||||
"mpd"
|
"mpd"
|
||||||
|
|
||||||
|
"blueberry-tray"
|
||||||
)
|
)
|
||||||
|
|
||||||
for program in "${autostart[@]}"; do
|
for program in "${autostart[@]}"; do
|
||||||
|
|||||||
@ -1,13 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
test_path="$HOME/.cache/trayer-exists"
|
|
||||||
|
|
||||||
if [ -f "$test_path" ]; then
|
|
||||||
echo "stopping trayer"
|
|
||||||
killall trayer
|
|
||||||
rm "$test_path"
|
|
||||||
else
|
|
||||||
echo "starting trayer"
|
|
||||||
touch "$test_path"
|
|
||||||
exec "$@"
|
|
||||||
fi
|
|
||||||
Loading…
Reference in New Issue
Block a user