Replace `vim-sleuth` with `guess-indent.nvim`
This commit is contained in:
parent
b83b2b061c
commit
83069ebdcb
8
init.lua
8
init.lua
|
@ -220,7 +220,7 @@ vim.opt.rtp:prepend(lazypath)
|
||||||
-- NOTE: Here is where you install your plugins.
|
-- NOTE: Here is where you install your plugins.
|
||||||
require('lazy').setup {
|
require('lazy').setup {
|
||||||
-- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link).
|
-- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link).
|
||||||
'tpope/vim-sleuth', -- Detect tabstop and shiftwidth automatically
|
'numToStr/Comment.nvim', -- 'gc' to comment visual regions/lines
|
||||||
|
|
||||||
-- NOTE: Plugins can also be added by using a table,
|
-- NOTE: Plugins can also be added by using a table,
|
||||||
-- with the first argument being the link and the following
|
-- with the first argument being the link and the following
|
||||||
|
@ -229,10 +229,10 @@ require('lazy').setup {
|
||||||
-- Use `opts = {}` to force a plugin to be loaded.
|
-- Use `opts = {}` to force a plugin to be loaded.
|
||||||
--
|
--
|
||||||
-- This is equivalent to:
|
-- This is equivalent to:
|
||||||
-- require('Comment').setup({})
|
-- require('guess-indent').setup({})
|
||||||
|
|
||||||
-- "gc" to comment visual regions/lines
|
-- Detect tabstop and shiftwidth automatically
|
||||||
{ 'numToStr/Comment.nvim', opts = {} },
|
{ 'NMAC427/guess-indent.nvim', opts = {} },
|
||||||
|
|
||||||
-- Here is a more advanced example where we pass configuration
|
-- Here is a more advanced example where we pass configuration
|
||||||
-- options to `gitsigns.nvim`. This is equivalent to the following lua:
|
-- options to `gitsigns.nvim`. This is equivalent to the following lua:
|
||||||
|
|
Loading…
Reference in New Issue