Comments (7)
The filetype is not set by ntangle.nvim. That's normal. The filetype was set in the previous tangle.vim, as a hack to still have syntax coloring. But it now relies on an external plugin ntangle-ts.nvim. Installing it will enable syntax coloring.
from ntangle.nvim.
Did you succeed in something?
from ntangle.nvim.
i didnt try yet. i'll tell you as soon as i do
from ntangle.nvim.
Ok
from ntangle.nvim.
I tried with only your plugins and treesitter but nothing happens. I'm unsure if I'm doing something wrong.
Here the result:
And you can reproduce with the following script, passing as argument the init.lua below and somewhere to store runtime data and config dir.
#!/bin/bash
if [[ -z "$(LC_ALL=C type -t realpath)" ]]
then
realpath() (
OURPWD=$PWD
cd "$(dirname "$1")"
LINK=$(readlink "$(basename "$1")")
while [ "$LINK" ]; do
cd "$(dirname "$LINK")"
LINK=$(readlink "$(basename "$1")")
done
REALPATH="$PWD/$(basename "$1")"
cd "$OURPWD"
echo "$REALPATH"
)
fi
if [[ $TERMUX_VERSION ]];
then
TMPDIR="$TMUX_TMPDIR"
else
TMPDIR="${TMPDIR:-/tmp}"
fi
if [[ ! -f "$(realpath $1)" ]]
then
echo "Invalid argument"
echo "syntax: $0 VIMRC [DIR]"
echo "VIMRC is the configuration file to use"
echo "DIR is where runtime and configuration will be stored."
echo "if not specified a temporary one will be used."
fi
if [[ -z "$2" ]]
then
NVIM_DIR="$(mktemp --directory hsv2.nvim-test.XXXXXXXX)"
else
if [[ ! -d "$(realpath $2)" ]]
then
mkdir "$2"
fi
NVIM_DIR="$2"
fi
export XDG_DATA_HOME="$NVIM_DIR/data"
export XDG_CONFIG_HOME="$NVIM_DIR/conf"
export MYVIMRC="$1"
echo data stored in $NVIM_DIR
nvim -u "$MYVIMRC"
with the following configuration:
-- vim: et sw=4 ts=4:
local function clone_packer()
local path = vim.fn.stdpath('data') .. '/site/pack/packer/start/packer.nvim'
if vim.fn.empty(vim.fn.glob(path)) > 0 then
vim.fn.system {
'git',
'clone',
'--depth=1',
'https://github.com/wbthomason/packer.nvim',
path
}
end
end
local function bootstrap_packer(pkgs, opts)
pkgs = pkgs or {}
opts = opts or {}
clone_packer()
-- Load Packer
vim.cmd('packadd packer.nvim')
local packer = require('packer')
packer.startup({ pkgs, opts })
packer.sync()
end
local pkgs = {
'wbthomason/packer.nvim',
'jbyuki/ntangle.nvim',
'jbyuki/ntangle-ts.nvim',
{
'nvim-treesitter/nvim-treesitter',
run = function()
require('nvim-treesitter.install').update({ with_sync = true })
end,
},
}
bootstrap_packer(pkgs)
from ntangle.nvim.
I don't see the extension of the file on the top-left but is that a neorg file? To syntax color that, you need to install neorg.nvim probably. My plugins support *.t files such as *.lua.t file, that's a completely different way to program to neorg. Maybe you were looking for something else all along?
from ntangle.nvim.
My confusion, I got here thinking it was a plugin for Literate (which anyway I was going to drop because of some bugs)
from ntangle.nvim.
Related Issues (3)
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 ntangle.nvim.