my dotfiles for arch
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

nvim

+96 -1
+3
private_dot_config/hypr/config/windowrules.conf
··· 92 92 # } 93 93 # } 94 94 # 95 + 96 + # windowrulev2=windowdance,title:^(Rhythm Doctor)$ 97 + # windowrule=forceinput,title:^(Rhythm Doctor)$ # May also be needed
+12
private_dot_config/nvim/after/ftplugin/gdscript.lua
··· 1 + local port = os.getenv("GDScript_Port") or "6005" 2 + local cmd = vim.lsp.rpc.connect("127.0.0.1", tonumber(port)) 3 + local pipe = "/tmp/godot.pipe" -- I use /tmp/godot.pipe 4 + 5 + vim.lsp.start({ 6 + name = "Godot", 7 + cmd = cmd, 8 + root_dir = vim.fs.dirname(vim.fs.find({ "project.godot", ".git" }, { upward = true })[1]), 9 + on_attach = function(client, bufnr) 10 + vim.api.nvim_command('echo serverstart("' .. pipe .. '")') 11 + end, 12 + })
+1 -1
private_dot_config/nvim/lua/plugins/alpha_headers/bee.lua
··· 39 39 local M = {} 40 40 41 41 M.setup = function(dashboard) 42 - local color = require("thomasgen.util.color") 42 + local color = require("util.color") 43 43 local alpha = require("alpha") 44 44 45 45 local mocha = require("catppuccin.palettes").get_palette("mocha")
+4
private_dot_config/nvim/lua/plugins/godot.lua
··· 1 + return { 2 + "habamax/vim-godot", 3 + event = "BufEnter *.gd", 4 + }
+3
private_dot_config/nvim/lua/plugins/sort.lua
··· 1 + return { 2 + "sQVe/sort.nvim", 3 + }
+1
private_dot_config/nvim/lua/plugins/treesitter.lua
··· 31 31 32 32 indent = { 33 33 enable = true, 34 + disable = { "gdscript" }, 34 35 }, 35 36 36 37 highlight = {
+72
private_dot_config/nvim/lua/util/color.lua
··· 1 + local M = {} 2 + 3 + -- Convert hex color to RGB values 4 + local function hex_to_rgb(hex) 5 + hex = hex:gsub("#", "") 6 + return tonumber("0x" .. hex:sub(1, 2)), tonumber("0x" .. hex:sub(3, 4)), tonumber("0x" .. hex:sub(5, 6)) 7 + end 8 + 9 + -- Convert RGB values to hex color 10 + local function rgb_to_hex(r, g, b) 11 + return string.format("#%02X%02X%02X", r, g, b) 12 + end 13 + 14 + -- Clamp a value between min and max 15 + local function clamp(value, min, max) 16 + return math.min(math.max(value, min), max) 17 + end 18 + 19 + -- Darken a color by a percentage (0-100) 20 + function M.darken(hex, percent) 21 + if not hex or not percent then 22 + return hex 23 + end 24 + 25 + local r, g, b = hex_to_rgb(hex) 26 + local factor = (100 - percent) / 100 27 + 28 + r = clamp(math.floor(r * factor), 0, 255) 29 + g = clamp(math.floor(g * factor), 0, 255) 30 + b = clamp(math.floor(b * factor), 0, 255) 31 + 32 + return rgb_to_hex(r, g, b) 33 + end 34 + 35 + -- Lighten a color by a percentage (0-100) 36 + function M.lighten(hex, percent) 37 + if not hex or not percent then 38 + return hex 39 + end 40 + 41 + local r, g, b = hex_to_rgb(hex) 42 + local factor = 1 + (percent / 100) 43 + 44 + r = clamp(math.floor(r * factor), 0, 255) 45 + g = clamp(math.floor(g * factor), 0, 255) 46 + b = clamp(math.floor(b * factor), 0, 255) 47 + 48 + return rgb_to_hex(r, g, b) 49 + end 50 + 51 + -- Blend two colors with a given weight (0-1) 52 + function M.blend(color1, color2, weight) 53 + weight = weight or 0.5 54 + local r1, g1, b1 = hex_to_rgb(color1) 55 + local r2, g2, b2 = hex_to_rgb(color2) 56 + 57 + local r = math.floor(r1 * (1 - weight) + r2 * weight) 58 + local g = math.floor(g1 * (1 - weight) + g2 * weight) 59 + local b = math.floor(b1 * (1 - weight) + b2 * weight) 60 + 61 + return rgb_to_hex(r, g, b) 62 + end 63 + 64 + -- Check if a color is light or dark 65 + function M.is_light(hex) 66 + local r, g, b = hex_to_rgb(hex) 67 + -- Using relative luminance formula 68 + local luminance = (0.299 * r + 0.587 * g + 0.114 * b) / 255 69 + return luminance > 0.5 70 + end 71 + 72 + return M