This commit is contained in:
asep komarudin 2023-01-15 00:22:51 +07:00
parent 1ab37bd478
commit bb1f2477f4
2 changed files with 38 additions and 39 deletions

View file

@ -5,12 +5,12 @@ require("user.keymaps")
require("user.autocommands") require("user.autocommands")
require("user.colorscheme") require("user.colorscheme")
require("user.snip") require("user.snip")
require("user.bufferline")
if onsave then if onsave then
require("user.format_onsave") require("user.format_onsave")
end end
-- dipindah ke plugins -- dipindah ke plugins
-- require("user.lualine") -- require("user.lualine")
-- require("user.bufferline")
-- require("user.cmp") -- require("user.cmp")
-- require("user.lsp") -- require("user.lsp")

View file

@ -1,17 +1,17 @@
return { return {
-- the colorscheme should be available when starting Neovim -- the colorscheme should be available when starting Neovim
{ {
"nvim-lua/plenary.nvim", "nvim-lua/plenary.nvim",
commit = "4b7e52044bbb84242158d977a50c4cbcd85070c7", commit = "4b7e52044bbb84242158d977a50c4cbcd85070c7",
event = "BufWinEnter", event = "BufWinEnter",
module = "plenary", module = "plenary",
}, },
{ {
"folke/tokyonight.nvim", "folke/tokyonight.nvim",
lazy = false, -- make sure we load this during startup if it is your main colorscheme 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 priority = 1000, -- make sure to load this before all the other start plugins
}, },
{ {
"goolord/alpha-nvim", "goolord/alpha-nvim",
commit = "0bb6fc0646bcd1cdb4639737a1cee8d6e08bcc31", commit = "0bb6fc0646bcd1cdb4639737a1cee8d6e08bcc31",
module = "alpha", module = "alpha",
@ -25,22 +25,23 @@ return {
commit = "a52f078026b27694d2290e34efa61a6e4a690621", commit = "a52f078026b27694d2290e34efa61a6e4a690621",
require = { "kyazdani42/nvim-web-devicons", opt = true }, require = { "kyazdani42/nvim-web-devicons", opt = true },
event = "BufWinEnter", event = "BufWinEnter",
opts=function() opts = function()
require("user.lualine") require("user.lualine")
end, end,
}, },
{"rafamadriz/friendly-snippets"}, { "rafamadriz/friendly-snippets" },
{"hrsh7th/nvim-cmp", {
dependencies ="rafamadriz/friendly-snippets", "hrsh7th/nvim-cmp",
opts=function() dependencies = "rafamadriz/friendly-snippets",
opts = function()
require("user.cmp") require("user.cmp")
end, end,
}, },
{ {
"windwp/nvim-autopairs", "windwp/nvim-autopairs",
commit = "4fc96c8f3df89b6d23e5092d31c866c53a346347", commit = "4fc96c8f3df89b6d23e5092d31c866c53a346347",
dependencies = "hrsh7th/nvim-cmp", dependencies = "hrsh7th/nvim-cmp",
event="VeryLazy", event = "VeryLazy",
init = function() init = function()
require("user.autopairs") require("user.autopairs")
end, end,
@ -54,8 +55,8 @@ return {
end, end,
}, },
-- include treesitter -- include treesitter
require("plugins.treesitter") require("plugins.treesitter"),
,{ {
"kyazdani42/nvim-web-devicons", "kyazdani42/nvim-web-devicons",
commit = "563f3635c2d8a7be7933b9e547f7c178ba0d4352", commit = "563f3635c2d8a7be7933b9e547f7c178ba0d4352",
init = function() init = function()
@ -74,11 +75,11 @@ return {
{ {
"akinsho/bufferline.nvim", "akinsho/bufferline.nvim",
commit = "83bf4dc7bff642e145c8b4547aa596803a8b4dc4", commit = "83bf4dc7bff642e145c8b4547aa596803a8b4dc4",
dependencies = {"kyazdani42/nvim-web-devicons","famiu/bufdelete.nvim"}, dependencies = { "kyazdani42/nvim-web-devicons", "famiu/bufdelete.nvim" },
event = "VeryLazy", event = "VeryLazy",
config=function() -- config = function()
require("user.bufferline") -- require("user.bufferline")
end, -- end,
}, },
{ "moll/vim-bbye", commit = "25ef93ac5a87526111f43e5110675032dbcacf56" }, { "moll/vim-bbye", commit = "25ef93ac5a87526111f43e5110675032dbcacf56" },
{ {
@ -114,8 +115,8 @@ return {
end, end,
}, },
-- start programming -- start programming
{ "hrsh7th/cmp-buffer", commit = "3022dbc9166796b644a841a02de8dd1cc1d311fa", dependencies = "hrsh7th/nvim-cmp"}, { "hrsh7th/cmp-buffer", commit = "3022dbc9166796b644a841a02de8dd1cc1d311fa", dependencies = "hrsh7th/nvim-cmp" },
{ "hrsh7th/cmp-nvim-lua", commit = "d276254e7198ab7d00f117e88e223b4bd8c02d21", dependencies = "hrsh7th/nvim-cmp" }, { "hrsh7th/cmp-nvim-lua", commit = "d276254e7198ab7d00f117e88e223b4bd8c02d21", dependencies = "hrsh7th/nvim-cmp" },
{ {
"neovim/nvim-lspconfig", "neovim/nvim-lspconfig",
commit = "f11fdff7e8b5b415e5ef1837bdcdd37ea6764dda", commit = "f11fdff7e8b5b415e5ef1837bdcdd37ea6764dda",
@ -134,7 +135,7 @@ return {
"MasonUninstallAll", "MasonUninstallAll",
"MasonLog", "MasonLog",
}, },
dependencies={"williamboman/mason-lspconfig.nvim"}, dependencies = { "williamboman/mason-lspconfig.nvim" },
init = function() init = function()
vim.tbl_map(function(plugin) vim.tbl_map(function(plugin)
pcall(require, plugin) pcall(require, plugin)
@ -142,12 +143,10 @@ return {
end, end,
}, },
{ "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" },
-- include for coding -- include for coding
require "plugins.coding" require("plugins.coding"), -- extra plugins
{
-- extra plugins
,{
"nvim-telescope/telescope.nvim", "nvim-telescope/telescope.nvim",
commit = "76ea9a898d3307244dce3573392dcf2cc38f340f", commit = "76ea9a898d3307244dce3573392dcf2cc38f340f",
dependencies = { { "nvim-lua/plenary.nvim" } }, dependencies = { { "nvim-lua/plenary.nvim" } },
@ -156,13 +155,13 @@ return {
require("user.telescope") require("user.telescope")
end, end,
}, },
{ "manzeloth/live-server", cmd={"LiveServer"} }, { "manzeloth/live-server", cmd = { "LiveServer" } },
{ "mg979/vim-visual-multi", event = "BufWinEnter" }, { "mg979/vim-visual-multi", event = "BufWinEnter" },
{ {
"windwp/nvim-ts-autotag", "windwp/nvim-ts-autotag",
dependencies = "nvim-treesitter", dependencies = "nvim-treesitter",
init=function() init = function()
require('nvim-ts-autotag').setup() require("nvim-ts-autotag").setup()
end, end,
}, },
{ {
@ -233,7 +232,7 @@ return {
require("user.neoscroll") require("user.neoscroll")
end, end,
}, },
{ {
"dstein64/nvim-scrollview", "dstein64/nvim-scrollview",
event = "BufRead", event = "BufRead",
config = function() config = function()
@ -263,7 +262,7 @@ return {
require("user.yanky") require("user.yanky")
end, end,
}, },
{ "dstein64/vim-startuptime", cmd="StartupTime" }, { "dstein64/vim-startuptime", cmd = "StartupTime" },
{ "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",
@ -274,5 +273,5 @@ return {
config = function() config = function()
require("user.gitsigns") require("user.gitsigns")
end, end,
} },
} }