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

Add buftype = terminal to short line list #156

Open
ranebrown opened this issue May 4, 2021 · 1 comment · May be fixed by #218
Open

Add buftype = terminal to short line list #156

ranebrown opened this issue May 4, 2021 · 1 comment · May be fixed by #218

Comments

@ranebrown
Copy link

It would be useful to have the option of adding a specific buftype i.e. terminal to short line list. Is there a way to get this behavior currently?

@jedi04
Copy link

jedi04 commented May 28, 2021

You can get by setting filetype when terminal is opened

function M.changeTerminalFileType()
	vim.api.nvim_command('setlocal filetype=term ')
end
vim.api.nvim_command("autocmd TermOpen * :lua require('utils').changeTerminalFileType()")

Then you can add filetype in short line list and it will work.

gl.short_line_list = { 'packer', 'NvimTree', 'Outline', 'LspTrouble' ,"term"}

@Unoqwy Unoqwy linked a pull request Sep 25, 2021 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants