Skip to content

A Cleaner approach to indenting you buffers based on file extension

License

Notifications You must be signed in to change notification settings

ochi12/neodent.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

neodent.nvim

Neodent is a very simple Neovim plugin that allows you to set and manage indentation of a specific file extension without writing verbous commands. it still follows the original commands like tabstop, softtabstop. shiftwidth, expandtab, smarttab.

I also want to add that this is my first neovim plugin and I hope I can go further.

note: situation like (expandtab | noexpandtab) it must be implemented this way (expandtab = true | false).

Quickstart

Example for Lazy:

{
  "ochi12/neodent.nvim",
  config = function()
    require("neodent").setup({
      ["js,lua] = {
        tabstop    = 10,
        shiftwidth = 10,
        expandtab  = true,
      },
    })
  end
}

Example for packer:

use {
  "ochi12/neodent.nvim",
  config = function()
    require("neodent").setup({
      ["js,lua"] = {
        tabstop    = 10,
        shiftwidth = 10,
        expandtab  = true,
      },
    })
  end
}

About

A Cleaner approach to indenting you buffers based on file extension

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages