Code Monkey home page Code Monkey logo

Comments (9)

gennaro-tedesco avatar gennaro-tedesco commented on June 26, 2024

The installation instruction of this plugin are addressed to plugin managers that work in lua, that is, you should have an init.lua rather than an init.vim: what plugin manager are you using? The require instruction should have given you errors if used in a vimscript file.

Please choose a specific plugin manager and follow the appropriate instructions to install the plugin: if you still see problems feel free to get back to the issue, however please ascertain first that your neovim configuration works.

from nvim-possession.

pmatulis avatar pmatulis commented on June 26, 2024

I have a hybrid configuration - some Vimscript and some Lua. My plugin manager is vim-plug.

from nvim-possession.

gennaro-tedesco avatar gennaro-tedesco commented on June 26, 2024

Then you need to wrap lua imports in vimscript code: the instruction require isn't loaded because it isn't vimscript code.

Please refer to general instructions on how to include lua configurations via using vimscript and vim-plug. Afterwards check that the plugin is correctly loaded with :PlugStatus - if the plugin is loaded then it should work, if otherwise check if the mappings are correctly assigned via :verbose map <leader>sn (and likewise for the rest).

from nvim-possession.

pmatulis avatar pmatulis commented on June 26, 2024

Yes, I'm doing that:

lua << EOF
require("lualine-conf")
.
.
.
require("nvim-possession-conf")
EOF

Command :verbose map <leader>sn results in No mapping found.

from nvim-possession.

gennaro-tedesco avatar gennaro-tedesco commented on June 26, 2024

Command :verbose map sn results in No mapping found.

then this means that the configuration didn't take effect. Did you run :PlugStatus, is the plugin installed at all?

from nvim-possession.

pmatulis avatar pmatulis commented on June 26, 2024

Yes, it is installed.

image

from nvim-possession.

pmatulis avatar pmatulis commented on June 26, 2024

If I deliberately create an error in the first line of the plugin's configuration file I get an error when starting up my neovim:

requir('nvim-possession').setup({

(the missing 'e' in "require")

However, applying the strategy to the rest of the file does not give me an error. There is something with the configuration structure (?) that is not right.

from nvim-possession.

gennaro-tedesco avatar gennaro-tedesco commented on June 26, 2024

However, applying the strategy to the rest of the file does not give me an error. There is something with the configuration structure (?) that is not right.

This would then depend on how you are configuring your neovim. Notice that the plugins instructions that you copied refer to installation via the plugin manager lazy.nvim (as specified in the README): if you are using vim-plug then you have to install the plugin differenty (and to do so please refer to the specific installation instructions of lua plugins via vim-plug, I don't really know how such plugin deals with lua code).

P. S. Given you are using vim-plug I wonder if the other plugins work? They cannot work either if you just copy installation instructions that refer to other plugins :)

from nvim-possession.

pmatulis avatar pmatulis commented on June 26, 2024

All the many other plugins work fine. Yours is the only one that needs mappings created using Lua. I will dig into it. Thanks for your guidance.

from nvim-possession.

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.