Git Product home page Git Product logo

vim-jsonnet's Introduction

vim-jsonnet

Jsonnet filetype plugin for Vim.

A screenshot of Jsonnet syntax highlighting

Install

To install via Vim plugin managers:

Vundle

Plugin 'google/vim-jsonnet'

vim-plug

Plug 'google/vim-jsonnet'

dein.vim

call dein#add('google/vim-jsonnet')

Pathogen

git clone https://github.com/google/vim-jsonnet ~/.vim/bundle/vim-jsonnet

Neovim with no Package Manager

mkdir ~/.local/share/nvim/site/pack/plugins/start
cd ~/.local/share/nvim/site/pack/plugins/start
git clone https://github.com/google/vim-jsonnet

More Info

For more info on Jsonnet:

vim-jsonnet's People

Contributors

ahakanbaba avatar benley avatar camh- avatar davidzchen avatar devth avatar duologic avatar ekimekim avatar flwyd avatar get-me-power avatar glindstedt avatar hackattack avatar ilpianista avatar kinghrothgar avatar krishicks avatar lukebond avatar ppodjames avatar sparkprime avatar vspike avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vim-jsonnet's Issues

foldmethod=syntax is broken in neovim?

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

Handle jsonnetfmt errors

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?

Apply plugin to .libjsonnet

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

Adding "jsonnet fmt" execution at save and autosave time would be very useful

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

Adding Jsonnet syntax highlighting to the upstream

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

Reindent with `=` is broken

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.

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.