Comments (7)
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.
Closing this due to inactivity.
from orgmode.
Seems like you are using Vim.
This is a neovim plugin. It requires latest neovim version (0.5). Setup is done inlua
.
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.
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.
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.
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.
Perfect! It worked great, thanks!
from orgmode.
Related Issues (20)
- Orgmode mappings for increment/decrement date part under cursor are inverted HOT 2
- Huge performance drop after tree-sitter drop HOT 9
- Keep empty line between folded headlines HOT 1
- No agenda entries found HOT 6
- Orgmode as filetype plugin throws error HOT 9
- Add support for citations
- Application of colorscheme breaks todo keyword highlighting HOT 3
- uuidgen does not exist on Windows HOT 2
- Windwos path with Colon (:) (ex: E:\repoes\README.md) can't open
- Error (freezes nvim) when opening file with code block name in different case (e.g. "Python", "JSON", "R"): `no such language: R` HOT 1
- Context is lost when archiving headline with level >1 HOT 2
- Make Virtual Indentation (indent mode) support `set wrap` HOT 2
- Improve documentation workflow. HOT 9
- Repeating API calls to get_entries cause stackoverflow at some time HOT 6
- * TODO Display checkbox progress (as virtual text) [2/4] HOT 1
- Date arithmetic does calculate correctly +/- 1 month
- Advanced search regex
- Cursor position after "Move subtree" doesn't allow for convenient repetition HOT 1
- How to change highlighting of folded lines? HOT 6
- Refiling ignores preamble export options 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 orgmode.