added micro settings
This commit is contained in:
parent
104f366736
commit
83cfcb5745
27 changed files with 1963 additions and 0 deletions
4
micro/bindings.json
Normal file
4
micro/bindings.json
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"Alt-/": "lua:comment.comment",
|
||||||
|
"CtrlUnderscore": "lua:comment.comment",
|
||||||
|
}
|
||||||
BIN
micro/buffers/history
Normal file
BIN
micro/buffers/history
Normal file
Binary file not shown.
17
micro/plug/filemanager/.editorconfig
Normal file
17
micro/plug/filemanager/.editorconfig
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
# EditorConfig is awesome: http://EditorConfig.org
|
||||||
|
|
||||||
|
# top-most EditorConfig file
|
||||||
|
root = true
|
||||||
|
|
||||||
|
# Unix-style newlines with a newline ending every file
|
||||||
|
[*]
|
||||||
|
charset = utf-8
|
||||||
|
end_of_line = lf
|
||||||
|
indent_style = tab
|
||||||
|
indent_size = 2
|
||||||
|
insert_final_newline = true
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
|
||||||
|
# Ignore .md files, because 2 spaces at end-of-line has meaning
|
||||||
|
[*.md]
|
||||||
|
trim_trailing_whitespace = false
|
||||||
109
micro/plug/filemanager/CHANGELOG.md
Normal file
109
micro/plug/filemanager/CHANGELOG.md
Normal file
|
|
@ -0,0 +1,109 @@
|
||||||
|
# Changelog
|
||||||
|
|
||||||
|
All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
|
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [3.4.0] - 2018-10-22
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Issues with Lua's `io.popen` on some systems by using Micro's built-in `RunShellCommand` instead, [thanks to @scottbilas](https://github.com/NicolaiSoeborg/filemanager-plugin/pull/38)
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- Adds the option `filemanager-openonstart` to allow auto-opening the file tree when Micro is started (default OFF)
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- Update README's option's documentation
|
||||||
|
|
||||||
|
## [3.3.1] - 2018-10-03
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- Performance improvement by removing unnecessary refresh of the opened file, [thanks to @jackwilsdon](https://github.com/NicolaiSoeborg/filemanager-plugin/pull/37)
|
||||||
|
|
||||||
|
## [3.3.0] - 2018-09-13
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- The ability to sort folders above files, [thanks to @cbrown1](https://github.com/NicolaiSoeborg/filemanager-plugin/pull/33)
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- The displayed filenames are now correctly only showing their "basename" on Windows
|
||||||
|
|
||||||
|
## [3.2.0] - 2018-02-15
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- The ability to go to parent directory with left arrow (when not minimizing). Thanks @avently
|
||||||
|
- The ability to jump to the `..` as a "parent directory". Thanks @avently
|
||||||
|
|
||||||
|
## [3.1.2] - 2018-02-07
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- The minimum Micro version, which was incorrectly set to v1.4.0. Ref [issue #28](https://github.com/NicolaiSoeborg/filemanager-plugin/issues/28)
|
||||||
|
|
||||||
|
## [3.1.1] - 2018-02-04
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
Ref https://github.com/zyedidia/micro/issues/992 for both of these fixes.
|
||||||
|
|
||||||
|
- The syntax parser not loading correctly (mostly block comments) on opened files. **Requires Micro >= v1.4.0**
|
||||||
|
- An errant tab being inserted into the newly opened file.
|
||||||
|
|
||||||
|
## [3.1.0] - 2018-01-30
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- The ability to hide dotfiles using the `filemanager-showdotfiles` option.
|
||||||
|
- The ability to hide files ignored in your VCS (aka `.gitignore`'d) using the `filemanager-showignored` option. Only works with Git at the moment.
|
||||||
|
- This `CHANGELOG.md`
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- A bug with the `rm` command that caused weird, undefined behaviour to contents within the same dir as the file/dir deleted.
|
||||||
|
- Issue [#24](https://github.com/NicolaiSoeborg/filemanager-plugin/issues/24)
|
||||||
|
|
||||||
|
## [3.0.0] - 2018-01-10
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Issues [#13](https://github.com/NicolaiSoeborg/filemanager-plugin/issues/13), [#14](https://github.com/NicolaiSoeborg/filemanager-plugin/issues/14), [#15](https://github.com/NicolaiSoeborg/filemanager-plugin/issues/15), [#19](https://github.com/NicolaiSoeborg/filemanager-plugin/issues/19), [#20](https://github.com/NicolaiSoeborg/filemanager-plugin/issues/20)
|
||||||
|
- The broken syntax highlighting
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- Directory expansion/compression below itself for viewing more akin to a file tree.
|
||||||
|
- The `rm` command, which deletes the file/directory under the cursor.
|
||||||
|
- The `touch` command, which creates a file with the passed filename.
|
||||||
|
- The `mkdir` command, which creates a directory with the passed filename.
|
||||||
|
- An API, of sorts, for the user to rebind their keys to if they dislike the defaults.
|
||||||
|
- An [editorconfig](http://editorconfig.org/) file.
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- The view that it spawns in to read-only, which requires Micro version >= 1.3.5
|
||||||
|
- The functionality of some keybindings (when in the view) so they work safetly, or at all, with the plugin.
|
||||||
|
- From the `enter` key to `tab` for opening/going into files/dirs (a side-effect of using the read-only setting)
|
||||||
|
|
||||||
|
### Removed
|
||||||
|
|
||||||
|
- The ability to use a lot of keybindings that would otherwise mess with the view, and have no benifit.
|
||||||
|
- The pointless `.gitignore` file.
|
||||||
|
|
||||||
|
[unreleased]: https://github.com/NicolaiSoeborg/filemanager-plugin/compare/v3.4.0...HEAD
|
||||||
|
[3.4.0]: https://github.com/NicolaiSoeborg/filemanager-plugin/compare/v3.3.1...v3.4.0
|
||||||
|
[3.3.1]: https://github.com/NicolaiSoeborg/filemanager-plugin/compare/v3.3.0...v3.3.1
|
||||||
|
[3.3.0]: https://github.com/NicolaiSoeborg/filemanager-plugin/compare/v3.2.0...v3.3.0
|
||||||
|
[3.2.0]: https://github.com/NicolaiSoeborg/filemanager-plugin/compare/v3.1.2...v3.2.0
|
||||||
|
[3.1.2]: https://github.com/NicolaiSoeborg/filemanager-plugin/compare/v3.1.1...v3.1.2
|
||||||
|
[3.1.1]: https://github.com/NicolaiSoeborg/filemanager-plugin/compare/v3.1.0...v3.1.1
|
||||||
|
[3.1.0]: https://github.com/NicolaiSoeborg/filemanager-plugin/compare/v3.0.0...v3.1.0
|
||||||
|
[3.0.0]: https://github.com/NicolaiSoeborg/filemanager-plugin/compare/v2.1.1...v3.0.0
|
||||||
21
micro/plug/filemanager/LICENSE
Normal file
21
micro/plug/filemanager/LICENSE
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2017 Nicolai Søborg
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
56
micro/plug/filemanager/README.md
Normal file
56
micro/plug/filemanager/README.md
Normal file
|
|
@ -0,0 +1,56 @@
|
||||||
|
# Filemanager Plugin
|
||||||
|
|
||||||
|
A simple plugin that allows for easy navigation of a file tree.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
**Installation:** run `plugin install filemanager` and restart Micro.
|
||||||
|
|
||||||
|
## Basics
|
||||||
|
|
||||||
|
The top line always has the current directory's path to show you where you are.\
|
||||||
|
The `..` near the top is used to move back a directory, from your current position.
|
||||||
|
|
||||||
|
All directories have a `/` added to the end of it, and are syntax-highlighted as a `special` character.\
|
||||||
|
If the directory is expanded, there will be a `+` to the left of it. If it is collapsed there will be a `-` instead.
|
||||||
|
|
||||||
|
**NOTE:** If you change files without using the plugin, it can't know what you did. The only fix is to close and open the tree.
|
||||||
|
|
||||||
|
### Options
|
||||||
|
|
||||||
|
| Option | Purpose | Default |
|
||||||
|
| :--------------------------- | :----------------------------------------------------------- | :------ |
|
||||||
|
| `filemanager-showdotfiles` | Show dotfiles (hidden if false) | `true` |
|
||||||
|
| `filemanager-showignored` | Show gitignore'd files (hidden if false) | `true` |
|
||||||
|
| `filemanager-compressparent` | Collapse the parent dir when left is pressed on a child file | `true` |
|
||||||
|
| `filemanager-foldersfirst` | Sorts folders above any files | `true` |
|
||||||
|
| `filemanager-openonstart` | Automatically open the file tree when starting Micro | `false` |
|
||||||
|
|
||||||
|
### Commands and Keybindings
|
||||||
|
|
||||||
|
The keybindings below are the equivalent to Micro's defaults, and not actually set by the plugin. If you've changed any of those keybindings, then that key is used instead.
|
||||||
|
|
||||||
|
If you want to [keybind](https://github.com/zyedidia/micro/blob/master/runtime/help/keybindings.md#rebinding-keys) any of the operations/commands, bind to the labeled API in the table below.
|
||||||
|
|
||||||
|
| Command | Keybinding(s) | What it does | API for `bindings.json` |
|
||||||
|
| :------- | :------------------------- | :------------------------------------------------------------------------------------------ | :------------------------------------ |
|
||||||
|
| `tree` | - | Open/close the tree | `filemanager.toggle_tree` |
|
||||||
|
| - | <kbd>Tab</kbd> & MouseLeft | Open a file, or go into the directory. Goes back a dir if on `..` | `filemanager.try_open_at_cursor` |
|
||||||
|
| - | <kbd>→</kbd> | Expand directory in tree listing | `filemanager.uncompress_at_cursor` |
|
||||||
|
| - | <kbd>←</kbd> | Collapse directory listing | `filemanager.compress_at_cursor` |
|
||||||
|
| - | <kbd>Shift ⬆</kbd> | Go to the target's parent directory | `filemanager.goto_parent_dir` |
|
||||||
|
| - | <kbd>Alt Shift {</kbd> | Jump to the previous directory in the view | `filemanager.goto_next_dir` |
|
||||||
|
| - | <kbd>Alt Shift }</kbd> | Jump to the next directory in the view | `filemanager.goto_prev_dir` |
|
||||||
|
| `rm` | - | Prompt to delete the target file/directory your cursor is on | `filemanager.prompt_delete_at_cursor` |
|
||||||
|
| `rename` | - | Rename the file/directory your cursor is on, using the passed name | `filemanager.rename_at_cursor` |
|
||||||
|
| `touch` | - | Make a new file under/into the file/directory your cursor is on, using the passed name | `filemanager.new_file` |
|
||||||
|
| `mkdir` | - | Make a new directory under/into the file/directory your cursor is on, using the passed name | `filemanager.new_dir` |
|
||||||
|
|
||||||
|
#### Notes
|
||||||
|
|
||||||
|
- `rename`, `touch`, and `mkdir` require a name to be passed when calling.\
|
||||||
|
Example: `rename newnamehere`, `touch filenamehere`, `mkdir dirnamehere`.\
|
||||||
|
If the passed name already exists in the current dir, it will cancel instead of overwriting (for safety).
|
||||||
|
|
||||||
|
- The <kbd>Ctrl w</kbd> keybinding is to switch which buffer your cursor is on.\
|
||||||
|
This isn't specific to the plugin, it's just part of Micro, but many people seem to not know this.
|
||||||
BIN
micro/plug/filemanager/example.jpg
Normal file
BIN
micro/plug/filemanager/example.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 113 KiB |
1366
micro/plug/filemanager/filemanager.lua
Normal file
1366
micro/plug/filemanager/filemanager.lua
Normal file
File diff suppressed because it is too large
Load diff
38
micro/plug/filemanager/repo.json
Normal file
38
micro/plug/filemanager/repo.json
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"Name": "filemanager",
|
||||||
|
"Description": "File manager for Micro",
|
||||||
|
"Tags": ["filetree", "filemanager", "file", "manager"],
|
||||||
|
"Website": "",
|
||||||
|
"Versions": [
|
||||||
|
{
|
||||||
|
"Version": "2.1.1",
|
||||||
|
"Url": "https://github.com/NicolaiSoeborg/filemanager-plugin/archive/v2.1.1.zip",
|
||||||
|
"Require": {
|
||||||
|
"micro": ">=1.3.2"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Version": "3.1.0",
|
||||||
|
"Url": "https://github.com/NicolaiSoeborg/filemanager-plugin/archive/v3.1.0.zip",
|
||||||
|
"Require": {
|
||||||
|
"micro": ">=1.3.5"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Version": "3.4.0",
|
||||||
|
"Url": "https://github.com/NicolaiSoeborg/filemanager-plugin/archive/v3.4.0.zip",
|
||||||
|
"Require": {
|
||||||
|
"micro": ">=1.4.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Version": "3.5.0",
|
||||||
|
"Url": "https://github.com/NicolaiSoeborg/filemanager-plugin/archive/v3.4.0.zip",
|
||||||
|
"Require": {
|
||||||
|
"micro": ">=2.0.0-1"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
9
micro/plug/filemanager/syntax.yaml
Normal file
9
micro/plug/filemanager/syntax.yaml
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
filetype: filemanager
|
||||||
|
|
||||||
|
detect:
|
||||||
|
filename: "^filemanager$"
|
||||||
|
|
||||||
|
rules:
|
||||||
|
# The "..", the separator line thing, and directories
|
||||||
|
# Optionally, add this below to highlight the ascii line: "^─*$"
|
||||||
|
- special: "^\\.\\.$|\\-\\s.*|\\+\\s.*"
|
||||||
1
micro/plug/fzf/README.md
Normal file
1
micro/plug/fzf/README.md
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
Provides a `fzf` command in micro to open a file in the current pane using fzf.
|
||||||
38
micro/plug/fzf/main.lua
Normal file
38
micro/plug/fzf/main.lua
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
VERSION = "1.1.1"
|
||||||
|
|
||||||
|
local micro = import("micro")
|
||||||
|
local shell = import("micro/shell")
|
||||||
|
local config = import("micro/config")
|
||||||
|
local buffer = import("micro/buffer")
|
||||||
|
|
||||||
|
function fzf(bp)
|
||||||
|
if shell.TermEmuSupported then
|
||||||
|
local err = shell.RunTermEmulator(bp, "fzf", false, true, fzfOutput, {bp})
|
||||||
|
if err ~= nil then
|
||||||
|
micro.InfoBar():Error(err)
|
||||||
|
end
|
||||||
|
else
|
||||||
|
local output, err = shell.RunInteractiveShell("fzf", false, true)
|
||||||
|
if err ~= nil then
|
||||||
|
micro.InfoBar():Error(err)
|
||||||
|
else
|
||||||
|
fzfOutput(output, {bp})
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
function fzfOutput(output, args)
|
||||||
|
local bp = args[1]
|
||||||
|
local strings = import("strings")
|
||||||
|
output = strings.TrimSpace(output)
|
||||||
|
if output ~= "" then
|
||||||
|
local buf, err = buffer.NewBufferFromFile(output)
|
||||||
|
if err == nil then
|
||||||
|
bp:OpenBuffer(buf)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
function init()
|
||||||
|
config.MakeCommand("fzf", fzf, config.NoComplete)
|
||||||
|
end
|
||||||
32
micro/plug/fzf/repo.json
Normal file
32
micro/plug/fzf/repo.json
Normal file
|
|
@ -0,0 +1,32 @@
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"Name": "fzf",
|
||||||
|
"Description": "adds support to opening files via fzf",
|
||||||
|
"Website": "https://github.com/samdmarshall/micro-fzf-plugin",
|
||||||
|
"Tags": ["fzf"],
|
||||||
|
"Versions": [
|
||||||
|
{
|
||||||
|
"Version": "1.1.1",
|
||||||
|
"Url": "https://github.com/micro-editor/updated-plugins/releases/download/v1.0.0/fzf-1.1.1.zip",
|
||||||
|
"Require": {
|
||||||
|
"micro": ">=2.0.0-1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Version": "1.1.0",
|
||||||
|
"Url": "https://github.com/micro-editor/updated-plugins/releases/download/v1.0.0/fzf-1.1.0.zip",
|
||||||
|
"Require": {
|
||||||
|
"micro": ">=2.0.0-1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Version": "1.0.5",
|
||||||
|
"Url": "https://github.com/samdmarshall/micro-fzf-plugin/archive/v1.0.5.zip",
|
||||||
|
"Require": {
|
||||||
|
"micro": ">=1.1.2"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
|
||||||
21
micro/plug/nordcolors/LICENSE
Normal file
21
micro/plug/nordcolors/LICENSE
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2020 Kiran Wells
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
23
micro/plug/nordcolors/README.md
Normal file
23
micro/plug/nordcolors/README.md
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
# Micro Nord Colors
|
||||||
|
|
||||||
|
A [Nord](https://www.nordtheme.com/) colorscheme port for the [Micro](https://micro-editor.github.io/index.html) editor.
|
||||||
|
|
||||||
|
See the help file for other issues, such as off colors or no transparency.
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
Two new color schemes, supporting both true-color and 16-color versions. The 16-color versions require that the terminal has the Nord colorscheme installed, and support transparency (if the terminal and compositor are configured for it).
|
||||||
|
|
||||||
|
## Screenshots
|
||||||
|
|
||||||
|
Truecolor:
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
16-Color (with transparency):
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|

|
||||||
40
micro/plug/nordcolors/colorschemes/nord-16-light.micro
Normal file
40
micro/plug/nordcolors/colorschemes/nord-16-light.micro
Normal file
|
|
@ -0,0 +1,40 @@
|
||||||
|
|
||||||
|
color-link default "black"
|
||||||
|
color-link comment "white"
|
||||||
|
color-link comment.bright "bold white"
|
||||||
|
color-link identifier "brightblack"
|
||||||
|
color-link identifier.class "brightcyan"
|
||||||
|
color-link identifier.macro "white"
|
||||||
|
color-link identifier.var "brightblack"
|
||||||
|
color-link constant "brightblack"
|
||||||
|
color-link constant.bool "brightgreen"
|
||||||
|
color-link constant.bool.true "brightgreen"
|
||||||
|
color-link constant.bool.false "brightred"
|
||||||
|
color-link constant.number "magenta"
|
||||||
|
color-link constant.specialChar "yellow"
|
||||||
|
color-link constant.string "green"
|
||||||
|
color-link constant.string.url "brightyellow"
|
||||||
|
color-link statement "cyan"
|
||||||
|
color-link symbol "white"
|
||||||
|
color-link symbol.brackets "white"
|
||||||
|
color-link symbol.operator "brightblue"
|
||||||
|
color-link symbol.tag "brightblue"
|
||||||
|
color-link preproc "blue"
|
||||||
|
color-link preproc.shebang "white"
|
||||||
|
color-link type "brightcyan"
|
||||||
|
color-link type.keyword "brightblue"
|
||||||
|
color-link special "brightblue"
|
||||||
|
color-link underlined "black,brightwhite"
|
||||||
|
color-link error "bold red"
|
||||||
|
color-link todo "bold magenta"
|
||||||
|
color-link statusline "blue,brightwhite"
|
||||||
|
color-link tabbar "brightblack,brightwhite"
|
||||||
|
color-link indent-char "brightblack"
|
||||||
|
color-link line-number "white,brightwhite"
|
||||||
|
color-link gutter-error "red"
|
||||||
|
color-link gutter-warning "yellow"
|
||||||
|
color-link cursor-line "brightwhite"
|
||||||
|
color-link current-line-number "brightblack"
|
||||||
|
color-link color-column "white"
|
||||||
|
color-link ignore "brightblack, white"
|
||||||
|
color-link divider "white"
|
||||||
40
micro/plug/nordcolors/colorschemes/nord-16.micro
Normal file
40
micro/plug/nordcolors/colorschemes/nord-16.micro
Normal file
|
|
@ -0,0 +1,40 @@
|
||||||
|
|
||||||
|
color-link default "brightwhite"
|
||||||
|
color-link comment "brightblack"
|
||||||
|
color-link comment.bright "bold brightblack"
|
||||||
|
color-link identifier "white"
|
||||||
|
color-link identifier.class "brightcyan"
|
||||||
|
color-link identifier.macro "brightblack"
|
||||||
|
color-link identifier.var "white"
|
||||||
|
color-link constant "white"
|
||||||
|
color-link constant.bool "brightgreen"
|
||||||
|
color-link constant.bool.true "brightgreen"
|
||||||
|
color-link constant.bool.false "brightred"
|
||||||
|
color-link constant.number "magenta"
|
||||||
|
color-link constant.specialChar "yellow"
|
||||||
|
color-link constant.string "green"
|
||||||
|
color-link constant.string.url "brightyellow"
|
||||||
|
color-link statement "cyan"
|
||||||
|
color-link symbol "brightblack"
|
||||||
|
color-link symbol.brackets "brightblack"
|
||||||
|
color-link symbol.operator "brightblue"
|
||||||
|
color-link symbol.tag "brightblue"
|
||||||
|
color-link preproc "blue"
|
||||||
|
color-link preproc.shebang "brightblack"
|
||||||
|
color-link type "brightcyan"
|
||||||
|
color-link type.keyword "brightblue"
|
||||||
|
color-link special "brightblue"
|
||||||
|
color-link underlined "brightwhite,black"
|
||||||
|
color-link error "bold red"
|
||||||
|
color-link todo "bold magenta"
|
||||||
|
color-link statusline "blue,black"
|
||||||
|
color-link tabbar "white,black"
|
||||||
|
color-link indent-char "white"
|
||||||
|
color-link line-number "brightblack,black"
|
||||||
|
color-link gutter-error "red"
|
||||||
|
color-link gutter-warning "yellow"
|
||||||
|
color-link cursor-line "black"
|
||||||
|
color-link current-line-number "white"
|
||||||
|
color-link color-column "brightblack"
|
||||||
|
color-link ignore "white, brightblack"
|
||||||
|
color-link divider "brightblack"
|
||||||
40
micro/plug/nordcolors/colorschemes/nord-tc-light.micro
Normal file
40
micro/plug/nordcolors/colorschemes/nord-tc-light.micro
Normal file
|
|
@ -0,0 +1,40 @@
|
||||||
|
|
||||||
|
color-link default "#2E3440,#ECEFF4"
|
||||||
|
color-link comment "#D8DEE9,#ECEFF4"
|
||||||
|
color-link comment.bright "#6C768A,#ECEFF4"
|
||||||
|
color-link identifier "#4C566A,#ECEFF4"
|
||||||
|
color-link identifier.class "#8FBCBB,#ECEFF4"
|
||||||
|
color-link identifier.macro "#B48EAD,#ECEFF4"
|
||||||
|
color-link identifier.var "#4C566A,#ECEFF4"
|
||||||
|
color-link constant "#8FBCBB,#ECEFF4"
|
||||||
|
color-link constant.bool "#C3DEAC,#ECEFF4"
|
||||||
|
color-link constant.bool.true "#C3DEAC,#ECEFF4"
|
||||||
|
color-link constant.bool.false "#DF818A,#ECEFF4"
|
||||||
|
color-link constant.number "#B48EAD,#ECEFF4"
|
||||||
|
color-link constant.specialChar "#EBCB8B,#ECEFF4"
|
||||||
|
color-link constant.string "#A3BE8C,#ECEFF4"
|
||||||
|
color-link constant.string.url "#FBEBAB,#ECEFF4"
|
||||||
|
color-link statement "#88C0D0,#ECEFF4"
|
||||||
|
color-link symbol "#2E3440,#ECEFF4"
|
||||||
|
color-link symbol.brackets "#6C768A,#ECEFF4"
|
||||||
|
color-link symbol.operator "#81A1C1,#ECEFF4"
|
||||||
|
color-link symbol.tag "#81A1C1,#ECEFF4"
|
||||||
|
color-link preproc "#5E81AC,#ECEFF4"
|
||||||
|
color-link preproc.shebang "#434C5E,#ECEFF4"
|
||||||
|
color-link type "#8FBCBB,#ECEFF4"
|
||||||
|
color-link type.keyword "#81A1C1,#ECEFF4"
|
||||||
|
color-link special "#81A1C1,#ECEFF4"
|
||||||
|
color-link underlined "#5E81AC,#D8DEE9"
|
||||||
|
color-link error "bold #BF616A,#ECEFF4"
|
||||||
|
color-link todo "bold #B48EAD,#ECEFF4"
|
||||||
|
color-link statusline "#81A1C1,#D8DEE9"
|
||||||
|
color-link tabbar "#E5E9F0,#D8DEE9"
|
||||||
|
color-link indent-char "#D8DEE9,#ECEFF4"
|
||||||
|
color-link line-number "#ECEFF4,#D8DEE9"
|
||||||
|
color-link gutter-error "#BF616A,#D8DEE9"
|
||||||
|
color-link gutter-warning "#EBCB8B,#D8DEE9"
|
||||||
|
color-link cursor-line "#E5E9f0"
|
||||||
|
color-link current-line-number "#4C566A,#D8DEE9"
|
||||||
|
color-link color-column "#D8DEE9"
|
||||||
|
color-link ignore "#4C566A, #D8DEE9"
|
||||||
|
color-link divider "#D8DEE9"
|
||||||
40
micro/plug/nordcolors/colorschemes/nord-tc.micro
Normal file
40
micro/plug/nordcolors/colorschemes/nord-tc.micro
Normal file
|
|
@ -0,0 +1,40 @@
|
||||||
|
|
||||||
|
color-link default "#ECEFF4,#2E3440"
|
||||||
|
color-link comment "#4C566A,#2E3440"
|
||||||
|
color-link comment.bright "#6C768A,#2E3440"
|
||||||
|
color-link identifier "#D8DEE9,#2E3440"
|
||||||
|
color-link identifier.class "#8FBCBB,#2E3440"
|
||||||
|
color-link identifier.macro "#B48EAD,#2E3440"
|
||||||
|
color-link identifier.var "#D8DEE9,#2E3440"
|
||||||
|
color-link constant "#8FBCBB,#2E3440"
|
||||||
|
color-link constant.bool "#C3DEAC,#2E3440"
|
||||||
|
color-link constant.bool.true "#C3DEAC,#2E3440"
|
||||||
|
color-link constant.bool.false "#DF818A,#2E3440"
|
||||||
|
color-link constant.number "#B48EAD,#2E3440"
|
||||||
|
color-link constant.specialChar "#EBCB8B,#2E3440"
|
||||||
|
color-link constant.string "#A3BE8C,#2E3440"
|
||||||
|
color-link constant.string.url "#FBEBAB,#2E3440"
|
||||||
|
color-link statement "#88C0D0,#2E3440"
|
||||||
|
color-link symbol "#ECEFF4,#2E3440"
|
||||||
|
color-link symbol.brackets "#6C768A,#2E3440"
|
||||||
|
color-link symbol.operator "#81A1C1,#2E3440"
|
||||||
|
color-link symbol.tag "#81A1C1,#2E3440"
|
||||||
|
color-link preproc "#5E81AC,#2E3440"
|
||||||
|
color-link preproc.shebang "#434C5E,#2E3440"
|
||||||
|
color-link type "#8FBCBB,#2E3440"
|
||||||
|
color-link type.keyword "#81A1C1,#2E3440"
|
||||||
|
color-link special "#81A1C1,#2E3440"
|
||||||
|
color-link underlined "#5E81AC,#3B4252"
|
||||||
|
color-link error "bold #BF616A,#2E3440"
|
||||||
|
color-link todo "bold #B48EAD,#2E3440"
|
||||||
|
color-link statusline "#81A1C1,#3B4252"
|
||||||
|
color-link tabbar "#E5E9F0,#3B4252"
|
||||||
|
color-link indent-char "#4C566A,#2E3440"
|
||||||
|
color-link line-number "#4C566A,#3B4252"
|
||||||
|
color-link gutter-error "#BF616A,#4C566A"
|
||||||
|
color-link gutter-warning "#EBCB8B,#4C566A"
|
||||||
|
color-link cursor-line "#3B4252"
|
||||||
|
color-link current-line-number "#D8DEE9,#4C566A"
|
||||||
|
color-link color-column "#4C566A"
|
||||||
|
color-link ignore "#D8DEE9, #4C566A"
|
||||||
|
color-link divider "#4C566A"
|
||||||
34
micro/plug/nordcolors/help/nordcolors.md
Normal file
34
micro/plug/nordcolors/help/nordcolors.md
Normal file
|
|
@ -0,0 +1,34 @@
|
||||||
|
# Micro Nord Colors
|
||||||
|
|
||||||
|
A [Nord](https://www.nordtheme.com/) colorscheme port for the [Micro](https://micro-editor.github.io/index.html) editor.
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
`nord-tc`: A truecolor dark theme
|
||||||
|
`nord-16`: A 16-color dark theme
|
||||||
|
`nord-tc-light`: A truecolor light theme
|
||||||
|
`nord-16-light`: A 16-color light theme
|
||||||
|
|
||||||
|
## FAQ (useful info)
|
||||||
|
|
||||||
|
### Why are the themes not showing up?
|
||||||
|
|
||||||
|
This issue should have been fixed with the 1.1.4 update. If you have updated and it is still not working, please open a new issue on the GitHub. (Also, try restarting micro first.)
|
||||||
|
|
||||||
|
### Why do the colors look off?
|
||||||
|
|
||||||
|
The truecolor schemes require micro to be started with the environment variable "MICRO_TRUECOLOR" equal to 1 or true. For these, make sure you do:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
MICRO_TRUECOLOR=1 micro
|
||||||
|
```
|
||||||
|
|
||||||
|
The 16-color schemes require the terminal to have the nord color scheme installed. See the [Nord ports page](https://www.nordtheme.com/ports) for config files for your terminal.
|
||||||
|
|
||||||
|
### Why is there no transparency?
|
||||||
|
|
||||||
|
For transparency to work, you need transparency enabled in your terminal, a compositor (possibly), and one of the 16-color versions enabled. The way it works is that the 16-color themes have no background color, defaulting to the terminal's native background.
|
||||||
|
|
||||||
|
### Why do the light colorschemes look bad?
|
||||||
|
|
||||||
|
I did my best to convert the dark schemes to a usable light scheme, but it is difficult to work with the Nord colors in light themes. You can edit the files yourself in the `.config/micro/colorschemes` directory, and if you think you have improved it, make a pull request on the [GitHub page.](https://github.com/KiranWells/micro-nord-tc-colors/)
|
||||||
9
micro/plug/nordcolors/nordcolors.lua
Normal file
9
micro/plug/nordcolors/nordcolors.lua
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
VERSION = "1.1.4"
|
||||||
|
|
||||||
|
local config = import("micro/config")
|
||||||
|
|
||||||
|
config.AddRuntimeFile("nordcolors", config.RTColorscheme, "colorschemes/nord-16.micro")
|
||||||
|
config.AddRuntimeFile("nordcolors", config.RTColorscheme, "colorschemes/nord-tc.micro")
|
||||||
|
config.AddRuntimeFile("nordcolors", config.RTColorscheme, "colorschemes/nord-16-light.micro")
|
||||||
|
config.AddRuntimeFile("nordcolors", config.RTColorscheme, "colorschemes/nord-tc-light.micro")
|
||||||
|
config.AddRuntimeFile("nordcolors", config.RTHelp, "help/nordcolors.md")
|
||||||
BIN
micro/plug/nordcolors/pics/nord-16-light.jpg
Normal file
BIN
micro/plug/nordcolors/pics/nord-16-light.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 156 KiB |
BIN
micro/plug/nordcolors/pics/nord-16.jpg
Normal file
BIN
micro/plug/nordcolors/pics/nord-16.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 170 KiB |
BIN
micro/plug/nordcolors/pics/nord-tc-light.jpg
Normal file
BIN
micro/plug/nordcolors/pics/nord-tc-light.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 125 KiB |
BIN
micro/plug/nordcolors/pics/nord-tc.jpg
Normal file
BIN
micro/plug/nordcolors/pics/nord-tc.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 132 KiB |
22
micro/plug/nordcolors/repo.json
Normal file
22
micro/plug/nordcolors/repo.json
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
[{
|
||||||
|
"Name": "nordcolors",
|
||||||
|
"Description": "A color palette based on the Nord colorscheme",
|
||||||
|
"Tags": ["nord", "color", "truecolor", "16"],
|
||||||
|
"Website": "https://github.com/KiranWells/micro-nord-tc-colors/",
|
||||||
|
"Versions": [
|
||||||
|
{
|
||||||
|
"Version": "1.1.4",
|
||||||
|
"Url": "https://github.com/KiranWells/micro-nord-tc-colors/archive/v1.1.4.zip",
|
||||||
|
"Require": {
|
||||||
|
"micro": ">=1.1.3"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Version": "1.0.0",
|
||||||
|
"Url": "https://github.com/KiranWells/micro-nord-tc-colors/archive/v1.0.0.zip",
|
||||||
|
"Require": {
|
||||||
|
"micro": ">=1.1.3"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}]
|
||||||
3
micro/settings.json
Normal file
3
micro/settings.json
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"colorscheme": "nord-16"
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue