Skip to content

Instantly share code, notes, and snippets.

View myypo's full-sized avatar

Mykyta myypo

  • Ukraine
  • 22:18 (UTC +03:00)
View GitHub Profile
#!/usr/bin/env bash
ws_state=$(hyprctl workspaces -j)
cli_state=$(hyprctl clients -j | jq -r 'map(select(.workspace.id > 0))')
curr_ws_id=$(hyprctl activeworkspace -j | jq -r .id)
new_ws_id=0
hypr_cmds=""
i=0
while read -r v; do
local yank_group = vim.api.nvim_create_augroup("highlight_yank", { clear = true })
-- Set cursor position before yanking
vim.api.nvim_create_autocmd("ModeChanged", {
group = yank_group,
pattern = "*",
callback = function()
vim.g.pre_yank_cursor_pos = vim.fn.getcurpos()
end,
})
@myypo
myypo / cmp.lua
Created April 16, 2024 14:35
My cmp config at the moment of creating this gist
return {
"hrsh7th/nvim-cmp",
event = { "InsertEnter", "CmdlineEnter" },
dependencies = {
"hrsh7th/cmp-nvim-lsp",
"hrsh7th/cmp-buffer",
-- "hrsh7th/cmp-nvim-lsp-signature-help",
"saadparwaiz1/cmp_luasnip",
"L3MON4D3/LuaSnip",
"hrsh7th/cmp-nvim-lua",
@myypo
myypo / resume.json
Last active February 4, 2024 20:53
Resume
{
"meta": {
"theme": "macchiato"
},
"basics": {
"name": "Mykyta Polchanov",
"label": "Backend Developer",
"image": "https://avatars.githubusercontent.com/u/110892040?v=4",
"summary": "Backend Developer with experience working both autonomously and in close cooperation with a team. Due to my product company background I am accustomed to picking up new technologies and roles.",
"email": "mykyta.polchanov@gmail.com",
return {
"mxsdev/nvim-dap-vscode-js",
ft = { "typescript", "javascript" },
dependencies = {
{
"microsoft/vscode-js-debug",
version = "1.x",
build = "npm i && npm run compile vsDebugServerBundle && mv dist out",
},
},