Commit 966cc763 authored by HiPhish's avatar HiPhish
Browse files

Add `commentstring` setting for Jinja

parent f29c4abc
Loading
Loading
Loading
Loading

ftplugin/jinja.vim

0 → 100644
+1 −0
Original line number Diff line number Diff line
setlocal commentstring={#\ %s\ #}

test/spec/ftplugin.lua

0 → 100644
+19 −0
Original line number Diff line number Diff line
local yd = require 'yo-dawg'

describe('File type settings', function ()
	local nvim

	before_each(function()
		nvim = yd.start()
		nvim:command 'edit test/files/sample.jinja'
	end)

	after_each(function ()
		yd.stop(nvim)
	end)

	it('contain the commentstring', function()
		local commentstring = nvim:eval('&commentstring')
		assert.are_same('{# %s #}', commentstring)
	end)
end)