Skip to content

feat: switch vim-sleuth for guess-indent.nvim#1512

Merged
feoh merged 1 commit into
nvim-lua:masterfrom
guru245:feature/guess-indent
May 11, 2025
Merged

feat: switch vim-sleuth for guess-indent.nvim#1512
feoh merged 1 commit into
nvim-lua:masterfrom
guru245:feature/guess-indent

Conversation

@guru245

@guru245 guru245 commented May 6, 2025

Copy link
Copy Markdown
Contributor

guess-indent.nvim provides the same functionality as vim-sleuth, but is faster since it is written in Lua. Additionally for existing Kickstart users, switching from vim-sleuth to guess-indent will be seamless.

I found a benchmark result comparing vim-sleuth and guess-indent here: https://www.reddit.com/r/neovim/comments/t6o2z4/guessindent_automatic_indentation_style_detection/

Comment thread init.lua Outdated
require('lazy').setup({
-- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link).
'tpope/vim-sleuth', -- Detect tabstop and shiftwidth automatically
'nmac427/guess-indent.nvim', -- Detect tabstop and shiftwidth automatically

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'nmac427/guess-indent.nvim', -- Detect tabstop and shiftwidth automatically
'NMAC427/guess-indent.nvim', -- Detect tabstop and shiftwidth automatically

nit: capitalize for consistency?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed it.

@guru245 guru245 force-pushed the feature/guess-indent branch from 8689449 to 4607f87 Compare May 7, 2025 05:00
@feoh feoh merged commit 2b2f0f8 into nvim-lua:master May 11, 2025
@guru245 guru245 deleted the feature/guess-indent branch May 11, 2025 12:07
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 this pull request may close these issues.

3 participants