This commit is contained in:
asep komarudin 2023-02-26 16:59:01 +07:00
parent 5d26ef6578
commit dd2647f88d
8 changed files with 270 additions and 283 deletions

View file

@ -1,7 +1,3 @@
-- local build = "powershell ./install.ps1"
-- if vim.fn.has("win32") == 0 then
-- build = "./install.sh"
-- end
return {
-- plugin ini merupakan penyedia library neovim lua
{
@ -248,14 +244,6 @@ return {
require("user.comment")
end,
},
-- better todo coloring and icon
{
"folke/todo-comments.nvim",
event = "BufRead",
config = function()
require("todo-comments").setup()
end,
},
-- styleing indent
{
"lukas-reineke/indent-blankline.nvim",
@ -264,7 +252,6 @@ return {
require("user.indentline")
end,
},
-- { "ahmedkhalf/project.nvim", commit = "628de7e433dd503e782831fe150bb750e56e55d6", event = "VeryLazy" },
-- for Speed up loading Lua modules in Neovim to improve startup time.
{
"lewis6991/impatient.nvim",
@ -301,13 +288,6 @@ return {
require("user.coderunner")
end,
},
{
"is0n/jaq-nvim",
event = "BufRead",
config = function()
require("user.jaq")
end,
},
-- for color view
{
"NvChad/nvim-colorizer.lua",
@ -369,14 +349,6 @@ return {
require("user.nvimscroll")
end,
},
-- for manage and coloring copy
{
"gbprod/yanky.nvim",
event = "BufRead",
config = function()
require("user.yanky")
end,
},
-- for check startuptime
{ "dstein64/vim-startuptime", cmd = "StartupTime", event = "BufRead" },
-- for coloring pairs
@ -395,101 +367,6 @@ return {
require("user.gitsigns")
end,
},
-- additional plugins
-- active indent guide and indent text objects
{
"echasnovski/mini.indentscope",
version = false, -- wait till new 0.7.0 release to put it back on semver
event = "BufReadPre",
opts = {
-- symbol = "▏",
symbol = "",
options = { try_as_border = true },
},
config = function(_, opts)
vim.api.nvim_create_autocmd("FileType", {
pattern = { "help", "alpha", "dashboard", "NvimTree", "Trouble", "lazy", "mason" },
callback = function()
vim.b.miniindentscope_disable = true
end,
})
require("mini.indentscope").setup(opts)
end,
},
-- makes some plugins dot-repeatable like leap
-- { "tpope/vim-repeat", event = "VeryLazy" },
-- better diagnostics list and others
{
"folke/trouble.nvim",
event = "BufRead",
cmd = { "TroubleToggle", "Trouble" },
opts = { use_diagnostic_signs = true },
keys = {
{ "<leader>xx", "<cmd>TroubleToggle document_diagnostics<cr>", desc = "Document Diagnostics (Trouble)" },
{ "<leader>xX", "<cmd>TroubleToggle workspace_diagnostics<cr>", desc = "Workspace Diagnostics (Trouble)" },
},
},
-- for markdown preview
-- make sure already install npm and yarn
-- {
-- "iamcco/markdown-preview.nvim",
-- event = "VeryLazy",
-- build = "cd app && npm install",
-- init = function()
-- vim.g.mkdp_filetypes = { "markdown" }
-- end,
-- ft = { "markdown" },
-- cmd = { "MarkdownPreview", "MarkdownPreviewStop", "MarkdownPreviewToggle" },
-- },
-- for codeGPT
-- {
-- "jackMort/ChatGPT.nvim",
-- dependencies = { "MunifTanjim/nui.nvim", "nvim-lua/plenary.nvim", "nvim-telescope/telescope.nvim" },
-- lazy = true,
-- event = "VeryLazy",
-- -- opts = function()
-- -- require("user.chat_gpt")
-- -- end,
-- },
-- indent detection
-- {
-- "Darazaki/indent-o-matic",
-- event = "VeryLazy",
-- opt = true,
-- cmd = { "IndentOMatic" },
-- config = function()
-- require("user.indent-o-matic")
-- end,
-- },
-- Lsp Saga
-- {
-- "glepnir/lspsaga.nvim",
-- event = "BufRead",
-- config = function()
-- require("lspsaga").setup({})
-- end,
-- dependencies = { { "kyazdani42/nvim-web-devicons" } },
-- init = function()
-- require("user.lspsaga_config")
-- end,
-- },
-- Khusus Projek laravel baru di buka
-- {
-- "adalessa/laravel.nvim",
-- dependencies = {
-- "nvim-telescope/telescope.nvim",
-- },
-- cmd = { "Sail", "Artisan", "Composer" },
-- keys = {
-- { "<leader>pa", ":Artisan<cr>" },
-- },
-- config = function()
-- require("laravel").setup()
-- require("telescope").load_extension("laravel")
-- end,
-- },
-- for loading info
{
"j-hui/fidget.nvim",
@ -498,20 +375,4 @@ return {
require("fidget").setup()
end,
},
{
"gelguy/wilder.nvim",
event = "BufWinEnter",
config = function()
local wilder = require("wilder")
wilder.setup({ modes = { ":", "/", "?" } })
wilder.set_option(
"renderer",
wilder.popupmenu_renderer({
highlighter = wilder.basic_highlighter(),
left = { " ", wilder.popupmenu_devicons() },
right = { " ", wilder.popupmenu_scrollbar() },
})
)
end,
},
}