This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import json | |
| from pathlib import Path | |
| from sys import stdout | |
| from typing import Any, Callable, Dict, List | |
| import gi | |
| gi.require_version("Gtk", "3.0") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local present, feline = pcall(require, "feline") | |
| if not present then return end | |
| -- Customizations {{{ | |
| local theme = { | |
| aqua = "#7AB0DF", | |
| bg = "#1C212A", | |
| blue = "#5FB0FC", | |
| cyan = "#70C0BA", | |
| darkred = "#FB7373", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- local on = require("on") | |
| -- on.UILeave.CmdlineEnter:desc("test"):group("TEST"):prin("Test!"):only()() | |
| return setmetatable({}, { | |
| __index = function(_, event) | |
| local params = { { event }, opts = {} } | |
| local methods = {} | |
| function methods:ex(cmd) | |
| params.opts[type(cmd) == "string" and "command" or "callback"] = cmd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- place this at ~/.config/nvim/telescope/_extensions/gradle.lua | |
| -- then require("telescope").load_extension("gradle") and rm these two lines | |
| ---@diagnostic disable: undefined-field | |
| local J = require("plenary.job") | |
| local Path = require("plenary.path") | |
| local finders = require("telescope.finders") | |
| local sorters = require("telescope.sorters") | |
| local actions = require("telescope.actions") | |
| local pickers = require("telescope.pickers") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local M = {} | |
| local curl = require("plenary.curl") | |
| local Path = require("plenary.path") | |
| local Job = require("plenary.job") | |
| M._responses = {} | |
| M.config = { | |
| db_path = vim.fn.stdpath("state") .. "/paste.db.json", | |
| tmp_path = "/tmp/paste", | |
| dump_path = "/tmp/dump", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ---@diagnostic disable: need-check-nil | |
| local M = {} | |
| local A = vim.api | |
| local truncate = require("plenary.strings").truncate | |
| M._line = -1 | |
| M._structure = {} | |
| M._util_names = { | |
| g = "gap", | |
| c = "center", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- put this in ~/nvim/lua/telescope/_extensions/kao.lua | |
| -- then call require("telescope").load_extension("kao") after configuring telescope | |
| local actions = require("telescope.actions") | |
| local pickers = require("telescope.pickers") | |
| local finders = require("telescope.finders") | |
| local config = require("telescope.config") | |
| local entry_display = require("telescope.pickers.entry_display") | |
| local make_entry = require("telescope.make_entry") | |
| local actions_state = require("telescope.actions.state") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "multiply": { | |
| "two": 20, | |
| "three": 10 | |
| }, | |
| "add": { | |
| "two": 10, | |
| "three": 20, | |
| "four": 10, | |
| "five": 5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local T = vim.treesitter | |
| local query = T.query | |
| -- caps indicate config values | |
| local SORTERS = {} | |
| SORTERS.ASCII = function(a, b) return string.byte(a:sub(1, 1)) > string.byte(b:sub(1, 1)) end | |
| -- add more | |
| local SELECTED_SORTERS = { SORTERS.ASCII } -- add more | |
| local FILETYPE = vim.o.filetype |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ---@brief [[ | |
| ---Get lines from a buffer > feed the lines into telescope\ | |
| ---Choose from the entries | |
| ---See if the chosen entry is a directory | |
| ---If yes then run :chd <chosen> else do nothing | |
| ---@brief ]] | |
| local finders = require("telescope.finders") | |
| local pickers = require("telescope.pickers") | |
| local config = require("telescope.config") |
NewerOlder