From 929dec22637aac26dd18f53acd92f78e2eb7e009 Mon Sep 17 00:00:00 2001 From: m3tam3re Date: Mon, 12 Aug 2024 13:14:02 +0200 Subject: [PATCH] codeium nvim --- hypr/hyprlock.conf | 60 +++++++++++++++++++++++++++++ nvim/lua/custom/plugins/codeium.lua | 18 +++++++++ 2 files changed, 78 insertions(+) create mode 100644 hypr/hyprlock.conf create mode 100644 nvim/lua/custom/plugins/codeium.lua diff --git a/hypr/hyprlock.conf b/hypr/hyprlock.conf new file mode 100644 index 0000000..de2da80 --- /dev/null +++ b/hypr/hyprlock.conf @@ -0,0 +1,60 @@ +background { + monitor = + path = /home/m3tam3re/Bilder/wallpaper/wallhaven-39wj5v_2560x1440.png # only png supported for now +} + +input-field { + monitor = + size = 200, 50 + outline_thickness = 3 + dots_size = 0.33 # Scale of input-field height, 0.2 - 0.8 + dots_spacing = 0.15 # Scale of dots' absolute size, 0.0 - 1.0 + dots_center = true + dots_rounding = -1 # -1 default circle, -2 follow input-field rounding + outer_color = rgb(151515) + inner_color = rgb(200, 200, 200) + font_color = rgb(10, 10, 10) + fade_on_empty = true + fade_timeout = 1000 # Milliseconds before fade_on_empty is triggered. + placeholder_text = Input Password... # Text rendered in the input box when it's empty. + hide_input = false + rounding = -1 # -1 means complete rounding (circle/oval) + check_color = rgb(204, 136, 34) + fail_color = rgb(204, 34, 34) # if authentication failed, changes outer_color and fail message color + fail_text = $FAIL ($ATTEMPTS) # can be set to empty + fail_transition = 300 # transition time in ms between normal outer_color and fail_color + capslock_color = -1 + numlock_color = -1 + bothlock_color = -1 # when both locks are active. -1 means don't change outer color (same for above) + invert_numlock = false # change color if numlock is off + swap_font_color = false # see below + position = 0, -20 + halign = center + valign = center +} + +label { + monitor = + text = cmd[update:1000] echo "$TIME" + color = rgba(200, 200, 200, 1.0) + font_size = 55 + font_family = Fira Semibold + position = -100, -200 + halign = right + valign = bottom + shadow_passes = 5 + shadow_size = 10 +} + +label { + monitor = + text = $USER + color = rgba(200, 200, 200, 1.0) + font_size = 20 + font_family = Fira Semibold + position = -100, 160 + halign = right + valign = bottom + shadow_passes = 5 + shadow_size = 10 +} diff --git a/nvim/lua/custom/plugins/codeium.lua b/nvim/lua/custom/plugins/codeium.lua new file mode 100644 index 0000000..55be1ef --- /dev/null +++ b/nvim/lua/custom/plugins/codeium.lua @@ -0,0 +1,18 @@ +return { + 'Exafunction/codeium.vim', + config = function() + -- Change '' here to any keycode you like. + vim.keymap.set('i', '', function() + return vim.fn['codeium#Accept']() + end, { expr = true, silent = true }) + vim.keymap.set('i', '', function() + return vim.fn['codeium#CycleCompletions'](1) + end, { expr = true, silent = true }) + vim.keymap.set('i', '', function() + return vim.fn['codeium#CycleCompletions'](-1) + end, { expr = true, silent = true }) + vim.keymap.set('i', '', function() + return vim.fn['codeium#Clear']() + end, { expr = true, silent = true }) + end, +}