Skip to content

Instantly share code, notes, and snippets.

View yassinehaddoudi's full-sized avatar

Yassine Haddoudi yassinehaddoudi

View GitHub Profile
@VonHeikemen
VonHeikemen / snippet-expansion.lua
Last active December 16, 2023 08:55
enhanced native completion to expand snippets
-- based on u/YungDaVinci work:
-- https://www.reddit.com/r/neovim/comments/ydlgzi/expand_lsp_snippets_with_luasnip_while_using/
vim.api.nvim_create_augroup('user-snippet-expand', {})
vim.api.nvim_create_autocmd('CompleteDone', {
group = 'user-snippet-expand',
desc = 'Expand LSP snippet',
pattern = '*',
callback = function(opts)
local comp = vim.v.completed_item
@elonmallin
elonmallin / ssh-copy-id.ps1
Last active June 13, 2024 09:36
One-liner ssh-keygen and ssh-copy-id for Windows powershell
ssh-keygen && cat $env:userprofile/.ssh/id_rsa.pub | ssh user@linuxserver 'cat >> .ssh/authorized_keys'