profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/bitterjug/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Mark Skipper bitterjug @Featurespace Cambridge http://bitterjug.com/

bitterjug/django-excel-view 4

A wraper for django-excel-response for DRY simple spreadsheets including a class-based view

bitterjug/excel-diff 4

Textconv filter for Excel files: get readable diffs from excel workbooks.

bitterjug/elm-parsers-talk 2

Notes for a talk on parsers in Elm

bitterjug/ambiguous-parser 1

A parser that returns a list of possibilities

bitterjug/elm-for-the-web 1

Talk on The Elm Architecture

bitterjug/elm-tokenparser 1

Elm parser combinator library for a list of tokens of any type

bitterjug/ctags 0

A maintained ctags implementation

bitterjug/ctags-elm 0

An Exuberant ctags file for the Elm language.

push eventbitterjug/dotfiles

Mark Skipper

commit sha e685aa2f3804826a410ce6fb4834d8ff0112889d

nvim: coc: split on go to defoinition

view details

Mark Skipper

commit sha c4d6820a5014ae85c28c852cffb159941b9d336d

Turn on ale formatting again because coc didnt seem to be doing it

view details

Mark Skipper

commit sha 57ec67638d1d5c3462f5bf7cdadced4be5244319

nvim: new bindings for coc

view details

Mark Skipper

commit sha 87f2894ee42fd5675c5cdcbd22afd4c4ac0beb70

nvim: add coc status to lightline

view details

Mark Skipper

commit sha 38f98b52e2c88bac88574cbe811c9faab61d0067

nvim coc lightline support

view details

Mark

commit sha fb21a49585607c8a1ab45e5e5bdd7ff78341d3f9

Layout

view details

Mark

commit sha 4971abfd429cf0cf557c7d3e924c839c510dd635

guifont

view details

Mark

commit sha 48ad24f3a2367efa0ef05e64d9a2c8b02c6fc00e

Lua init

view details

Mark

commit sha 21b1ddb868c93a2e6b43ad26dfbf5ec5540e41d7

Merge remote-tracking branch 'origin/featurespace'

view details

push time in 23 days

issue commentkarb94/neoscroll.nvim

E5108 attempt to index a nil value

Just to confirm, I updated neovim when I had a chance and the issue went away. Thanks for all your efforts to resolve.

bitterjug

comment created time in 25 days

issue commentKethku/neovide

Panic at startup: "Failed to initialize any backend"

Well, this was on my home machine and I was wondering if I could install this on my work laptop in which case snap would be preferable to building from source. If I find another Ubuntu box to play with I might try and snap install neovide and nvim and see if they play nice together.

bitterjug

comment created time in 2 months

issue commentKethku/neovide

Panic at startup: "Failed to initialize any backend"

Today I build Neovide from source, at commit f58b947, and now it works ok. My nvim is also installed as a snap --thought I'd mention as @Mate2xo mentioned appimage.

bitterjug

comment created time in 2 months

issue openedkarb94/neoscroll.nvim

E5108 attempt to index a nil value

I just installed neoscroll, using Vim Plug, and all the bindings give this message.

E5108: Error executing lua ...onfig/nvim/plugged/neoscroll.nvim/lua/neoscroll/init.lua:306: attempt to index a nil value

Line 306 of init.ula is:

    if data.win_lines_above_cursor <= vim[so_scope].scrolloff then

I include the whole of that file at the end of this issue.

This is my whole init.vim, no other plugins are loaded.

if empty(glob('~/.config/nvim/autoload/plug.vim'))
  silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
    \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
  autocmd VimEnter * PlugInstall | source $MYVIMRC
endif

call plug#begin()
  Plug 'karb94/neoscroll.nvim'
call plug#end()
lua require('neoscroll').setup()

And this is what vim says when I ask it what version it has:

:version                                                                                                                                                                       
NVIM v0.5.0-dev+1357-g192f89ea1
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Compilation: /usr/bin/cc -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -O2 -g -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissin
g-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=always -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNV
IM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/build/nvim/parts/nvim/build/build/config -I/build/nvim/parts/nvim/build/src -I/build/nvim/parts/nvim/build/.deps/usr/include -I/usr/include -
I/build/nvim/parts/nvim/build/build/src/nvim/auto -I/build/nvim/parts/nvim/build/build/include
Compiled by root@lgw01-amd64-021

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/share/nvim"

Run :checkhealth for more info
local config = require('neoscroll.config')
local opts = require('neoscroll.config').options
local so_scope

local scroll_timer = vim.loop.new_timer()
local target_line = 0
local current_line = 0
local cursor_win_line
local scrolling = false
local continuous_scroll = false
local guicursor
-- Highlight group to hide the cursor
vim.api.nvim_exec([[
augroup custom_highlight
autocmd!
autocmd ColorScheme * highlight NeoscrollHiddenCursor gui=reverse blend=100
augroup END
]], true)
vim.cmd('highlight NeoscrollHiddenCursor gui=reverse blend=100')


-- Helper function to check if a number is a float
local function is_float(n)
    return math.floor(math.abs(n)) ~= math.abs(n)
end


-- excecute commands to scroll screen [and cursor] up/down one line
-- `execute` is necessary to allow the use of special characters like <C-y>
-- The bang (!) `normal!` in normal ignores mappings
local function scroll_up(data, scroll_window, scroll_cursor, n_repeat)
    local n = n_repeat == nil and 1 or n_repeat
    local cursor_scroll_input = scroll_cursor and string.rep('gk', n) or ''
    local window_scroll_input = scroll_window and [[\<C-y>]] or ''
    local scroll_input
    if ((data.last_line_visible
        and data.win_lines_below_cursor == data.lines_below_cursor
        and data.lines_below_cursor <= vim[so_scope].scrolloff)
        or data.win_lines_below_cursor == vim[so_scope].scrolloff) and scroll_window then
        scroll_input = window_scroll_input
    else
        scroll_input = window_scroll_input .. cursor_scroll_input
    end
    return [[exec "normal! ]] .. scroll_input .. [["]]
end


local function scroll_down(data, scroll_window, scroll_cursor, n_repeat)
    local n = n_repeat == nil and 1 or n_repeat
    local cursor_scroll_input = scroll_cursor and string.rep('gj', n) or ''
    local window_scroll_input = scroll_window and [[\<C-e>]] or ''
    local scroll_input
    if ((data.first_line_visible and data.win_lines_above_cursor <= vim[so_scope].scrolloff)
        or data.win_lines_above_cursor <= vim[so_scope].scrolloff) and scroll_window then
        scroll_input = window_scroll_input
    else
        scroll_input = window_scroll_input .. cursor_scroll_input
    end
    return [[exec "normal! ]] .. scroll_input .. [["]]
end


-- Hide cursor during scrolling for a better visual effect
local function hide_cursor()
    if vim.o.termguicolors and vim.o.guicursor ~= '' then
        guicursor = vim.o.guicursor
        vim.o.guicursor = 'a:NeoscrollHiddenCursor'
    end
end


-- Restore hidden cursor during scrolling
local function restore_cursor()
    if vim.o.termguicolors and vim.o.guicursor ~= '' then
        vim.o.guicursor = guicursor
    end
end


local function get_lines_below_cursor()
    local last_line = vim.fn.line("$")
    local lines_below_cursor = 0
    local line = vim.fn.line(".")
    local last_folded_line = vim.fn.foldclosedend(line)
    if last_folded_line ~= -1 then line = last_folded_line end
    while(line < last_line) do
        lines_below_cursor = lines_below_cursor + 1
        line = line + 1
        last_folded_line = vim.fn.foldclosedend(line)
        if last_folded_line ~= -1 then line = last_folded_line end
    end
    return lines_below_cursor
end


-- Collect all the necessary window, buffer and cursor data
-- vim.fn.line("w0") -> if there's a fold returns first line of fold
-- vim.fn.line("w$") -> if there's a fold returns last line of fold
local function get_data()
    local data = {}
    data.win_top_line = vim.fn.line("w0")
    data.win_bottom_line = vim.fn.line("w$")
    data.last_line = vim.fn.line("$")
    data.first_line_visible = data.win_top_line == 1
    data.last_line_visible = data.win_bottom_line == data.last_line
    data.window_height = vim.api.nvim_win_get_height(0)
    data.cursor_win_line = vim.fn.winline()
    data.win_lines_below_cursor = data.window_height - data.cursor_win_line
    data.win_lines_above_cursor = data.cursor_win_line - 1
    if data.last_line_visible then
        data.lines_below_cursor = get_lines_below_cursor()
    end
    return data
