Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toggle on specific filetype #78

Closed
Arrow-x opened this issue Jun 22, 2022 · 4 comments
Closed

Toggle on specific filetype #78

Arrow-x opened this issue Jun 22, 2022 · 4 comments

Comments

@Arrow-x
Copy link

Arrow-x commented Jun 22, 2022

So I want to use TrueZen only with vimwiki, so I have this autocammand

vim.api.nvim_create_autocmd("FileType", {
	pattern = "vimwiki",
	callback = function()
		vim.cmd("TZAtaraxis")
	end,
})

but as you might guess it will flipflop between opening and not, I want to know if there is a way to know if true zen is open or not

@FOSSilizedDaemon
Copy link

So I want to use TrueZen only with vimwiki, so I have this autocammand

vim.api.nvim_create_autocmd("FileType", {
	pattern = "vimwiki",
	callback = function()
		vim.cmd("TZAtaraxis")
	end,
})

but as you might guess it will flipflop between opening and not, I want to know if there is a way to know if true zen is open or not

Does it work with

´´´
vim.cmd("TZAtaraxisOn")
´´´

@Arrow-x
Copy link
Author

Arrow-x commented Jul 4, 2022 via email

@FOSSilizedDaemon
Copy link

FOSSilizedDaemon commented Jul 9, 2022

No not at all, it just mess up my markdown conceal level for some reason.

I am also having issues with markdown, but for different reasons. I am unsure what could be causing this. When I try to autorun truzen for markdown using ´after/ftplugin/markdown.lua´ I always get command not found and for some reason even with quit = nil truezen does not quit on markdown files it only toggles.

@pocco81
Copy link
Owner

pocco81 commented Jul 30, 2022

Hello! please check #84.

@pocco81 pocco81 closed this as completed Jul 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants