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

How to use GuessIndent plugin and ftplugin files ? #5

Open
lcheylus opened this issue Jun 21, 2022 · 2 comments
Open

How to use GuessIndent plugin and ftplugin files ? #5

lcheylus opened this issue Jun 21, 2022 · 2 comments

Comments

@lcheylus
Copy link

Hello, thanks for your work on GuessIndent plugin : it's a great tool for my neovim usage.

I'm using ftplugin files for C, Go and Python to automatically configure my indent settings (filetype plugin indent on in configuration). For example, ftplugin/python.vim :

setlocal tabstop=4
setlocal softtabstop=4
setlocal shiftwidth=4
setlocal smarttab
setlocal expandtab

How to use your plugin to set automatically indentation with ftplugin files ? If your plugin detects an indentation different from my configuration, what configuration will be used ?
I want to use my default configuration for C, Go and Python when I work on my projects but I would like to use automatic indentation detected by GuessIndent when I work on external project (common usage : C project indented with TAB of 8, 4 spaces for indent in my personal config for C).

@lcheylus lcheylus changed the title How to use plugin and ftplugin files ? How to use GuessIndent plugin and ftplugin files ? Jun 22, 2022
@Susensio
Copy link

I'm getting race conditions between Guess Indent and after/ftplugins. Did you managed to get this sorted out @lcheylus ?

@lcheylus
Copy link
Author

Sorry, I didn't find a good solution to use the GuessIndent plugin and my config in ftplugin/ files :(

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

2 participants