i3 Window Manager Cheat Sheet
- i3 -- A tiling window manager
https://i3wm.org/
https://github.com/i3/i3
https://github.com/Airblader/i3 - Sway -- i3-compatible Wayland compositor
https://swaywm.org/
https://github.com/swaywm/sway
--[[ | |
blogpost: | |
https://vonheikemen.github.io/devlog/tools/setup-nvim-lspconfig-plus-nvim-cmp/ | |
Dependencies: | |
LSP: | |
https://github.com/neovim/nvim-lspconfig | |
https://github.com/williamboman/mason.nvim (optional) | |
https://github.com/williamboman/mason-lspconfig.nvim (optional) |
package main | |
import ( | |
"flag" | |
"log" | |
"os" | |
"syscall" | |
"unsafe" | |
"path/filepath" | |
"bufio" |
require("json"); | |
require("socket.http") | |
require("socket.url") | |
function babelfish(lang, query) | |
lang = lang or "en" | |
query = query or "" | |
if lang == "en" or query == "" then | |
return query |
# -*- coding: utf-8 -*- | |
""" | |
You need to fill in your API key from google below. Note that querying | |
supported languages is not implemented. | |
Language Code | |
-------- ---- | |
Afrikaans af | |
Albanian sq | |
Arabic ar |
;; With this code, yasnippet will expand the snippet if company didn't complete the word | |
;; replace company-complete-common with company-complete if you're using it | |
(advice-add 'company-complete-common :before (lambda () (setq my-company-point (point)))) | |
(advice-add 'company-complete-common :after (lambda () | |
(when (equal my-company-point (point)) | |
(yas-expand)))) |
-- 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") |
Suppose you have weird taste and you absolutely want:
Your first reflex is probably to put those lines somewhere in your vimrc
:
" ========================================================================/// | |
" 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 |