chore: minor update
This commit is contained in:
parent
55a726816a
commit
a6453bf6da
@ -27,13 +27,13 @@
|
||||
width = 370
|
||||
|
||||
# The maximum height of a single notification, excluding the frame.
|
||||
height = 350
|
||||
height = (0,350)
|
||||
|
||||
# Position the notification in the top right corner
|
||||
origin = top-right
|
||||
|
||||
# Offset from the origin
|
||||
offset = 9x29
|
||||
offset = (9,29)
|
||||
|
||||
# Scale factor. It is auto-detected if value is 0.
|
||||
scale = 0
|
||||
|
||||
@ -2,7 +2,10 @@ local M = {}
|
||||
|
||||
M.opts = {
|
||||
-- could just set this in format.lua buuuut, it's nice to have here
|
||||
autoformat = true,
|
||||
format = {
|
||||
autoformat = true,
|
||||
ignore_files = { "config.def.h" },
|
||||
},
|
||||
-- options for vim.diagnostic.config()
|
||||
diagnostics = {
|
||||
underline = true,
|
||||
@ -87,7 +90,7 @@ M.opts = {
|
||||
|
||||
function M.setup()
|
||||
-- setup autoformat
|
||||
require("lazyvim.plugins.lsp.format").autoformat = M.opts.autoformat
|
||||
require("lazyvim.plugins.lsp.format").setup(M.opts.format)
|
||||
|
||||
-- setup formatting and keymaps
|
||||
require("lazyvim.utils").on_attach(function(client, buffer)
|
||||
|
||||
@ -1,6 +1,12 @@
|
||||
local M = {}
|
||||
|
||||
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()
|
||||
M.autoformat = not M.autoformat
|
||||
@ -27,6 +33,12 @@ function M.on_attach(client, buf)
|
||||
buffer = buf,
|
||||
callback = function()
|
||||
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()
|
||||
end
|
||||
end,
|
||||
|
||||
@ -19,6 +19,7 @@ set -s escape-time 0
|
||||
|
||||
# Allow opening multiple terminals to view the same session at different sizes.
|
||||
setw -g aggressive-resize on
|
||||
set-option -w -g aggressive-resize on
|
||||
|
||||
# Ensure window titles get renamed automatically.
|
||||
setw -g automatic-rename
|
||||
|
||||
@ -11,6 +11,11 @@ xsetroot -cursor_name left_ptr
|
||||
# numlock
|
||||
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 &
|
||||
|
||||
"$HOME/.fehbg"
|
||||
@ -31,6 +36,8 @@ autostart=(
|
||||
"plumber"
|
||||
|
||||
"mpd"
|
||||
|
||||
"blueberry-tray"
|
||||
)
|
||||
|
||||
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