Skip to content

Instantly share code, notes, and snippets.

View last-partizan's full-sized avatar
💭
🇺🇦

Serhii Tereshchenko last-partizan

💭
🇺🇦
View GitHub Profile
@last-partizan
last-partizan / theme.lua
Created November 6, 2025 08:57
Nightfox Theme with custom Wombat-inspired colors
-- vim: set fdm=marker:
local theme = os.getenv("NVIM_THEME") or "fox"
return {
{
"EdenEast/nightfox.nvim",
config = function()
local Shade = require("nightfox.lib.shade")
local pal = {
@last-partizan
last-partizan / ts-colors.lua
Created January 21, 2024 09:30
Map treesitter groups to nvim hl groups
-- Fix TS Colors
-- https://github.com/nvim-treesitter/nvim-treesitter/pull/3656/files
-- https://github.com/nvim-treesitter/nvim-treesitter/commit/1ae9b0e4558fe7868f8cda2db65239cfb14836d0
-- https://github.com/nvim-treesitter/nvim-treesitter/blob/master/CONTRIBUTING.md#highlights
local function set_default_hlgroups()
local highlights = {
-- Identifiers
["@variable"] = { link = "Variable", default = true },
["@variable.builtin"] = { link = "Special", default = true },
@last-partizan
last-partizan / rg-queries.md
Created November 11, 2022 09:25
rg queries

Find Django Foreign Keys to model

rg --glob '!migrations' -U '(ForeignKey|OneToOneField)(\[.*\])?\([^\)]*DedicatedServer[^\)]*\)'