Skip to content

Instantly share code, notes, and snippets.

@ur4ltz
ur4ltz / lua-lsp.lua
Created May 12, 2021 — forked from folke/lua-lsp.lua
Correct sumneko lua lsp setup for init.lua and plugin development
View lua-lsp.lua
-- put this file somewhere in your nvim config, like: ~/.config/nvim/lua/config/lua-lsp.lua
-- usage: require'lspconfig'.sumneko_lua.setup(require("config.lua-lsp"))
local library = {}
local path = vim.split(package.path, ";")
-- this is the ONLY correct way to setup your path
table.insert(path, "lua/?.lua")
table.insert(path, "lua/?/init.lua")
@ur4ltz
ur4ltz / colorscheme-override.md
Created May 10, 2021 — forked from romainl/colorscheme-override.md
The right way to override any highlighting if you don't want to edit the colorscheme file directly
View colorscheme-override.md

The right way to override any highlighting if you don't want to edit the colorscheme file directly

Suppose you have weird taste and you absolutely want:

  • your visual selection to always have a green background and black foreground,
  • your active statusline to always have a white background and red foreground,
  • your very own deep blue background.

Your first reflex is probably to put those lines somewhere in your vimrc:

@ur4ltz
ur4ltz / import.vim
Created May 4, 2021 — forked from mg979/import.vim
Import Ultisnips snippets in vim-vsnip
View import.vim
" ========================================================================///
" Description: import UltiSnips snippets as VsCode snippets for vim-vsnip
" File: import.vim
" Author: Gianmaria Bajo <mg1979@git.gmail.com>
" License: MIT
" Created: dom 09 agosto 2020 13:14:35
" Modified: dom 09 agosto 2020 15:33:32
" ========================================================================///
function! import#snippets(ask_confirm) abort
@ur4ltz
ur4ltz / livereload.lua
Created Apr 19, 2021 — forked from windwp/livereload.lua
livereload for plugin development on lua
View livereload.lua
#Neovim Trick
Live Reload on plugin development and init.lua
# Demo
# How
* [ ] code
@ur4ltz
ur4ltz / tmux.md
Created Mar 27, 2021 — forked from samael500/tmux.md
tmux cheatsheet
View tmux.md

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

# remap prefix to Control + a
@ur4ltz
ur4ltz / handler.lua
Created Mar 27, 2021 — forked from samael500/handler.lua
Validating payloads from GitHub webhooks with Nginx + Lua
View handler.lua
-- luarocks install JSON4Lua
-- luarocks install luacrypto
local json = require "json"
local crypto = require "crypto"
local secret = '<MY SUPER SECRET>'
local event = 'push'
local branch = 'refs/heads/master'
View mpv-btfs.lua
--[[
script to make mpv play torrents/magnets directly using btfs
requires:
- linux
- btfs
- xterm (optional)
usage:
@ur4ltz
ur4ltz / difftool_vimrc.vim
Created Feb 21, 2021 — forked from samoshkin/difftool_vimrc.vim
Test vimrc configuration to turn Vim into a difftool
View difftool_vimrc.vim
set nocompatible
filetype plugin indent on
set tabstop=2 softtabstop=2 shiftwidth=2 expandtab
set number
set hidden
set splitbelow
set splitright
@ur4ltz
ur4ltz / vimrc-merge.vim
Created Feb 20, 2021 — forked from samoshkin/vimrc-merge.vim
Test vimrc configuration to turn Vim into a mergetool
View vimrc-merge.vim
set nocompatible
filetype plugin indent on
set tabstop=2 softtabstop=2 shiftwidth=2 expandtab
set number
set hidden
set splitbelow
set splitright
@ur4ltz
ur4ltz / st4-changelog.md
Created Feb 20, 2021 — forked from jfcherng/st4-changelog.md
Sublime Text 4 changelog just because it's not on the official website yet.
View st4-changelog.md

Converted via https://domchristie.github.io/turndown

Sublime Text/Merge 中文 Telegram 交流群組: https://t.me/sublime_tw

About Sublime Text 4

ST 4 is currently under private alpha for power users to test and report issues to let the dev team make it polished before it gets publicly announced. It has been almost under alpha for 8 months already and it's actually kind of stable for daily use now. If you have a ST 3 license, you can join the offical ST Discord chat server to download and test it. And the most important thing, report issues you encoutered so ST 4 can become better. I hope people can interact with the dev team more so I don't directly put download links here but maybe you are smart enough to guess them :)

Dev Channel Changelog