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 / 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[^\)]*\)'