pojokcodeid.nvim-lazy/lua/plugins/init.lua

444 lines
12 KiB
Lua
Raw Normal View History

2023-01-15 00:17:41 +07:00
return {
2023-01-15 00:22:51 +07:00
{
2023-01-15 00:17:41 +07:00
"nvim-lua/plenary.nvim",
commit = "4b7e52044bbb84242158d977a50c4cbcd85070c7",
event = "BufWinEnter",
module = "plenary",
},
2023-01-20 23:28:37 +07:00
-- color scheme
2023-01-15 00:22:51 +07:00
{
"folke/tokyonight.nvim",
2023-01-15 09:23:26 +07:00
commit = "66bfc2e8f754869c7b651f3f47a2ee56ae557764",
2023-01-15 00:22:51 +07:00
lazy = false, -- make sure we load this during startup if it is your main colorscheme
priority = 1000, -- make sure to load this before all the other start plugins
},
2023-01-20 23:28:37 +07:00
-- dashboard
2023-01-15 00:22:51 +07:00
{
2023-01-15 00:17:41 +07:00
"goolord/alpha-nvim",
commit = "0bb6fc0646bcd1cdb4639737a1cee8d6e08bcc31",
module = "alpha",
event = "BufWinEnter",
config = function()
require("user.alpha")
end,
},
2023-01-21 11:01:35 +07:00
-- line info bootom
2023-01-15 00:17:41 +07:00
{
"nvim-lualine/lualine.nvim",
commit = "a52f078026b27694d2290e34efa61a6e4a690621",
2023-01-17 13:36:46 +07:00
dependencies = { "kyazdani42/nvim-web-devicons", opt = true },
2023-01-15 00:17:41 +07:00
event = "BufWinEnter",
2023-01-15 00:22:51 +07:00
opts = function()
2023-01-15 00:17:41 +07:00
require("user.lualine")
end,
},
2023-01-15 00:22:51 +07:00
{ "rafamadriz/friendly-snippets" },
{
"hrsh7th/nvim-cmp",
dependencies = "rafamadriz/friendly-snippets",
opts = function()
2023-01-15 00:17:41 +07:00
require("user.cmp")
end,
2023-01-15 00:22:51 +07:00
},
2023-01-15 00:17:41 +07:00
{
"windwp/nvim-autopairs",
commit = "4fc96c8f3df89b6d23e5092d31c866c53a346347",
dependencies = "hrsh7th/nvim-cmp",
2023-01-15 00:22:51 +07:00
event = "VeryLazy",
2023-01-15 00:17:41 +07:00
init = function()
require("user.autopairs")
end,
},
{
"numToStr/Comment.nvim",
commit = "97a188a98b5a3a6f9b1b850799ac078faa17ab67",
2023-01-15 06:07:14 +07:00
event = "InsertEnter",
2023-01-15 00:17:41 +07:00
init = function()
require("user.comment")
end,
},
-- include treesitter
2023-01-15 00:57:57 +07:00
-- require("plugins.treesitter"),
{
"nvim-treesitter/nvim-treesitter",
commit = "8e763332b7bf7b3a426fd8707b7f5aa85823a5ac",
run = ":TSUpdate",
event = "BufWinEnter",
opts = function()
require("user.treesitter")
end,
},
2023-01-21 11:01:35 +07:00
-- for show icon
2023-01-15 00:22:51 +07:00
{
2023-01-15 00:17:41 +07:00
"kyazdani42/nvim-web-devicons",
commit = "563f3635c2d8a7be7933b9e547f7c178ba0d4352",
2023-01-18 20:17:29 +07:00
config = function()
2023-01-15 00:17:41 +07:00
require("user.webdevicons")
end,
},
2023-01-21 11:01:35 +07:00
-- for tree exploler
2023-01-15 00:17:41 +07:00
{
"kyazdani42/nvim-tree.lua",
commit = "7282f7de8aedf861fe0162a559fc2b214383c51c",
cmd = "NvimTreeToggle",
dependencies = "kyazdani42/nvim-web-devicons",
2023-01-20 13:06:35 +07:00
init = function()
2023-01-15 00:17:41 +07:00
require("user.nvim-tree")
end,
},
2023-01-21 11:01:35 +07:00
-- for file tab
2023-01-15 00:17:41 +07:00
{
"akinsho/bufferline.nvim",
commit = "83bf4dc7bff642e145c8b4547aa596803a8b4dc4",
2023-01-15 00:22:51 +07:00
dependencies = { "kyazdani42/nvim-web-devicons", "famiu/bufdelete.nvim" },
2023-01-15 00:17:41 +07:00
event = "VeryLazy",
2023-01-15 00:22:51 +07:00
-- config = function()
-- require("user.bufferline")
-- end,
2023-01-15 00:17:41 +07:00
},
{ "moll/vim-bbye", commit = "25ef93ac5a87526111f43e5110675032dbcacf56" },
2023-01-21 11:01:35 +07:00
-- for view terminal
2023-01-15 00:17:41 +07:00
{
"akinsho/toggleterm.nvim",
commit = "2a787c426ef00cb3488c11b14f5dcf892bbd0bda",
cmd = "Toggleterm",
event = "BufWinEnter",
init = function()
require("user.toggleterm")
end,
},
{ "ahmedkhalf/project.nvim", commit = "628de7e433dd503e782831fe150bb750e56e55d6" },
{
"lewis6991/impatient.nvim",
commit = "b842e16ecc1a700f62adb9802f8355b99b52a5a6",
init = function()
require("user.impatient")
end,
},
2023-01-21 11:01:35 +07:00
-- styleing indent
2023-01-15 00:17:41 +07:00
{
"lukas-reineke/indent-blankline.nvim",
commit = "db7cbcb40cc00fc5d6074d7569fb37197705e7f6",
event = "BufRead",
init = function()
require("user.indentline")
end,
},
2023-01-21 11:01:35 +07:00
-- key mapping
2023-01-15 00:17:41 +07:00
{
"folke/which-key.nvim",
event = "BufWinEnter",
init = function()
require("user.whichkey")
end,
},
2023-01-15 00:22:51 +07:00
-- start programming
{ "hrsh7th/cmp-buffer", commit = "3022dbc9166796b644a841a02de8dd1cc1d311fa", dependencies = "hrsh7th/nvim-cmp" },
{ "hrsh7th/cmp-nvim-lua", commit = "d276254e7198ab7d00f117e88e223b4bd8c02d21", dependencies = "hrsh7th/nvim-cmp" },
2023-01-15 00:17:41 +07:00
{
"neovim/nvim-lspconfig",
commit = "f11fdff7e8b5b415e5ef1837bdcdd37ea6764dda",
event = "BufWinEnter",
2023-01-17 13:36:46 +07:00
config = function()
2023-01-15 00:17:41 +07:00
require("user.lsp")
end,
},
2023-01-19 22:38:22 +07:00
{
"williamboman/mason-lspconfig.nvim",
lazy = true,
},
2023-01-15 00:17:41 +07:00
{
"williamboman/mason.nvim",
commit = "c2002d7a6b5a72ba02388548cfaf420b864fbc12",
cmd = {
"Mason",
"MasonInstall",
"MasonUninstall",
"MasonUninstallAll",
"MasonLog",
},
2023-01-15 00:22:51 +07:00
dependencies = { "williamboman/mason-lspconfig.nvim" },
2023-01-15 00:17:41 +07:00
init = function()
vim.tbl_map(function(plugin)
pcall(require, plugin)
end, { "lspconfig", "null-ls" })
end,
},
2023-01-21 11:01:35 +07:00
-- for formater linter
2023-01-15 00:17:41 +07:00
{ "jose-elias-alvarez/null-ls.nvim", commit = "c0c19f32b614b3921e17886c541c13a72748d450" },
2023-01-15 00:22:51 +07:00
{ "RRethy/vim-illuminate", commit = "a2e8476af3f3e993bb0d6477438aad3096512e42" },
2023-01-21 11:01:35 +07:00
{
"jayp0521/mason-null-ls.nvim",
dependencies = "jose-elias-alvarez/null-ls.nvim",
event = "BufRead",
opts = function()
require("user.mason-null-ls")
end,
},
2023-01-15 00:17:41 +07:00
-- include for coding
2023-01-15 00:22:51 +07:00
require("plugins.coding"), -- extra plugins
2023-01-21 11:01:35 +07:00
-- for search
2023-01-15 00:22:51 +07:00
{
2023-01-15 00:17:41 +07:00
"nvim-telescope/telescope.nvim",
commit = "76ea9a898d3307244dce3573392dcf2cc38f340f",
dependencies = { { "nvim-lua/plenary.nvim" } },
cmd = "Telescope",
init = function()
require("user.telescope")
end,
},
2023-01-21 11:01:35 +07:00
-- for live server html,css,js
2023-01-15 00:22:51 +07:00
{ "manzeloth/live-server", cmd = { "LiveServer" } },
2023-01-21 11:01:35 +07:00
-- for multi cursor select
2023-01-15 00:22:51 +07:00
{ "mg979/vim-visual-multi", event = "BufWinEnter" },
2023-01-21 11:01:35 +07:00
-- for auto close tag
2023-01-15 00:17:41 +07:00
{
"windwp/nvim-ts-autotag",
2023-01-15 00:57:57 +07:00
dependencies = "nvim-treesitter/nvim-treesitter",
2023-01-15 00:22:51 +07:00
init = function()
require("nvim-ts-autotag").setup()
2023-01-15 00:17:41 +07:00
end,
},
2023-01-21 11:01:35 +07:00
-- for auto detection file and run code
2023-01-15 00:17:41 +07:00
{
"CRAG666/code_runner.nvim",
dependencies = "nvim-lua/plenary.nvim",
cmd = { "RunCode", "RunFile", "RunProject", "RunClose" },
config = function()
require("user.coderunner")
end,
},
2023-01-21 11:43:43 +07:00
{
"is0n/jaq-nvim",
event = "CursorHold",
config = function()
require("user.jaq")
end,
},
2023-01-21 11:01:35 +07:00
-- for color view
2023-01-15 00:17:41 +07:00
{
"NvChad/nvim-colorizer.lua",
2023-01-15 06:07:14 +07:00
event = "VeryLazy",
2023-01-15 00:17:41 +07:00
opts = function()
require("user.colorizer")
end,
},
2023-01-21 11:01:35 +07:00
-- for install only java support windows
2023-01-15 00:17:41 +07:00
{ "williamboman/nvim-lsp-installer" },
2023-01-21 11:01:35 +07:00
-- for winbar icon
2023-01-15 00:17:41 +07:00
{
"SmiteshP/nvim-navic",
dependencies = "neovim/nvim-lspconfig",
event = "BufRead",
config = function()
require("user.breadcrumb")
require("user.winbar")
end,
},
2023-01-21 11:01:35 +07:00
-- for popup alert
2023-01-15 00:17:41 +07:00
{
"rcarriga/nvim-notify",
event = "BufRead",
config = function()
vim.notify = require("notify")
end,
},
2023-01-21 11:01:35 +07:00
-- for resize screen
2023-01-15 00:17:41 +07:00
{
"mrjones2014/smart-splits.nvim",
event = "BufWinEnter",
config = function()
require("user.smartspit")
end,
},
2023-01-21 11:01:35 +07:00
-- for popup input
2023-01-15 00:17:41 +07:00
{
"stevearc/dressing.nvim",
event = "BufWinEnter",
config = function()
require("user.dressing")
end,
},
2023-01-21 11:01:35 +07:00
-- better todo coloring and icon
2023-01-15 00:17:41 +07:00
{
"folke/todo-comments.nvim",
event = "BufRead",
config = function()
require("todo-comments").setup()
end,
},
2023-01-21 11:01:35 +07:00
-- mini scrollview
2023-01-15 00:17:41 +07:00
{
"karb94/neoscroll.nvim",
2023-01-21 10:31:05 +07:00
event = "WinScrolled",
2023-01-15 00:17:41 +07:00
config = function()
require("user.neoscroll")
end,
},
2023-01-15 00:22:51 +07:00
{
2023-01-15 00:17:41 +07:00
"dstein64/nvim-scrollview",
event = "BufRead",
config = function()
require("user.nvimscroll")
end,
},
2023-01-21 11:01:35 +07:00
-- auto complite commond mode
2023-01-15 00:17:41 +07:00
{
"gelguy/wilder.nvim",
event = "BufWinEnter",
config = function()
local wilder = require("wilder")
wilder.setup({ modes = { ":", "/", "?" } })
2023-01-15 11:30:38 +07:00
-- *ini popup biasa
-- wilder.set_option(
-- "renderer",
-- wilder.popupmenu_renderer({
-- highlighter = wilder.basic_highlighter(),
-- left = { " ", wilder.popupmenu_devicons() },
-- right = { " ", wilder.popupmenu_scrollbar() },
-- })
-- )
-- *ini untuk border rounded
2023-01-15 17:55:43 +07:00
wilder.set_option(
"renderer",
2023-01-21 10:31:05 +07:00
wilder.popupmenu_renderer(wilder.popupmenu_border_theme({
highlights = {
border = "Normal", -- highlight to use for the border
},
2023-01-15 11:30:38 +07:00
-- 'single', 'double', 'rounded' or 'solid'
2023-01-21 10:31:05 +07:00
-- can also be a list of 8 characters, see :h wilder#popupmenu_border_theme() for more details
2023-01-15 17:55:43 +07:00
border = "rounded",
2023-01-15 00:17:41 +07:00
left = { " ", wilder.popupmenu_devicons() },
2023-01-15 17:55:43 +07:00
right = { " ", wilder.popupmenu_scrollbar() },
}))
)
2023-01-21 10:31:05 +07:00
-- *ini untuk popup dialog
-- wilder.set_option(
-- "renderer",
-- wilder.popupmenu_renderer(wilder.popupmenu_palette_theme({
-- -- 'single', 'double', 'rounded' or 'solid'
-- -- can also be a list of 8 characters, see :h wilder#popupmenu_palette_theme() for more details
-- border = "rounded",
-- max_height = "40%", -- max height of the palette
-- max_width = "40%",
-- min_height = 0, -- set to the same as 'max_height' for a fixed height window
-- prompt_position = "top", -- 'top' or 'bottom' to set the location of the prompt
-- reverse = 0, -- set to 1 to reverse the order of the list, use in combination with 'prompt_position'
-- left = { " ", wilder.popupmenu_devicons() },
-- right = { " ", wilder.popupmenu_scrollbar() },
-- pumblend = 20,
-- }))
-- )
2023-01-15 00:17:41 +07:00
end,
},
2023-01-21 11:01:35 +07:00
-- for manage and coloring copy
2023-01-15 00:17:41 +07:00
{
"gbprod/yanky.nvim",
event = "BufRead",
config = function()
require("user.yanky")
end,
},
2023-01-21 11:01:35 +07:00
-- for check startuptime
2023-01-15 00:22:51 +07:00
{ "dstein64/vim-startuptime", cmd = "StartupTime" },
2023-01-21 11:01:35 +07:00
-- for coloring pairs
2023-01-15 00:17:41 +07:00
{ "p00f/nvim-ts-rainbow", event = "BufWinEnter", dependencies = "nvim-treesitter/nvim-treesitter" },
{
"lewis6991/gitsigns.nvim",
commit = "2c6f96dda47e55fa07052ce2e2141e8367cbaaf2",
2023-01-17 13:36:46 +07:00
enabled = vim.fn.executable("git") == 1,
2023-01-15 00:17:41 +07:00
ft = "gitcommit",
event = "VeryLazy",
config = function()
require("user.gitsigns")
end,
2023-01-15 00:22:51 +07:00
},
2023-01-15 07:34:41 +07:00
-- additional new 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", "neo-tree", "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",
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)" },
},
},
2023-01-17 13:36:46 +07:00
-- for markdown preview
-- make sure already install npm and yarn
{
"iamcco/markdown-preview.nvim",
build = "cd app && npm install",
init = function()
vim.g.mkdp_filetypes = { "markdown" }
end,
ft = { "markdown" },
cmd = { "MarkdownPreview", "MarkdownPreviewStop", "MarkdownPreviewToggle" },
},
2023-01-18 17:42:00 +07:00
-- debuging
{
"mfussenegger/nvim-dap",
2023-01-20 23:28:37 +07:00
enabled = vim.fn.has("win32") == 0,
2023-01-18 17:42:00 +07:00
},
{
"rcarriga/nvim-dap-ui",
dependencies = "mfussenegger/nvim-dap",
2023-01-20 23:28:37 +07:00
enabled = vim.fn.has("win32") == 0,
2023-01-18 17:42:00 +07:00
init = function()
require("user.dapui")
end,
},
{
"jayp0521/mason-nvim-dap.nvim",
dependencies = { "williamboman/mason.nvim", "mfussenegger/nvim-dap" },
2023-01-20 23:28:37 +07:00
enabled = vim.fn.has("win32") == 0,
2023-01-18 17:42:00 +07:00
init = function()
require("user.mason_dap")
end,
},
2023-01-19 00:00:48 +07:00
-- for codeGPT
{
"jackMort/ChatGPT.nvim",
dependencies = { "MunifTanjim/nui.nvim", "nvim-lua/plenary.nvim", "nvim-telescope/telescope.nvim" },
2023-01-19 06:06:03 +07:00
lazy = true,
event = "VeryLazy",
-- opts = function()
2023-01-19 00:00:48 +07:00
-- require("user.chat_gpt")
-- end,
},
2023-01-21 11:01:35 +07:00
-- indent detection
{
"Darazaki/indent-o-matic",
opt = true,
2023-01-21 11:06:00 +07:00
cmd = { "IndentOMatic" },
2023-01-21 11:01:35 +07:00
config = function()
require("user.indent-o-matic")
end,
},
2023-01-15 00:22:51 +07:00
}