guess-indent.nvim icon indicating copy to clipboard operation
guess-indent.nvim copied to clipboard

How to use GuessIndent plugin and ftplugin files ?

Open lcheylus opened this issue 3 years ago • 2 comments

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 avatar Jun 21 '22 12:06 lcheylus

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

Susensio avatar Jul 23 '24 09:07 Susensio

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

lcheylus avatar Jul 23 '24 15:07 lcheylus