Comments (9)
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.
I have a hybrid configuration - some Vimscript and some Lua. My plugin manager is vim-plug.
from nvim-possession.
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.
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.
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.
Yes, it is installed.
from nvim-possession.
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.
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.
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)
- nvim-tree not loading when restoring a session HOT 9
- Replace "new" and "update" with just "save", buggy when launched at start HOT 7
- About vimscript configuration issues HOT 11
- tag the rockspec with the "neovim" label. HOT 4
- Expose a delete() function HOT 6
- Bad filepath error (No such file or directory) HOT 24
- Files that are deleted still shows in session file. HOT 11
- The autoload setting makes the loaded buffer innactive HOT 1
- How to "close" session? HOT 9
- Breaks on terminal HOT 14
- Bug in README with lualine HOT 2
- autoload cause double lualine in lazyvim HOT 4
- Close session HOT 9
- Auto-create session path HOT 3
- autoload doesn't work HOT 7
- I get an error when calling the setup function: Vim:E499: Empty file name for '%' or '#', only works with ":p:h" HOT 1
- I have a text on the top that I don't know how to turn off HOT 2
- Switch session will clean up buffers from current session? HOT 8
- Decouple fzf-lua to a plugin? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nvim-possession.