Compare commits

...

2 Commits

3 changed files with 64 additions and 83 deletions

View File

@@ -1,45 +1,31 @@
# -----------------------------------------------------------------------------
# Kanagawa Paper Ink
# Upstream: https://github.com/thesimonho/kanagawa-paper.nvim/master/extras/alacritty/kanagawa-paper-ink.toml
# URL: https://github.com/alacritty/alacritty
# -----------------------------------------------------------------------------
# https://github.com/alacritty/alacritty-theme/blob/master/themes/nordic.toml
# Colors (Nordic)
[colors.primary]
background = '#1F1F28'
foreground = '#DCD7BA'
[colors.cursor]
cursor = '#c4b28a'
text = '#1F1F28'
[colors.selection]
background = '#363646'
foreground = '#9e9b93'
background = '#242933'
foreground = '#BBBDAF'
[colors.normal]
black = '#393836'
red = '#c4746e'
green = '#699469'
yellow = '#c4b28a'
blue = '#435965'
magenta = '#a292a3'
cyan = '#8ea49e'
white = '#C8C093'
black = '#191C1D'
red = '#BD6062'
green = '#A3D6A9'
yellow = '#F0DFAF'
blue = '#8FB4D8'
magenta = '#C7A9D9'
cyan = '#B6D7A8'
white = '#BDC5BD'
[colors.bright]
black = '#aca9a4'
red = '#cc928e'
green = '#72a072'
yellow = '#d4c196'
blue = '#698a9b'
magenta = '#b4a7b5'
cyan = '#96ada7'
white = '#d5cd9d'
black = '#727C7C'
red = '#D18FAF'
green = '#B7CEB0'
yellow = '#BCBCBC'
blue = '#E0CF9F'
magenta = '#C7A9D9'
cyan = '#BBDA97'
white = '#BDC5BD'
[[colors.indexed_colors]]
index = 16
color = '#b6927b'
[[colors.indexed_colors]]
index = 17
color = '#c4746e'
[colors.selection]
text = '#000000'
background = '#F0DFAF'

View File

@@ -1,45 +1,35 @@
# -----------------------------------------------------------------------------
# Kanagawa Paper Canvas
# Upstream: https://github.com/thesimonho/kanagawa-paper.nvim/master/extras/alacritty/kanagawa-paper-canvas.toml
# URL: https://github.com/alacritty/alacritty
# -----------------------------------------------------------------------------
# https://github.com/alacritty/alacritty-theme/blob/master/themes/night_owlish_light.toml
# Colors (Night Owlish Light)
[colors.primary]
background = '#e1e1de'
foreground = '#595b62'
[colors.cursor]
cursor = '#618bb6'
text = '#e1e1de'
[colors.selection]
background = '#c4cbdc'
foreground = '#858479'
background = '#ffffff'
foreground = '#403f53'
[colors.normal]
black = '#4c4c65'
red = '#b35560'
green = '#57786c'
yellow = '#a67337'
blue = '#719ac2'
magenta = '#ac7085'
cyan = '#526c79'
white = '#858479'
black = '#011627'
red = '#d3423e'
green = '#2aa298'
yellow = '#daaa01'
blue = '#4876d6'
magenta = '#403f53'
cyan = '#08916a'
white = '#7a8181'
[colors.bright]
black = '#5c5c75'
red = '#c75f6b'
green = '#618679'
yellow = '#b67e3d'
blue = '#86aed7'
magenta = '#b57e91'
cyan = '#5d7a89'
white = '#919084'
black = '#7a8181'
red = '#f76e6e'
green = '#49d0c5'
yellow = '#dac26b'
blue = '#5ca7e4'
magenta = '#697098'
cyan = '#00c990'
white = '#989fb1'
[[colors.indexed_colors]]
index = 16
color = '#b8805e'
[colors.cursor]
cursor = '#403f53'
text = '#fbfbfb'
[[colors.indexed_colors]]
index = 17
color = '#b35560'
[colors.selection]
background = '#f2f2f2'
text = '#403f53'

View File

@@ -12,12 +12,6 @@ end)()
plug = require('plugins/vis-plug')
local plugins = {
{
'scaramacai/vis-themes',
theme = true,
file = 'almostnord',
-- file = 'strange-morning',
},
{ 'https://gitlab.com/muhq/vis-lspc', alias = 'lspc' },
{ 'lutobler/vis-commentary' },
{ 'https://repo.or.cz/vis-surround.git' },
@@ -70,7 +64,12 @@ local function escape_and_quoted(s)
return "'" .. s:gsub("'", "\\'") .. "'"
end
local function search(cmd)
local function search(cmd, action)
if action == nil then
action = function(out)
open_file_pos(out, 'e')
end
end
if cmd:match('^fzf ') and vis.register ~= '"' then
local reg = string.gsub(vis.registers[vis.register][1], '%z', '')
if reg ~= '' then
@@ -79,7 +78,7 @@ local function search(cmd)
end
local code, out, err = vis:pipe(cmd, true)
if code == 0 then
open_file_pos(out, 'e')
action(out)
elseif err ~= nil then
vis:info(err)
elseif code ~= 0 then
@@ -197,6 +196,12 @@ vis.events.subscribe(vis.events.INIT, function()
vis:map(vis.modes.NORMAL, 'gf', function()
open_file_current_line('o')
end, 'open file from current line (with line and col')
vis:map(vis.modes.NORMAL, ' cd', function()
search('zoxide query -l | fzf', function(path)
vis:command('cd ' .. path)
end)
end, 'fzf change directory')
end)
vis.events.subscribe(vis.events.WIN_OPEN, function(win)