end

-- Window rules for when to stop scrolling
local function window_reached_limit(data, move_cursor, direction)
    if data.last_line_visible and direction > 0 then
        if move_cursor then
            if opts.stop_eof and data.lines_below_cursor == data.win_lines_below_cursor then
                return true
            elseif opts.respect_scrolloff
                and data.lines_below_cursor <= vim[so_scope].scrolloff then
                return true
            else
                return data.lines_below_cursor == 0
            end
        else
            return data.lines_below_cursor == 0 and data.win_lines_above_cursor == 0
        end
    elseif data.first_line_visible and direction < 0 then
        return true
    else
        return false
    end
end


-- Cursor rules for when to stop scrolling
local function cursor_reached_limit(data)
    if data.first_line_visible then
        if opts.respect_scrolloff
            and data.win_lines_above_cursor <= vim[so_scope].scrolloff then
            return true
        end
        return data.win_lines_above_cursor == 0
    elseif data.last_line_visible then
        if opts.respect_scrolloff and data.lines_below_cursor <= vim[so_scope].scrolloff then
            return true
        end
        return data.lines_below_cursor == 0
    end
end


-- Transforms fraction of window to number of lines
local function get_lines_from_win_fraction(fraction)
    local height_fraction = fraction * vim.api.nvim_win_get_height(0)
    local lines
    if height_fraction < 0 then
        lines = -math.floor(math.abs(height_fraction) + 0.5)
    else
        lines = math.floor(height_fraction + 0.5)
    end
    return lines
end


-- Check if the window and the cursor can be scrolled further
local function who_scrolls(data, move_cursor, direction)
    local scroll_window, scroll_cursor
    scroll_window = not window_reached_limit(data, move_cursor, direction)
    if not move_cursor then
        scroll_cursor = false
    elseif scroll_window then
        scroll_cursor = true
    elseif opts.cursor_scrolls_alone then
        scroll_cursor = not cursor_reached_limit(data)
    else
        scroll_cursor = false
    end
    return scroll_window, scroll_cursor
end


-- Scroll one line in the given direction
local function scroll_one_line(lines_to_scroll, scroll_window, scroll_cursor, data)
    if lines_to_scroll > 0 then
        current_line = current_line + 1
        vim.cmd(scroll_down(data, scroll_window, scroll_cursor))
        -- Correct for wrapped lines
        local lines_behind = cursor_win_line - vim.fn.winline()
        if scroll_cursor and scroll_window and lines_behind > 0 then
            vim.cmd(scroll_down(data, false, scroll_cursor, lines_behind))
        end
    else
        current_line = current_line - 1
        vim.cmd(scroll_up(data, scroll_window, scroll_cursor))
        -- Correct for wrapped lines
        local lines_behind = vim.fn.winline() - cursor_win_line
        if scroll_cursor and scroll_window and lines_behind > 0 then
            vim.cmd(scroll_up(data, false, scroll_cursor, lines_behind))
        end
    end
end


-- Scrolling constructor
local function before_scrolling(lines, move_cursor)
    -- Start scrolling
    scrolling = true
    -- Hide cursor line
    if opts.hide_cursor and move_cursor then
        hide_cursor()
    end
    -- Performance mode
    if vim.b.neoscroll_performance_mode and move_cursor then
        if vim.g.loaded_nvim_treesitter then
            vim.cmd('TSBufDisable highlight')
        end
        vim.bo.syntax = 'OFF'
    end
    -- Assign number of lines to scroll
    target_line = lines
end


-- Scrolling destructor
local function stop_scrolling(move_cursor)
    if opts.hide_cursor == true and move_cursor then
        restore_cursor()
    end
    --Performance mode
    if vim.b.neoscroll_performance_mode and move_cursor then
        vim.bo.syntax = 'ON'
        if vim.g.loaded_nvim_treesitter then
            vim.cmd('TSBufEnable highlight')
        end
    end

    current_line = 0
    target_line = 0
    scroll_timer:stop()
    scrolling = false
    continuous_scroll = false
