Skip to content

Instantly share code, notes, and snippets.

View ur4ltz's full-sized avatar

Andy Shevchenko ur4ltz

  • Kharkiv - Ukraine, Glory to Ukraine
  • 05:41 (UTC +03:00)
View GitHub Profile
@ur4ltz
ur4ltz / which-key-prefix-descriptions.el
Created July 2, 2026 10:53 — forked from wroyca/which-key-prefix-descriptions.el
Missing Which-key Prefix descriptions
;; By default, Which-key doesn't give much help for prefix-keys. It
;; either shows the generic description, "+prefix", or the name of a
;; prefix-command, which usually isn't as descriptive as we'd like.
;;
;; Here are some descriptions for the default bindings in `global-map'
;; and `org-mode-map'.
(which-key-add-key-based-replacements
"<f1> 4" "help-other-win"
"<f1>" "help"
@ur4ltz
ur4ltz / inactive_regions.lua
Created July 2, 2026 10:46 — forked from wroyca/inactive_regions.lua
Dims inactive code regions in C/C++ buffers as reported by Clangd's inactiveRegion
---@class InactiveRegionsModule
---@field config InactiveRegionsConfig
---@field ns integer Namespace ID for highlights
---@field _state InactiveRegionsState Internal state
local InactiveRegions = {}
---@class InactiveRegionsConfig
---@field opacity number Opacity level for inactive regions (0.0-1.0)
---@field namespace string? Custom namespace name
---@field debounce_ms integer Debounce delay for updates in milliseconds
vim.pack.add {
{ src = 'https://github.com/neovim/nvim-lspconfig' },
{ src = 'https://github.com/mason-org/mason.nvim' },
{ src = 'https://github.com/mason-org/mason-lspconfig.nvim' },
{ src = 'https://github.com/WhoIsSethDaniel/mason-tool-installer.nvim' },
}
require('mason').setup()
require('mason-lspconfig').setup()
require('mason-tool-installer').setup({
@ur4ltz
ur4ltz / keybindings.json
Created July 2, 2026 10:23 — forked from smnatale/keybindings.json
vscode vim setup
// Place your key bindings in this file to override the defaults
[
// terminal toggle
{
"key": "f12",
"command": "workbench.action.terminal.toggleTerminal",
},
// terminal navigation
{
"key": "ctrl+1",
@ur4ltz
ur4ltz / bspwmrc
Created June 16, 2023 10:42 — forked from CSaratakij/bspwmrc
bspwm config files
#! /bin/sh
bspc config top_padding 24
bspc config bottom_padding 0
bspc config left_padding 0
bspc config right_padding 0
bspc config border_width 3
bspc config window_gap 16
# Borders and gaps
@ur4ltz
ur4ltz / bspwmrc
Created June 16, 2023 10:42 — forked from TiZ-HugLife/bspwmrc
bspwm config files
#! /bin/sh
bspc config top_padding 24
bspc config bottom_padding 0
bspc config left_padding 0
bspc config right_padding 0
bspc config border_width 3
bspc config window_gap 16
# Borders and gaps
#! /bin/sh
gap=4
PANEL_HEIGHT=22
BORDER_WIDTH=2
export gap
export PANEL_HEIGHT
export BORDER_WIDTH
#This creates negative padding equal to window gap so that gaps are shown only between windows and not on desktop edges.
bspc config window_gap $gap;
@ur4ltz
ur4ltz / init.lua
Created March 23, 2023 17:42 — forked from VonHeikemen/init.lua
nvim-lspconfig + nvim-cmp setup
--[[
blogpost:
https://vonheikemen.github.io/devlog/tools/setup-nvim-lspconfig-plus-nvim-cmp/
Dependencies:
LSP:
https://github.com/neovim/nvim-lspconfig
https://github.com/williamboman/mason.nvim (optional)
https://github.com/williamboman/mason-lspconfig.nvim (optional)