Skip to content

Instantly share code, notes, and snippets.

View kLabz's full-sized avatar
🦆
\_o<

Rudy Ges kLabz

🦆
\_o<
View GitHub Profile
lua << EOF
local nvim_lsp = require('lspconfig')
nvim_lsp.pyright.setup{}
-- Use an on_attach function to only map the following keys
-- after the language server attaches to the current buffer
local on_attach = function(client, bufnr)
local function buf_set_keymap(...) vim.api.nvim_buf_set_keymap(bufnr, ...) end
local function buf_set_option(...) vim.api.nvim_buf_set_option(bufnr, ...) end
let mapleader=";"
" Disable F1
noremap <F1> <Nop>
nnoremap <F1> <Nop>
inoremap <F1> <Nop>
vnoremap <F1> <Nop>
" Neovim configuration
@kLabz
kLabz / ANSI.md
Created December 4, 2022 11:59 — forked from fnky/ANSI.md
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@kLabz
kLabz / Job.hx
Last active December 11, 2022 10:53
Lua test
#if macro
import haxe.macro.Context;
import haxe.macro.Expr;
import haxe.macro.TypeTools;
#end
@:remove // Doesn't seem to work on lua, eh
interface Job<TJobOpt:{}> {}
@:pure