end


local function compute_time_step(lines_to_scroll, lines, time, easing_function)
    -- lines_to_scroll should always be positive
    -- If there's less than one line to scroll time_step doesn't matter
    if lines_to_scroll < 1 then return 1000 end
    local lines_range = math.abs(lines)
    local ef = config.easing_functions[easing_function]
    local time_step
    -- If not yet in range return average time-step
    if not ef then
        time_step = math.floor(time/(lines_range-1) + 0.5)
    elseif lines_to_scroll >= lines_range then
        time_step = math.floor(time*ef(1/lines_range) + 0.5)
    else
        local x1 = (lines_range - lines_to_scroll) / lines_range
        local x2 = (lines_range - lines_to_scroll + 1) / lines_range
        time_step = math.floor(time*(ef(x2) - ef(x1)) + 0.5)
    end
    if time_step == 0 then time_step = 1 end
    return time_step
end


local neoscroll = {}


-- Scrolling function
-- lines: number of lines to scroll or fraction of window to scroll
-- move_cursor: scroll the window and the cursor simultaneously
-- easing_function: name of the easing function to use for the scrolling animation
function neoscroll.scroll(lines, move_cursor, time, easing_function)
    -- If lines is a fraction of the window transform it to lines
    if is_float(lines) then
        lines = get_lines_from_win_fraction(lines)
    end
    if lines == 0 then return end
    -- If still scrolling just modify the amount of lines to scroll
    -- If the scroll is in the opposite direction and
    -- lines_to_scroll is longer than lines stop smoothly
    if scrolling then
        local lines_to_scroll = current_line - target_line
        local opposite_direction = lines_to_scroll * lines > 0
        local long_scroll = math.abs(lines_to_scroll) - math.abs(lines) > 0
        if opposite_direction and long_scroll then
            target_line = current_line - lines
        elseif continuous_scroll then
            target_line = current_line + 2*lines
        elseif math.abs(lines_to_scroll) > math.abs(5*lines) then
            continuous_scroll = true
            current_line = target_line - 2*lines
        else
            target_line = target_line + lines
        end

        return
    end
    -- Check if the window and the cursor are allowed to scroll in that direction
    local data = get_data()
    if data.win_lines_above_cursor <= vim[so_scope].scrolloff then
        cursor_win_line = vim[so_scope].scrolloff + 1
    elseif data.win_lines_below_cursor <= vim[so_scope].scrolloff then
        cursor_win_line = data.window_height - vim[so_scope].scrolloff
    else
        cursor_win_line = data.cursor_win_line
    end
    local scroll_window, scroll_cursor = who_scrolls(data, move_cursor, lines)
    -- If neither the window nor the cursor are allowed to scroll finish early
    if not scroll_window and not scroll_cursor then return end
    -- Preparation before scrolling starts
    before_scrolling(lines, move_cursor)
    -- If easing function is not specified default to easing_function
    local ef = easing_function and easing_function or opts.easing_function

    local lines_to_scroll = math.abs(current_line - target_line)
    scroll_one_line(lines, scroll_window, scroll_cursor, data)
    if lines_to_scroll == 1 then stop_scrolling(move_cursor) end
    local time_step = compute_time_step(lines_to_scroll, lines, time, ef)
    local next_time_step = compute_time_step(lines_to_scroll-1, lines, time, ef)
    local next_next_time_step = compute_time_step(lines_to_scroll-2, lines, time, ef)
    -- Scroll the first line

    -- Callback function triggered by scroll_timer
    local function scroll_callback()
        lines_to_scroll = target_line - current_line
        local data = get_data()
        scroll_window, scroll_cursor = who_scrolls(data, move_cursor, lines_to_scroll)
        if not scroll_window and not scroll_cursor then
            stop_scrolling(move_cursor)
            return
        end

        if math.abs(lines_to_scroll) > 2 and ef then
            local next_lines_to_scroll = math.abs(lines_to_scroll) - 2
            next_time_step = compute_time_step(
                next_lines_to_scroll, lines, time, ef)
            -- sets the repeat of the next cycle
            scroll_timer:set_repeat(next_time_step)
        end
        scroll_one_line(lines_to_scroll, scroll_window, scroll_cursor, data)
        if math.abs(lines_to_scroll) == 1 then
            stop_scrolling(move_cursor)
            return
        end

    end

    -- Start timer to scroll the rest of the lines
    scroll_timer:start(time_step, next_time_step,
        vim.schedule_wrap(scroll_callback))
    scroll_timer:set_repeat(next_next_time_step)
