Skip to content

Instantly share code, notes, and snippets.

View KaminariOS's full-sized avatar
🎯
Focusing

Kosumi KaminariOS

🎯
Focusing
View GitHub Profile
@KaminariOS
KaminariOS / gist:26bffd2f08032e7b836a62801d69b62a
Created November 30, 2025 22:41
Nvim copy over SSH(osc 52)
-- Only copy is supported, paste with Ctrl+shift+v
if vim.env.SSH_TTY then
local osc52 = require("vim.ui.clipboard.osc52")
local function copy_reg(reg)
local orig = osc52.copy(reg)
return function(lines, regtype)
-- Write to Vim's internal register
vim.fn.setreg(reg, table.concat(lines, "\n"), regtype)
@KaminariOS
KaminariOS / README.md
Created December 24, 2022 00:25 — forked from pmenke-de/README.md
Using CLion with Nix

let's say you have a C++ project in Nix that you want to work on with CLion so that the nix dependencies are available.

  1. create a .nix utility directory in your project directory.
  2. put the below nix-run.sh and nix-cmake.sh in the .nix directory.
  3. in the .nix directory create symlinks for make, gcc, g++ - and maybe more tools, that need to have the nix dependencies and build tools available - and point them to nix-run.sh
  4. then, in Settings -> Build, Execution, Deployment -> Toolchains set CMake to the path to nix-cmake.sh and point all other build tools to the symlinks you've created.