Giter VIP home page Giter VIP logo

Comments (8)

ayamir avatar ayamir commented on July 21, 2024

My local config doesn't have this error. My settings about neovide is this line:
neovide
Please consider comment this line.

from nvimdots.

p1k0pan avatar p1k0pan commented on July 21, 2024

My local config doesn't have this error. My settings about neovide is this line:
neovide
Please consider comment this line.

It doesn't work

from nvimdots.

ayamir avatar ayamir commented on July 21, 2024

I have never seen this bug, please show me your whole lua/keymap/config.lua.

from nvimdots.

p1k0pan avatar p1k0pan commented on July 21, 2024
local vim = vim

local t = function(str)
    return vim.api.nvim_replace_termcodes(str, true, true, true)
end

_G.enhance_jk_move = function(key)
    if packer_plugins['accelerated-jk'] and
        not packer_plugins['accelerated-jk'].loaded then
        vim.cmd [[packadd accelerated-jk]]
    end
    local map = key == 'j' and '<Plug>(accelerated_jk_gj)' or
                    '<Plug>(accelerated_jk_gk)'
    return t(map)
end

_G.enhance_ft_move = function(key)
    if not packer_plugins['vim-eft'].loaded then vim.cmd [[packadd vim-eft]] end
    local map = {
        f = '<Plug>(eft-f)',
        F = '<Plug>(eft-F)',
        t = '<Plug>(eft-t)',
        T = '<Plug>(eft-T)',
        [';'] = '<Plug>(eft-repeat)'
    }
    return t(map[key])
end

_G.enhance_move = function(key)
    if not packer_plugins['vim-easymotion'].loaded then
        vim.cmd [[packadd vim-easymotion]]
    end
    local map = {
        ['lnj'] = '<Plug>(easymotion-j)',
        ['lnk'] = '<Plug>(easymotion-k)',

        ['lf'] = '<Plug>(easymotion-bd-f)',
        ['lw'] = '<Plug>(easymotion-bd-w)',

        ['lnf'] = '<Plug>(easymotion-overwin-f)',
        ['lnw'] = '<Plug>(easymotion-overwin-w)'
    }
    return t(map[key])
end

_G.enhance_align = function(key)
    if not packer_plugins['vim-easy-align'].loaded then
        vim.cmd [[packadd vim-easy-align]]
    end
    local map = {['nga'] = '<Plug>(EasyAlign)', ['xga'] = '<Plug>(EasyAlign)'}
    return t(map[key])
end

This file I didn't change anything since I downloaded your script

from nvimdots.

ayamir avatar ayamir commented on July 21, 2024

I have used PackerSync and it updated some plugins(I don't remember which). Then I reopen the file it comes out this error
DeepinScreenshot_select-area_20210831122520
I have tryed to comment the require('neovide, goneovimkeymap.config'), but after that, all the plugins with the start v.lua in the mapping command were dead (e.g. accelerated jk, vim-eft)
DeepinScreenshot_select-area_20210831122911

I don't use neovide or goneovim to start nvim, instead I use st(simple terminal).

where you comment this line: require('neovide, goneovimkeymap.config')? I have never seen this.

from nvimdots.

p1k0pan avatar p1k0pan commented on July 21, 2024

That is in the file keymap/init.lua line 4. If I don't comment this line, the whole neovim can't load all the plugins and it seems to return the basic settings.
DeepinScreenshot_select-area_20210831144336

from nvimdots.

ayamir avatar ayamir commented on July 21, 2024

require('keymap.config')

from nvimdots.

p1k0pan avatar p1k0pan commented on July 21, 2024

It works again! Strange that suddenly occur this Problem, before the update everything is ok even no need to comment that line.

Thanks again!

from nvimdots.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.