Comments (10)
@justAlex0 I can't seem to replicate the issue, did you try to run :FnlClean
, try running it.
Can you give me some more info about:
- Your OS
tree
command output on bothsource
andtarget
dirs.
$ tree ~/.config/nvim
$ tree ~/.cache/nvim/lua
from tangerine.nvim.
:FnlClean
does not clean compiled lua files in either .cache
or .config
. I clean them externally through termial
- Arch
Didn't past the full output because there're a lot of files but every .fnl has its .lua
└── .config
└── nvim
├── fnl
│ ├── init.fnl
│ ├── init.lua
│ ├── macros.fnl
│ ├── opts.fnl
│ ├── opts.lua
│ ├── plugins
│ │ ├── *
│ ├── statuscolumn.fnl
│ └── statuscolumn.lua
├── ftplugin
│ ├── .fennel.fnl
│ ├── fennel.lua
│ └── sh.lua
├── init.fnl // with just (set vim.opt.colorcolumn "80") to see if works
└── init.lua
└── .cache
└── nvim
└── lua
└── tangerine_vimrc.lua // and it works
from tangerine.nvim.
You aren't supposed to have two init.fnl
files - nvim/init.fnl
and nvim/fnl/init.fnl
, maybe they are causing a loopback because you are trying to require "init"
.
I got this error when I tried to replicate your config:
Error detected while processing /home/user/.config/nvim/init.lua:
E5113: Error while calling lua chunk: ./init.lua:20: loop or previous error loading module 'in
it'
stack traceback:
[C]: in function 'require'
./init.lua:20: in main chunk
[C]: in function 'require'
/home/user/.config/nvim/init.lua:20: in main chunk
Try to remove nvim/fnl/init.fnl
or set it as your default vimrc:
require "tangerine".setup {
vimrc = config .. "/fnl/init.fnl",
}
from tangerine.nvim.
Just read your dotfiles and only problem that I could find was you trying to require init.fnl manually. You don't have to do that with tangerine, it will require it for you. So remove this line:
-- init.lua
require "tangerine".setup({
+ vimrc = config .. "/fnl/init.fnl",
source = config .. "/fnl",
target = vim.fn.stdpath [[cache]] .. "/lua",
compiler = {
hooks = {"onsave", "oninit"},
},
})
-require "init"
from tangerine.nvim.
You aren't supposed to have two init.fnl files
There's no loopback even if i take require("init")
from init.lua
and put as (require :init)
inside init.fnl
.
But even if i delete init.fnl
, tangerine just cleans tangerine_vimrc.lua
inside target
.
Now considering your snippet, /fnl/init.fnl
compiles into target
instead of the default init.fnl
. Everything else is the same.
Also neovim and all the plugins and configs work as intended, considering that i clean .lua and bin cache files.
from tangerine.nvim.
@justAlex0 I really am out of ideas for what might be happening. What version of neovim are you using?
from tangerine.nvim.
NVIM v0.8.2
I guess i should play a bit with tangerine source to see if it's just something cursed on my end
from tangerine.nvim.
I am using the same version on same OS and can't seem to replicate this behavior.
Can you clean you nvim config for a while and only add the following files:
nvim:
- init.fnl
- plugin:
- 0-tangerine.fnl
- fnl:
- hello.fnl
-- 0-tangerine.fnl
local pack = "tangerine"
local function bootstrap(url, ref)
local name = url:gsub(".*/", "")
local path = vim.fn.stdpath [[data]] .. "/site/pack/".. pack .. "/start/" .. name
if vim.fn.isdirectory(path) == 0 then
print(name .. ": installing in data dir...")
vim.fn.system {"git", "clone", url, path}
if ref then
vim.fn.system {"git", "-C", path, "checkout", ref}
end
vim.cmd [[redraw]]
print(name .. ": finished installing")
end
end
bootstrap("https://github.com/udayvir-singh/tangerine.nvim", "v2.3")
require "tangerine".setup {
compiler = { hooks = {"oninit"} }
}
;; init.fnl
(require :hello)
;; hello.fnl
(print "HELLO WORLD!")
And then see what happens
from tangerine.nvim.
Added. Launched. This still do not follow target
└── nvim
├── fnl
│ ├── hello.fnl
│ └── hello.lua
├── init.fnl
├── lua
│ └── tangerine_vimrc.lua
└── plugin
└── 0-tangerine.lua
from tangerine.nvim.
Then there is nothing that I can do at this point. You should keep on using hotpot than to get messy with tangerine's internals.
from tangerine.nvim.
Related Issues (20)
- Does not work on Windows 😍 HOT 1
- The 'globals' option should add on to the default value, not replace it HOT 2
- hooks don't work for custom compile dirs HOT 2
- Installing via paq bring this error message HOT 2
- Tried setting packer as you showed in the default example, and i have an error HOT 1
- Silence FnlFile HOT 2
- Bootstrapping Tangerine and Packer doesn't work HOT 1
- Remove demo.svg from repo HOT 2
- exclude files from compliation HOT 1
- Macro file compilation fails with unknown identifier HOT 6
- `plugin/0-tangerine.lua` doesn't work with lazy plugin manager HOT 3
- Compile error when importing macros HOT 8
- Windows support (round two) HOT 3
- There is a mistake on readme
- Why rtpdirs are not compiled on onsave hook? HOT 1
- Mappings working on `non-fennel` files HOT 1
- Allow to split an rtpdir into source and target HOT 1
- Allow to peak at a specific node (instead of range) HOT 4
- Allow to jump to specific node of the Lua-equivalent output HOT 4
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 tangerine.nvim.