Skip to content

Instantly share code, notes, and snippets.

@khvorov45
khvorov45 / init.lua
Last active August 9, 2023 03:52
neovim config
vim.g.mapleader = " "
vim.g.maplocalleader = " "
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
@khvorov45
khvorov45 / 10xCustomPython.py
Last active June 16, 2023 13:45
10xCustomPython
import N10X
import subprocess
def MoveToPreviousEmptyLineSelect():
curSelection = N10X.Editor.GetCursorSelection()
cursor = N10X.Editor.GetCursorPos()
posBefore = curSelection[0]
if (cursor[1] == curSelection[0][1]):
posBefore = curSelection[1]
N10X.Editor.ExecuteCommand("MoveToPreviousEmptyLine")