Skip to content

Is it possible to set filetype & syntax for :MetalsToggleLogs? #207

Answered by ckipp01
jsatk asked this question in Q&A
Discussion options

You must be logged in to vote

This is totally doable. For example I just tested this with:

:vsp +set\ ft=log term://tail -f .metals/metals.log

Which will open the split, set the ft, and then enter term and tail the log. It should be as simple as changing this line to reflect it

api.nvim_command([[vsp term://tail -f .metals/metals.log]])

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@jsatk
Comment options

@tkolleh
Comment options

@ckipp01
Comment options

Answer selected by jsatk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants