GithubHelp home page GithubHelp logo

Comments (7)

kristijanhusak avatar kristijanhusak commented on July 29, 2024 1

Seems like you are using Vim.
This is a neovim plugin. It requires latest neovim version (0.5). Setup is done in lua.

from orgmode.

kristijanhusak avatar kristijanhusak commented on July 29, 2024

Closing this due to inactivity.

from orgmode.

hellquist avatar hellquist commented on July 29, 2024

Seems like you are using Vim.
This is a neovim plugin. It requires latest neovim version (0.5). Setup is done in lua.

Hi! Just to add that the instructions could be clarified. Example (for code snippet under Setup heading): adding a commented out line in the code sample clarifying in what file the setup lines go, and also where in that file if it already exists.

I have the same thing. I most definitely am using Neovim 0.5 though. Thanks to this thread I now know I probably need to add those lines in a lua file somewhere (like the OP I tried "the other regular places", such as ~/.config/nvim/init.vim and also created a ~/.vimrc, both without luck of course), but I don't know where that file is and if those lines should go at the top/bottom, or after an init of some kind, as all the lua files I can find in the orgmode.vim folder (which are the only lua files I have) look rather "busy" already. Have tried a couple of options I thought could be logical, but so far no luck.

For those "who already know" this is most likely a silly n00b thing, but for those who are new to this plug, like me (and OP) it is very difficult to know what we don't know.

It would be a quick fix to just add that info to the readme info, IMHO.

from orgmode.

kristijanhusak avatar kristijanhusak commented on July 29, 2024

For the OP's issue, I think there's enough information that this is a Neovim specific plugin, by few things:

  • name ends in .nvim, which most of the neovim specific plugins have
  • Main description of the repo says that it's for Neovim 0.5+ (Orgmode clone written in Lua for Neovim 0.5+.)

I'm assuming he just missed it.

Installation instructions doesn't have the note that this needs to go into ~/.config/nvim/init.vim (which doesn't apply for Windows though), but it's a fair assumption that anyone having a Neovim knows where to put the setup.
If it would require any specific place where it needs to be put (beginning, end, different file, or anything else like that), that would be noted. Putting it literally anywhere in your init.vim should make it work without any issues.

I'm open for Readme and Docs improvement PRs, so feel free to add what you think it's missing. I'm an advanced user so it's hard for me to figure these things out.

from orgmode.

hellquist avatar hellquist commented on July 29, 2024

Right. Then I truly am more confused.

I agree that setup/install instructions that go in to the "usual" default files don't need further specification. However, when I add those lines to my ~/.config/nvim/init.vim I get the error messages described by OP. I thought that would be the logical place to put any configuration that isn't otherwise specified, but alas, I get:

Error detected while processing /Users/mathiashellquist/.config/nvim/init.vim:
line   88:
E492: Not an editor command: require('orgmode').setup({
line   89:
E492: Not an editor command:   org_agenda_files = {'~/git/inbox/org/*', '~/my-orgs/**/*'},
line   90:
E492: Not an editor command:   org_default_notes_file = '~/git/inbox/org/refile.org',
line   91:
E492: Not an editor command: })

Neovim installed on macOS via Homebrew.

I'm a long time vim user that decided to try out Neovim after briefly exploring Spacemacs (and deciding to look for other options), and thus ended up here.

from orgmode.

kristijanhusak avatar kristijanhusak commented on July 29, 2024

I updated the setup section to explain how to set up from init.vim. All other sections assume you are using init.lua instead of init.vim.

I suggest to read more about Neovim lua functionality here https://github.com/nanotee/nvim-lua-guide, since it has basics explained. Hope this helps.

from orgmode.

hellquist avatar hellquist commented on July 29, 2024

Perfect! It worked great, thanks!

from orgmode.

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.