mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-22 08:53:31 +02:00
add: update config
This commit is contained in:
parent
ebb2535ec2
commit
ade37580fc
2 changed files with 9 additions and 111 deletions
|
@ -4,7 +4,6 @@ return {
|
||||||
"nvim-lua/plenary.nvim",
|
"nvim-lua/plenary.nvim",
|
||||||
lazy = true,
|
lazy = true,
|
||||||
},
|
},
|
||||||
-- coding start
|
|
||||||
-- coloring code
|
-- coloring code
|
||||||
{
|
{
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
|
@ -54,28 +53,12 @@ return {
|
||||||
{
|
{
|
||||||
"L3MON4D3/LuaSnip",
|
"L3MON4D3/LuaSnip",
|
||||||
lazy = true,
|
lazy = true,
|
||||||
-- event = "InsertEnter",
|
|
||||||
-- dependencies = {
|
|
||||||
-- "rafamadriz/friendly-snippets",
|
|
||||||
-- event = "BufRead",
|
|
||||||
-- config = function()
|
|
||||||
-- require("luasnip.loaders.from_vscode").lazy_load()
|
|
||||||
-- require("user.snippets")
|
|
||||||
-- end,
|
|
||||||
-- },
|
|
||||||
opts = {
|
opts = {
|
||||||
history = true,
|
history = true,
|
||||||
delete_check_events = "TextChanged",
|
delete_check_events = "TextChanged",
|
||||||
},
|
},
|
||||||
-- stylua: ignore
|
-- stylua: ignore
|
||||||
keys = {
|
keys = {
|
||||||
-- {
|
|
||||||
-- "<tab>",
|
|
||||||
-- function()
|
|
||||||
-- return require("luasnip").jumpable(1) and "<Plug>luasnip-jump-next" or "<tab>"
|
|
||||||
-- end,
|
|
||||||
-- expr = true, silent = true, mode = "i",
|
|
||||||
-- },
|
|
||||||
{ "<tab>", function() require("luasnip").jump(1) end, mode = "s" },
|
{ "<tab>", function() require("luasnip").jump(1) end, mode = "s" },
|
||||||
{ "<s-tab>", function() require("luasnip").jump(-1) end, mode = { "i", "s" } },
|
{ "<s-tab>", function() require("luasnip").jump(-1) end, mode = { "i", "s" } },
|
||||||
},
|
},
|
||||||
|
@ -84,34 +67,10 @@ return {
|
||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
lazy = true,
|
lazy = true,
|
||||||
event = "BufRead",
|
event = "BufRead",
|
||||||
-- dependencies = {
|
|
||||||
-- "williamboman/mason-lspconfig.nvim",
|
|
||||||
-- },
|
|
||||||
-- config = function()
|
|
||||||
-- require("user.lsp")
|
|
||||||
-- end,
|
|
||||||
},
|
},
|
||||||
-- {
|
|
||||||
-- "williamboman/mason.nvim",
|
|
||||||
-- event = "VeryLazy",
|
|
||||||
-- cmd = {
|
|
||||||
-- "Mason",
|
|
||||||
-- "MasonInstall",
|
|
||||||
-- "MasonUninstall",
|
|
||||||
-- "MasonUninstallAll",
|
|
||||||
-- "MasonLog",
|
|
||||||
-- },
|
|
||||||
-- dependencies = { "williamboman/mason-lspconfig.nvim" },
|
|
||||||
-- init = function()
|
|
||||||
-- vim.tbl_map(function(plugin)
|
|
||||||
-- pcall(require, plugin)
|
|
||||||
-- end, { "lspconfig", "null-ls" })
|
|
||||||
-- end,
|
|
||||||
-- },
|
|
||||||
{
|
{
|
||||||
"williamboman/mason.nvim",
|
"williamboman/mason.nvim",
|
||||||
lazy = true,
|
lazy = true,
|
||||||
-- event = "InsertEnter",
|
|
||||||
dependencies = { "williamboman/mason-lspconfig.nvim" },
|
dependencies = { "williamboman/mason-lspconfig.nvim" },
|
||||||
cmd = {
|
cmd = {
|
||||||
"Mason",
|
"Mason",
|
||||||
|
@ -120,7 +79,6 @@ return {
|
||||||
"MasonUninstallAll",
|
"MasonUninstallAll",
|
||||||
"MasonLog",
|
"MasonLog",
|
||||||
},
|
},
|
||||||
-- keys = { { "<leader>cm", "<cmd>Mason<cr>", desc = "Mason" } },
|
|
||||||
config = function()
|
config = function()
|
||||||
require("user.lsp")
|
require("user.lsp")
|
||||||
end,
|
end,
|
||||||
|
@ -137,7 +95,6 @@ return {
|
||||||
end
|
end
|
||||||
illuminate.configure({
|
illuminate.configure({
|
||||||
options = {
|
options = {
|
||||||
-- providers: provider used to get references in the buffer, ordered by priority
|
|
||||||
providers = {
|
providers = {
|
||||||
"lsp",
|
"lsp",
|
||||||
"treesitter",
|
"treesitter",
|
||||||
|
@ -189,7 +146,6 @@ return {
|
||||||
"jayp0521/mason-null-ls.nvim",
|
"jayp0521/mason-null-ls.nvim",
|
||||||
lazy = true,
|
lazy = true,
|
||||||
dependencies = {
|
dependencies = {
|
||||||
-- "jose-elias-alvarez/null-ls.nvim",
|
|
||||||
"nvimtools/none-ls.nvim",
|
"nvimtools/none-ls.nvim",
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"nvimtools/none-ls-extras.nvim",
|
"nvimtools/none-ls-extras.nvim",
|
||||||
|
@ -240,8 +196,6 @@ return {
|
||||||
{
|
{
|
||||||
"JoosepAlviste/nvim-ts-context-commentstring",
|
"JoosepAlviste/nvim-ts-context-commentstring",
|
||||||
lazy = true,
|
lazy = true,
|
||||||
-- event = "BufWinEnter",
|
|
||||||
-- event = "InsertEnter",
|
|
||||||
dependencies = "nvim-treesitter/nvim-treesitter",
|
dependencies = "nvim-treesitter/nvim-treesitter",
|
||||||
config = function()
|
config = function()
|
||||||
require("ts_context_commentstring").setup({
|
require("ts_context_commentstring").setup({
|
||||||
|
@ -251,8 +205,6 @@ return {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"numToStr/Comment.nvim",
|
"numToStr/Comment.nvim",
|
||||||
-- event = "BufWinEnter",
|
|
||||||
-- event = "InsertEnter",
|
|
||||||
lazy = true,
|
lazy = true,
|
||||||
config = function()
|
config = function()
|
||||||
require("user.comment")
|
require("user.comment")
|
||||||
|
@ -260,7 +212,6 @@ return {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"lukas-reineke/indent-blankline.nvim",
|
"lukas-reineke/indent-blankline.nvim",
|
||||||
-- event = "BufWinEnter",
|
|
||||||
version = "3.5.4",
|
version = "3.5.4",
|
||||||
event = { "BufRead", "InsertEnter", "BufNewFile" },
|
event = { "BufRead", "InsertEnter", "BufNewFile" },
|
||||||
lazy = true,
|
lazy = true,
|
||||||
|
@ -298,30 +249,6 @@ return {
|
||||||
},
|
},
|
||||||
main = "ibl",
|
main = "ibl",
|
||||||
},
|
},
|
||||||
-- styleing indent
|
|
||||||
-- {
|
|
||||||
-- "lukas-reineke/indent-blankline.nvim",
|
|
||||||
-- event = "BufRead",
|
|
||||||
-- config = function()
|
|
||||||
-- require("user.indentline")
|
|
||||||
-- -- require("ibl").setup()
|
|
||||||
-- end,
|
|
||||||
-- },
|
|
||||||
-- for Speed up loading Lua modules in Neovim to improve startup time.
|
|
||||||
-- {
|
|
||||||
-- "lewis6991/impatient.nvim",
|
|
||||||
-- event = "BufWinEnter",
|
|
||||||
-- config = function()
|
|
||||||
-- require("user.impatient")
|
|
||||||
-- end,
|
|
||||||
-- },
|
|
||||||
-- for live server html,css,js
|
|
||||||
-- {
|
|
||||||
-- "manzeloth/live-server",
|
|
||||||
-- cmd = { "LiveServer" },
|
|
||||||
-- event = "BufRead",
|
|
||||||
-- build = "npm install -g live-server",
|
|
||||||
-- },
|
|
||||||
-- for multi cursor select
|
-- for multi cursor select
|
||||||
{
|
{
|
||||||
"mg979/vim-visual-multi",
|
"mg979/vim-visual-multi",
|
||||||
|
@ -340,7 +267,6 @@ return {
|
||||||
-- for auto close tag
|
-- for auto close tag
|
||||||
{
|
{
|
||||||
"windwp/nvim-ts-autotag",
|
"windwp/nvim-ts-autotag",
|
||||||
-- event = "BufWinEnter",
|
|
||||||
lazy = true,
|
lazy = true,
|
||||||
event = "BufRead",
|
event = "BufRead",
|
||||||
dependencies = "nvim-treesitter/nvim-treesitter",
|
dependencies = "nvim-treesitter/nvim-treesitter",
|
||||||
|
@ -352,8 +278,6 @@ return {
|
||||||
{
|
{
|
||||||
"CRAG666/code_runner.nvim",
|
"CRAG666/code_runner.nvim",
|
||||||
lazy = true,
|
lazy = true,
|
||||||
-- event = "InsertEnter",
|
|
||||||
-- dependencies = "nvim-lua/plenary.nvim",
|
|
||||||
cmd = { "RunCode", "RunFile", "RunProject", "RunClose" },
|
cmd = { "RunCode", "RunFile", "RunProject", "RunClose" },
|
||||||
config = function()
|
config = function()
|
||||||
require("user.coderunner")
|
require("user.coderunner")
|
||||||
|
@ -363,11 +287,7 @@ return {
|
||||||
{
|
{
|
||||||
"NvChad/nvim-colorizer.lua",
|
"NvChad/nvim-colorizer.lua",
|
||||||
lazy = true,
|
lazy = true,
|
||||||
-- event = "BufWinEnter",
|
|
||||||
event = { "BufRead", "InsertEnter", "BufNewFile" },
|
event = { "BufRead", "InsertEnter", "BufNewFile" },
|
||||||
-- opts = function()
|
|
||||||
-- require("user.colorizer")
|
|
||||||
-- end,
|
|
||||||
opts = {
|
opts = {
|
||||||
user_default_options = {
|
user_default_options = {
|
||||||
RGB = true, -- #RGB hex codes
|
RGB = true, -- #RGB hex codes
|
||||||
|
@ -473,14 +393,6 @@ return {
|
||||||
},
|
},
|
||||||
-- for check startuptime
|
-- for check startuptime
|
||||||
{ "dstein64/vim-startuptime", lazy = true, cmd = "StartupTime" },
|
{ "dstein64/vim-startuptime", lazy = true, cmd = "StartupTime" },
|
||||||
-- for coloring pairs
|
|
||||||
-- remark 20231101 - menyebabkan error treesitter
|
|
||||||
-- {
|
|
||||||
-- "p00f/nvim-ts-rainbow",
|
|
||||||
-- event = "BufRead",
|
|
||||||
-- dependencies = "nvim-treesitter/nvim-treesitter",
|
|
||||||
-- },
|
|
||||||
-- for git
|
|
||||||
-- {
|
-- {
|
||||||
-- "HiPhish/nvim-ts-rainbow2",
|
-- "HiPhish/nvim-ts-rainbow2",
|
||||||
-- lazy = true,
|
-- lazy = true,
|
||||||
|
@ -498,6 +410,4 @@ return {
|
||||||
require("user.gitsigns")
|
require("user.gitsigns")
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
-- remove duplicate
|
|
||||||
-- { "tpope/vim-repeat", event = "InsertEnter" },
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,6 @@ return {
|
||||||
-- dashboard
|
-- dashboard
|
||||||
{
|
{
|
||||||
"goolord/alpha-nvim",
|
"goolord/alpha-nvim",
|
||||||
-- event = "BufWinEnter",
|
|
||||||
lazy = true,
|
lazy = true,
|
||||||
event = "VimEnter",
|
event = "VimEnter",
|
||||||
config = function()
|
config = function()
|
||||||
|
@ -13,8 +12,6 @@ return {
|
||||||
{
|
{
|
||||||
"nvim-lualine/lualine.nvim",
|
"nvim-lualine/lualine.nvim",
|
||||||
lazy = true,
|
lazy = true,
|
||||||
-- dependencies = { "kyazdani42/nvim-web-devicons", opt = true },
|
|
||||||
-- event = "BufWinEnter",
|
|
||||||
event = { "BufRead", "BufNewFile" },
|
event = { "BufRead", "BufNewFile" },
|
||||||
config = function()
|
config = function()
|
||||||
require("user.lualine_cfg")
|
require("user.lualine_cfg")
|
||||||
|
@ -25,7 +22,6 @@ return {
|
||||||
"kyazdani42/nvim-web-devicons",
|
"kyazdani42/nvim-web-devicons",
|
||||||
lazy = true,
|
lazy = true,
|
||||||
dependencies = { "pojokcodeid/nvim-material-icon" },
|
dependencies = { "pojokcodeid/nvim-material-icon" },
|
||||||
-- event = "BufRead",
|
|
||||||
config = function()
|
config = function()
|
||||||
require("user.webdevicons")
|
require("user.webdevicons")
|
||||||
end,
|
end,
|
||||||
|
@ -34,9 +30,7 @@ return {
|
||||||
{
|
{
|
||||||
"kyazdani42/nvim-tree.lua",
|
"kyazdani42/nvim-tree.lua",
|
||||||
lazy = true,
|
lazy = true,
|
||||||
-- event = "BufRead",
|
|
||||||
cmd = { "NvimTree", "NvimTreeOpen", "NvimTreeToggle", "NvimTreeFocus", "NvimTreeClose" },
|
cmd = { "NvimTree", "NvimTreeOpen", "NvimTreeToggle", "NvimTreeFocus", "NvimTreeClose" },
|
||||||
-- dependencies = "kyazdani42/nvim-web-devicons",
|
|
||||||
config = function()
|
config = function()
|
||||||
local data_exists, treeconfig = pcall(require, "core.config")
|
local data_exists, treeconfig = pcall(require, "core.config")
|
||||||
if data_exists then
|
if data_exists then
|
||||||
|
@ -50,25 +44,21 @@ return {
|
||||||
{
|
{
|
||||||
"famiu/bufdelete.nvim",
|
"famiu/bufdelete.nvim",
|
||||||
lazy = true,
|
lazy = true,
|
||||||
-- event = "InsertEnter",
|
|
||||||
},
|
},
|
||||||
-- {
|
{
|
||||||
-- "akinsho/bufferline.nvim",
|
"akinsho/bufferline.nvim",
|
||||||
-- lazy = true,
|
lazy = true,
|
||||||
-- -- event = "BufWinEnter",
|
branch = "main",
|
||||||
-- event = { "BufRead", "InsertEnter", "BufNewFile" },
|
event = { "BufRead", "InsertEnter", "BufNewFile" },
|
||||||
-- config = function()
|
config = function()
|
||||||
-- require("user.bufferline")
|
require("user.bufferline")
|
||||||
-- end,
|
end,
|
||||||
-- },
|
},
|
||||||
-- for delete buffers (close files) without closing your windows or messing up your layout.
|
|
||||||
-- { "moll/vim-bbye", event = "InsertEnter" },
|
|
||||||
-- for view terminal
|
-- for view terminal
|
||||||
{
|
{
|
||||||
"akinsho/toggleterm.nvim",
|
"akinsho/toggleterm.nvim",
|
||||||
lazy = true,
|
lazy = true,
|
||||||
cmd = { "ToggleTerm" },
|
cmd = { "ToggleTerm" },
|
||||||
-- event = "InsertEnter",
|
|
||||||
config = function()
|
config = function()
|
||||||
require("user.toggleterm")
|
require("user.toggleterm")
|
||||||
end,
|
end,
|
||||||
|
@ -87,8 +77,6 @@ return {
|
||||||
{
|
{
|
||||||
"nvim-telescope/telescope.nvim",
|
"nvim-telescope/telescope.nvim",
|
||||||
lazy = true,
|
lazy = true,
|
||||||
-- event = "BufRead",
|
|
||||||
-- dependencies = { { "nvim-lua/plenary.nvim" } },
|
|
||||||
cmd = "Telescope",
|
cmd = "Telescope",
|
||||||
version = false, -- telescope did only one release, so use HEAD for now
|
version = false, -- telescope did only one release, so use HEAD for now
|
||||||
config = function()
|
config = function()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue