This commit is contained in:
asep komarudin 2023-01-21 11:01:35 +07:00
parent fe32afb482
commit 2849cd4235
3 changed files with 62 additions and 8 deletions

View file

@ -16,6 +16,7 @@
"gitsigns.nvim": { "branch": "main", "commit": "2c6f96dda47e55fa07052ce2e2141e8367cbaaf2" }, "gitsigns.nvim": { "branch": "main", "commit": "2c6f96dda47e55fa07052ce2e2141e8367cbaaf2" },
"impatient.nvim": { "branch": "main", "commit": "b842e16ecc1a700f62adb9802f8355b99b52a5a6" }, "impatient.nvim": { "branch": "main", "commit": "b842e16ecc1a700f62adb9802f8355b99b52a5a6" },
"indent-blankline.nvim": { "branch": "master", "commit": "db7cbcb40cc00fc5d6074d7569fb37197705e7f6" }, "indent-blankline.nvim": { "branch": "master", "commit": "db7cbcb40cc00fc5d6074d7569fb37197705e7f6" },
"indent-o-matic": { "branch": "master", "commit": "749b7cbae2d52aa1f65b6a2cd7b879a0b52ac3a1" },
"lazy.nvim": { "branch": "main", "commit": "4f60facf18b34ae06d164485aa2ce879e21e44fc" }, "lazy.nvim": { "branch": "main", "commit": "4f60facf18b34ae06d164485aa2ce879e21e44fc" },
"live-server": { "branch": "main", "commit": "ecd7c1418823b65dd2bca710587c80afe42c973e" }, "live-server": { "branch": "main", "commit": "ecd7c1418823b65dd2bca710587c80afe42c973e" },
"lualine.nvim": { "branch": "master", "commit": "a52f078026b27694d2290e34efa61a6e4a690621" }, "lualine.nvim": { "branch": "master", "commit": "a52f078026b27694d2290e34efa61a6e4a690621" },

View file

@ -22,6 +22,7 @@ return {
require("user.alpha") require("user.alpha")
end, end,
}, },
-- line info bootom
{ {
"nvim-lualine/lualine.nvim", "nvim-lualine/lualine.nvim",
commit = "a52f078026b27694d2290e34efa61a6e4a690621", commit = "a52f078026b27694d2290e34efa61a6e4a690621",
@ -67,6 +68,7 @@ return {
require("user.treesitter") require("user.treesitter")
end, end,
}, },
-- for show icon
{ {
"kyazdani42/nvim-web-devicons", "kyazdani42/nvim-web-devicons",
commit = "563f3635c2d8a7be7933b9e547f7c178ba0d4352", commit = "563f3635c2d8a7be7933b9e547f7c178ba0d4352",
@ -74,6 +76,7 @@ return {
require("user.webdevicons") require("user.webdevicons")
end, end,
}, },
-- for tree exploler
{ {
"kyazdani42/nvim-tree.lua", "kyazdani42/nvim-tree.lua",
commit = "7282f7de8aedf861fe0162a559fc2b214383c51c", commit = "7282f7de8aedf861fe0162a559fc2b214383c51c",
@ -83,6 +86,7 @@ return {
require("user.nvim-tree") require("user.nvim-tree")
end, end,
}, },
-- for file tab
{ {
"akinsho/bufferline.nvim", "akinsho/bufferline.nvim",
commit = "83bf4dc7bff642e145c8b4547aa596803a8b4dc4", commit = "83bf4dc7bff642e145c8b4547aa596803a8b4dc4",
@ -93,6 +97,7 @@ return {
-- end, -- end,
}, },
{ "moll/vim-bbye", commit = "25ef93ac5a87526111f43e5110675032dbcacf56" }, { "moll/vim-bbye", commit = "25ef93ac5a87526111f43e5110675032dbcacf56" },
-- for view terminal
{ {
"akinsho/toggleterm.nvim", "akinsho/toggleterm.nvim",
commit = "2a787c426ef00cb3488c11b14f5dcf892bbd0bda", commit = "2a787c426ef00cb3488c11b14f5dcf892bbd0bda",
@ -110,6 +115,7 @@ return {
require("user.impatient") require("user.impatient")
end, end,
}, },
-- styleing indent
{ {
"lukas-reineke/indent-blankline.nvim", "lukas-reineke/indent-blankline.nvim",
commit = "db7cbcb40cc00fc5d6074d7569fb37197705e7f6", commit = "db7cbcb40cc00fc5d6074d7569fb37197705e7f6",
@ -118,6 +124,7 @@ return {
require("user.indentline") require("user.indentline")
end, end,
}, },
-- key mapping
{ {
"folke/which-key.nvim", "folke/which-key.nvim",
event = "BufWinEnter", event = "BufWinEnter",
@ -157,10 +164,20 @@ return {
end, { "lspconfig", "null-ls" }) end, { "lspconfig", "null-ls" })
end, end,
}, },
-- for formater linter
{ "jose-elias-alvarez/null-ls.nvim", commit = "c0c19f32b614b3921e17886c541c13a72748d450" }, { "jose-elias-alvarez/null-ls.nvim", commit = "c0c19f32b614b3921e17886c541c13a72748d450" },
{ "RRethy/vim-illuminate", commit = "a2e8476af3f3e993bb0d6477438aad3096512e42" }, { "RRethy/vim-illuminate", commit = "a2e8476af3f3e993bb0d6477438aad3096512e42" },
{
"jayp0521/mason-null-ls.nvim",
dependencies = "jose-elias-alvarez/null-ls.nvim",
event = "BufRead",
opts = function()
require("user.mason-null-ls")
end,
},
-- include for coding -- include for coding
require("plugins.coding"), -- extra plugins require("plugins.coding"), -- extra plugins
-- for search
{ {
"nvim-telescope/telescope.nvim", "nvim-telescope/telescope.nvim",
commit = "76ea9a898d3307244dce3573392dcf2cc38f340f", commit = "76ea9a898d3307244dce3573392dcf2cc38f340f",
@ -170,8 +187,11 @@ return {
require("user.telescope") require("user.telescope")
end, end,
}, },
-- for live server html,css,js
{ "manzeloth/live-server", cmd = { "LiveServer" } }, { "manzeloth/live-server", cmd = { "LiveServer" } },
-- for multi cursor select
{ "mg979/vim-visual-multi", event = "BufWinEnter" }, { "mg979/vim-visual-multi", event = "BufWinEnter" },
-- for auto close tag
{ {
"windwp/nvim-ts-autotag", "windwp/nvim-ts-autotag",
dependencies = "nvim-treesitter/nvim-treesitter", dependencies = "nvim-treesitter/nvim-treesitter",
@ -179,6 +199,7 @@ return {
require("nvim-ts-autotag").setup() require("nvim-ts-autotag").setup()
end, end,
}, },
-- for auto detection file and run code
{ {
"CRAG666/code_runner.nvim", "CRAG666/code_runner.nvim",
dependencies = "nvim-lua/plenary.nvim", dependencies = "nvim-lua/plenary.nvim",
@ -187,6 +208,7 @@ return {
require("user.coderunner") require("user.coderunner")
end, end,
}, },
-- for color view
{ {
"NvChad/nvim-colorizer.lua", "NvChad/nvim-colorizer.lua",
event = "VeryLazy", event = "VeryLazy",
@ -194,7 +216,9 @@ return {
require("user.colorizer") require("user.colorizer")
end, end,
}, },
-- for install only java support windows
{ "williamboman/nvim-lsp-installer" }, { "williamboman/nvim-lsp-installer" },
-- for winbar icon
{ {
"SmiteshP/nvim-navic", "SmiteshP/nvim-navic",
dependencies = "neovim/nvim-lspconfig", dependencies = "neovim/nvim-lspconfig",
@ -204,6 +228,7 @@ return {
require("user.winbar") require("user.winbar")
end, end,
}, },
-- for popup alert
{ {
"rcarriga/nvim-notify", "rcarriga/nvim-notify",
event = "BufRead", event = "BufRead",
@ -211,6 +236,7 @@ return {
vim.notify = require("notify") vim.notify = require("notify")
end, end,
}, },
-- for resize screen
{ {
"mrjones2014/smart-splits.nvim", "mrjones2014/smart-splits.nvim",
event = "BufWinEnter", event = "BufWinEnter",
@ -218,14 +244,7 @@ return {
require("user.smartspit") require("user.smartspit")
end, end,
}, },
{ -- for popup input
"jayp0521/mason-null-ls.nvim",
dependencies = "jose-elias-alvarez/null-ls.nvim",
event = "BufRead",
opts = function()
require("user.mason-null-ls")
end,
},
{ {
"stevearc/dressing.nvim", "stevearc/dressing.nvim",
event = "BufWinEnter", event = "BufWinEnter",
@ -233,6 +252,7 @@ return {
require("user.dressing") require("user.dressing")
end, end,
}, },
-- better todo coloring and icon
{ {
"folke/todo-comments.nvim", "folke/todo-comments.nvim",
event = "BufRead", event = "BufRead",
@ -240,6 +260,7 @@ return {
require("todo-comments").setup() require("todo-comments").setup()
end, end,
}, },
-- mini scrollview
{ {
"karb94/neoscroll.nvim", "karb94/neoscroll.nvim",
event = "WinScrolled", event = "WinScrolled",
@ -254,6 +275,7 @@ return {
require("user.nvimscroll") require("user.nvimscroll")
end, end,
}, },
-- auto complite commond mode
{ {
"gelguy/wilder.nvim", "gelguy/wilder.nvim",
event = "BufWinEnter", event = "BufWinEnter",
@ -304,6 +326,7 @@ return {
-- ) -- )
end, end,
}, },
-- for manage and coloring copy
{ {
"gbprod/yanky.nvim", "gbprod/yanky.nvim",
event = "BufRead", event = "BufRead",
@ -311,7 +334,9 @@ return {
require("user.yanky") require("user.yanky")
end, end,
}, },
-- for check startuptime
{ "dstein64/vim-startuptime", cmd = "StartupTime" }, { "dstein64/vim-startuptime", cmd = "StartupTime" },
-- for coloring pairs
{ "p00f/nvim-ts-rainbow", event = "BufWinEnter", dependencies = "nvim-treesitter/nvim-treesitter" }, { "p00f/nvim-ts-rainbow", event = "BufWinEnter", dependencies = "nvim-treesitter/nvim-treesitter" },
{ {
"lewis6991/gitsigns.nvim", "lewis6991/gitsigns.nvim",
@ -399,4 +424,12 @@ return {
-- require("user.chat_gpt") -- require("user.chat_gpt")
-- end, -- end,
}, },
-- indent detection
{
"Darazaki/indent-o-matic",
opt = true,
config = function()
require("user.indent-o-matic")
end,
},
} }

View file

@ -0,0 +1,20 @@
require("indent-o-matic").setup({
-- Global settings (optional, used as fallback)
max_lines = 2048,
standard_widths = { 2, 4, 8 },
-- Disable indent-o-matic for LISP files
filetype_lisp = {
max_lines = 0,
},
-- Only detect 4 spaces and tabs for java
filetype_java = {
standard_widths = { 4 },
},
-- Don't detect 8 spaces indentations inside files without a filetype
filetype_ = {
standard_widths = { 2, 4 },
},
})