end


-- Wrapper for zt
function neoscroll.zt(half_screen_time, easing)
    local window_height = vim.api.nvim_win_get_height(0)
    local win_lines_above_cursor = vim.fn.winline() - 1
    -- Temporary fix for garbage values in local scrolloff when not set
    local lines = win_lines_above_cursor - vim[so_scope].scrolloff
    if lines == 0 then return end
    local corrected_time = math.floor(
        half_screen_time * (math.abs(lines)/(window_height/2)) + 0.5)
    neoscroll.scroll(lines, false, corrected_time, easing)
end
-- Wrapper for zz
function neoscroll.zz(half_screen_time, easing)
    local window_height = vim.api.nvim_win_get_height(0)
    local lines = vim.fn.winline() - math.floor(window_height/2 + 1)
    if lines == 0 then return end
    local corrected_time = math.floor(
        half_screen_time * (math.abs(lines)/(window_height/2)) + 0.5)
    neoscroll.scroll(lines, false, corrected_time, easing)
end
-- Wrapper for zb
function neoscroll.zb(half_screen_time, easing)
    local window_height = vim.api.nvim_win_get_height(0)
    local lines_below_cursor = window_height - vim.fn.winline()
    -- Temporary fix for garbage values in local scrolloff when not set
    local lines = -lines_below_cursor + vim[so_scope].scrolloff
    if lines == 0 then return end
    local corrected_time = math.floor(
        half_screen_time * (math.abs(lines)/(window_height/2)) + 0.5)
    neoscroll.scroll(lines, false, corrected_time, easing)
end


function neoscroll.setup(custom_opts)
    require('neoscroll.config').set_options(custom_opts)
    require('neoscroll.config').set_mappings()
    vim.cmd('command! NeoscrollEnablePM let b:neoscroll_performance_mode = v:true')
    vim.cmd('command! NeoscrollDisablePM let b:neoscroll_performance_mode = v:false')
    if opts.use_local_scrolloff then
        so_scope = 'wo'
    else
        so_scope = 'go'
    end
end


return neoscroll

created time in 2 months

push eventbitterjug/dotfiles

Mark

commit sha cc28f5844dbebe7f6ef65cf1fec98852e6ea9690

nvim: Show hidden files in coc exolorer

view details

Mark

commit sha 5ec806f654976115cd0888cd09f0ac8bf1216e58

use - to launch coc explorere

view details

Mark

commit sha 69c8d32d5dd5a4bca0c5cca3e34488a06d118185

Switch hop from easy motion

view details

push time in 2 months

issue commentkarb94/neoscroll.nvim

Error ... attempt to index a nil value

I just got the same error. I installed with

  Plug 'karb94/neoscroll.nvim'

And ran `

:lua require('neoscroll').setup()`

from the command line.

Now <c-u>, <c-d>, <c-f>, <c-b>give

E5108: Error executing lua ...onfig/nvim/plugged/neoscroll.nvim/lua/neoscroll/init.lua:306: attempt to index a nil value

I'm guessing I have the latest commit from master if I just installed. What might be going wrong?

daiyanze

comment created time in 2 months

issue openedKethku/neovide

Panic at startup: "Failed to initialize any backend"

Describe the bug

Having installed Neovide 0.7.0 from snap store I get a thread panic on startup: Failed to initialize any backend!

Screenshots

❯ RUST_BACKTRACE=1 neovide
thread 'main' panicked at 'Failed to initialize any backend! Wayland status: NoCompositorListening X11 status: XOpenDisplayFailed', /root/.cargo/git/checkouts/winit-cdba476763ae8f28/3b5462e/src/platform_impl/linux/mod.rs:626:9
stack backtrace:
Ignored client type property: "methods"
Ignored client type property: "attributes"
   0: rust_begin_unwind
             at /rustc/53cb7b09b00cbea8754ffb78e7e3cb521cb8af4b/library/std/src/panicking.rs:493:5
   1: std::panicking::begin_panic_fmt
             at /rustc/53cb7b09b00cbea8754ffb78e7e3cb521cb8af4b/library/std/src/panicking.rs:435:5
   2: winit::platform_impl::platform::EventLoop<T>::new_any_thread
             at /root/.cargo/git/checkouts/winit-cdba476763ae8f28/3b5462e/src/platform_impl/linux/mod.rs:626:9
   3: winit::platform_impl::platform::EventLoop<T>::new
             at /root/.cargo/git/checkouts/winit-cdba476763ae8f28/3b5462e/src/platform_impl/linux/mod.rs:581:9
   4: winit::event_loop::EventLoop<T>::with_user_event
             at /root/.cargo/git/checkouts/winit-cdba476763ae8f28/3b5462e/src/event_loop.rs:134:25
   5: winit::event_loop::EventLoop<()>::new
             at /root/.cargo/git/checkouts/winit-cdba476763ae8f28/3b5462e/src/event_loop.rs:120:9
   6: neovide::window::window_wrapper::start_loop
             at /root/parts/neovide/build/src/window/window_wrapper/mod.rs:204:22
   7: neovide::window::create_window
             at /root/parts/neovide/build/src/window/mod.rs:50:5
   8: neovide::main
             at /root/parts/neovide/build/src/main.rs:198:5
   9: core::ops::function::FnOnce::call_once
             at /rustc/53cb7b09b00cbea8754ffb78e7e3cb521cb8af4b/library/core/src/ops/function.rs:227:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Desktop (please complete the following information):

  • OS: Ubunu 18.04.5 (but same error on my 21.04 machine)
  • Neovide: 0.7.0
  • Neovim:
NVIM v0.5.0-654-g3acfefb63
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Compilation: /usr/bin/cc -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -O2 -g -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=always -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/build/nvim/parts/nvim/build/build/config -I/build/nvim/parts/nvim/build/src -I/build/nvim/parts/nvim/build/.deps/usr/include -I/usr/include -I/build/nvim/parts/nvim/build/build/src/nvim/auto -I/build/nvim/parts/nvim/build/build/include
Compiled by root@lgw01-amd64-012

Please run neovide --log and paste the contents of the .log file here:

thread 'tokio-runtime-worker' panicked at 'called `Result::unwrap()` on an `Err` value: GlobError { path: ".", error: Os { code: 13, kind: PermissionDenied, message: "Permission denied" } }', /rustc/53cb7b09b00cbea8754ffb78e7e3cb521cb8af4b/library/core/src/ops/function.rs:150:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: PoisonError { .. }', /root/.cargo/registry/src/github.com-1ecc6299db9ec823/flexi_logger-0.17.1/src/writers/file_log_writer.rs:73:57

Installed with snap install neovide, could this be a snap sandbox issue?

created time in 2 months

issue commentweirongxu/coc-explorer

How do I add custom icons?

Thanks for that quick reply! My NerdFont includes the icon. It worked fine in NerdTree, and maybe until recently in coc-explorer too. I just noticed today I don't have icons for Elm. Nor for scss. I've put my config back as it was. Any idea what might have happened?

image

bitterjug

comment created time in 2 months

issue openedweirongxu/coc-explorer

How do I add custom icons?

I wasn't sure what the format of customIcons configuration key was, so I took a guess, but this is, apparently, wrong:

  "explorer": {
    "icon": {
      "enableNerdfont": true,
      "enableVimDevicons": false,
      "customIcons": {
        "icons": {
          "elm": {
            "code": "",
            "color": "#fff"
          }
        },
        "extensions":{
          "elm": "elm"
        }
      }
    },

How would I add the Elm icon?

created time in 2 months

issue openedelm-community/list-extra

Cycle 0 list = [] ?

If the cycle length is zero, shouldn't we be returning a list of length zero? https://github.com/elm-community/list-extra/blob/7ae12a5da9c1337188b415d70bc0d49df2db61b3/src/List/Extra.elm#L205

created time in 3 months