google / vim-jsonnet Goto Github PK
View Code? Open in Web Editor NEWJsonnet filetype plugin for Vim.
Home Page: http://jsonnet.org
License: Apache License 2.0
Jsonnet filetype plugin for Vim.
Home Page: http://jsonnet.org
License: Apache License 2.0
Hi all,
has there been a discussion about adding auto "jsonnet fmt" execution at save time ?
The vim-go has that feature for go using gofmt. It is very useful.
A tool based resolution of spacing and formatting implementation saves a lot of thought cycles while writing code. More importantly it deems all kind of "tabs vs spaces" discussions amongst team members useless.
Something similar has already been implemented in here. vim-jsonnet could implement something similar.
I am creating this issue to get a sense/reaction about this feature. In our team we had a real discussion about jsonnet coding conventions and wished a simple tool based, IDE integrated enforcement was available.
In addition, if you know about the roadmap of "jsonnet fmt" please comment. Could we rely on that tool ? Does the jsonnet project plan to maintain the auto formatter ? I see that @sparkprime has done the fomatter.cpp
Thanks
Hello,
I would like to add the Jsonnet syntax highlighting definition from this repository to the upstream Vim repository. Can I get your permission to do that?
Also, the last commit to this repository is from three years ago. Is this plugin outdated, or has Jsonnet not changed since then?
Relevant issue: vim/vim#11073
Apparently due to the fix for: #2
I'm in a vagrant VM, debian, virtualbox, mounting a source code tree from host -- which is OSX.
Hi,
I've been using vim-jsonnet for syntax highlighting successfully for some time but it's not auto-formatting.
Running :JsonnetFmt isn't doing anything / fails silently. jsonnetfmt is in the path and working. Any ideas?
Syntax highlighting works for .jsonnet files. However there is no syntax highlighting for libsonnet. Neovim version 0.4.2 built through brew.
Have this in a Vim buffer
{
manifest_version: 2,
name: 'Pinboard Simple',
version: '1.0',
description: 'Simple extension for bookmarking to Pinboard',
}
Select all lines in visual mode (<S-V>
) and press =
. Result:
{
manifest_version: 2,
name: 'Pinboard Simple',
version: '1.0',
description: 'Simple extension for bookmarking to Pinboard',
}
This doesn't look good. My settings
set noexpandtab
set shiftwidth=4
set tabstop=4
Except for indent character, result does not depend on expandtab
.
Hello,
This plugin work brilliant for me, however (not sure it's me) this doesn't work with .libjsonnet
. Could we integrate those to this plugin?
Thanks
Geoffrey
In docs, it is said,
vim-jsonnet/doc/vim-jsonnet.txt
Line 73 in b7459b3
However what's actually in the code is:
vim-jsonnet/autoload/jsonnet.vim
Line 10 in b7459b3
Hi, would like to set the indentation to 4 spaces.
How can I do it?
I usually have the default set foldmethod=manual
. However using zf%
within a jsonnet file is throwing the following
E350: Cannot create fold with current 'foldmethod'
in neovim v0.7.2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.