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

[Enhancement] Allow for per-filetype config (or buffer-scoped character variables) #83

Open
duckpuppy opened this issue Mar 23, 2016 · 4 comments

Comments

@duckpuppy
Copy link

It would be incredibly nice if I could configure table mode to use markdown compatible tables if the filetype is markdown, but use the default style (which I think looks a little nicer) in other circumstances more easily. If the various character config variables were buffer-scoped rather than strictly global then the user could configure that with autocommands or ftplugin/ files.

For Markdown in particular, maybe that could be baked into the plugin.

@dhruvasagar
Copy link
Owner

Yes that is a good idea. Let me work on it.

@polyzen
Copy link
Contributor

polyzen commented Mar 8, 2017

FWIW, here's what I use:

if (&filetype ==# 'rst')
  let g:table_mode_corner_corner='+'
  let g:table_mode_header_fillchar='='
endif

@dhruvasagar
Copy link
Owner

Right, although better is to place that configuration within a ftplugin.

@polyzen
Copy link
Contributor

polyzen commented Mar 8, 2017

@dhruvasagar, noted. Thank you.

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