This file contains 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
package customio | |
import ( | |
"errors" | |
"io" | |
) | |
var ErrCanceled = errors.New("operation canceled") | |
func CopyBuffer(dst io.Writer, src io.Reader, buf []byte, cancel chan struct{}) (written int64, err error) { |
This file contains 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 keymap = require "core.keymap" | |
local config = require "core.config" | |
local style = require "core.style" | |
keymap.add { ["ctrl+q"] = "core:quit" } | |
require "user.colors.nord" | |
config.fps = 30 | |
config.ignore_files = "!" |
This file contains 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 style = require "core.style" | |
local common = require "core.common" | |
--[[ Nord palette | |
Polar Night | |
#2e3440 | |
#3b4252 | |
#434c5e | |
#4c566a | |
Snow Storm |
This file contains 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
_M["go"] = require("go") | |
_M["go"].format_command = "goimports" | |
_M["m/f"] = require("functions") | |
keys["`"] = function() _M["m/f"].enclose_selection("`", "`") end | |
keys["'"] = function() _M["m/f"].enclose_selection("'", "'") end | |
keys['"'] = function() _M["m/f"].enclose_selection('"', '"') end | |
keys['('] = function() _M["m/f"].enclose_selection('(', ')') end | |
keys['['] = function() _M["m/f"].enclose_selection('[', ']') end |
This file contains 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
-- Copyright 2007-2020 Mitchell mitchell.att.foicica.com. See LICENSE. | |
-- Dark theme for Textadept. | |
-- Contributions by Ana Balan. | |
local view = view | |
local property, property_int = view.property, view.property_int | |
--[[ Nord palette | |
Polar Night | |
#2e3440 |
NewerOlder