mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-22 00:49:01 +02:00
update plugin
This commit is contained in:
parent
8d1faf8d07
commit
a2e62bb9f4
7 changed files with 945 additions and 322 deletions
|
@ -1,123 +0,0 @@
|
|||
return {
|
||||
-- snippets
|
||||
{
|
||||
"L3MON4D3/LuaSnip",
|
||||
dependencies = {
|
||||
"rafamadriz/friendly-snippets",
|
||||
config = function()
|
||||
require("luasnip.loaders.from_vscode").lazy_load()
|
||||
end,
|
||||
},
|
||||
opts = {
|
||||
history = true,
|
||||
delete_check_events = "TextChanged",
|
||||
},
|
||||
-- stylua: ignore
|
||||
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" },
|
||||
{ "<s-tab>", function() require("luasnip").jump(-1) end, mode = { "i", "s" } },
|
||||
},
|
||||
},
|
||||
|
||||
-- auto completion
|
||||
{
|
||||
"hrsh7th/nvim-cmp",
|
||||
event = "InsertEnter",
|
||||
dependencies = {
|
||||
"hrsh7th/cmp-nvim-lsp",
|
||||
"hrsh7th/cmp-buffer",
|
||||
"hrsh7th/cmp-path",
|
||||
"saadparwaiz1/cmp_luasnip",
|
||||
},
|
||||
},
|
||||
|
||||
-- auto pairs
|
||||
{
|
||||
"echasnovski/mini.pairs",
|
||||
event = "VeryLazy",
|
||||
config = function(_, opts)
|
||||
require("mini.pairs").setup(opts)
|
||||
end,
|
||||
},
|
||||
|
||||
-- surround
|
||||
{
|
||||
"echasnovski/mini.surround",
|
||||
keys = { "gz" },
|
||||
opts = {
|
||||
mappings = {
|
||||
add = "gza", -- Add surrounding in Normal and Visual modes
|
||||
delete = "gzd", -- Delete surrounding
|
||||
find = "gzf", -- Find surrounding (to the right)
|
||||
find_left = "gzF", -- Find surrounding (to the left)
|
||||
highlight = "gzh", -- Highlight surrounding
|
||||
replace = "gzr", -- Replace surrounding
|
||||
update_n_lines = "gzn", -- Update `n_lines`
|
||||
},
|
||||
},
|
||||
config = function(_, opts)
|
||||
-- use gz mappings instead of s to prevent conflict with leap
|
||||
require("mini.surround").setup(opts)
|
||||
end,
|
||||
},
|
||||
|
||||
-- comments
|
||||
{ "JoosepAlviste/nvim-ts-context-commentstring" },
|
||||
{
|
||||
"echasnovski/mini.comment",
|
||||
event = "VeryLazy",
|
||||
opts = {
|
||||
hooks = {
|
||||
pre = function()
|
||||
require("ts_context_commentstring.internal").update_commentstring({})
|
||||
end,
|
||||
},
|
||||
},
|
||||
config = function(_, opts)
|
||||
require("mini.comment").setup(opts)
|
||||
end,
|
||||
},
|
||||
|
||||
-- better text-objects
|
||||
{
|
||||
"echasnovski/mini.ai",
|
||||
keys = {
|
||||
{ "a", mode = { "x", "o" } },
|
||||
{ "i", mode = { "x", "o" } },
|
||||
},
|
||||
dependencies = {
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter-textobjects",
|
||||
init = function()
|
||||
-- no need to load the plugin, since we only need its queries
|
||||
require("lazy.core.loader").disable_rtp_plugin("nvim-treesitter-textobjects")
|
||||
end,
|
||||
},
|
||||
},
|
||||
opts = function()
|
||||
local ai = require("mini.ai")
|
||||
return {
|
||||
n_lines = 500,
|
||||
custom_textobjects = {
|
||||
o = ai.gen_spec.treesitter({
|
||||
a = { "@block.outer", "@conditional.outer", "@loop.outer" },
|
||||
i = { "@block.inner", "@conditional.inner", "@loop.inner" },
|
||||
}, {}),
|
||||
f = ai.gen_spec.treesitter({ a = "@function.outer", i = "@function.inner" }, {}),
|
||||
c = ai.gen_spec.treesitter({ a = "@class.outer", i = "@class.inner" }, {}),
|
||||
},
|
||||
}
|
||||
end,
|
||||
config = function(_, opts)
|
||||
local ai = require("mini.ai")
|
||||
ai.setup(opts)
|
||||
end,
|
||||
},
|
||||
}
|
|
@ -20,15 +20,15 @@ return {
|
|||
end
|
||||
end,
|
||||
},
|
||||
{
|
||||
"navarasu/onedark.nvim",
|
||||
init = function()
|
||||
require("user.onedark")
|
||||
require("onedark").load()
|
||||
end,
|
||||
},
|
||||
-- {
|
||||
-- "navarasu/onedark.nvim",
|
||||
-- init = function()
|
||||
-- require("user.onedark")
|
||||
-- require("onedark").load()
|
||||
-- end,
|
||||
-- },
|
||||
-- { "lunarvim/lunar.nvim" },
|
||||
{ "arcticicestudio/nord-vim" },
|
||||
-- { "arcticicestudio/nord-vim" },
|
||||
-- {
|
||||
-- "catppuccin/nvim",
|
||||
-- name = "catppuccin",
|
||||
|
@ -68,37 +68,54 @@ return {
|
|||
-- end,
|
||||
-- },
|
||||
|
||||
-- dashboard
|
||||
-- include treesitter
|
||||
-- require("plugins.treesitter"),
|
||||
{
|
||||
"goolord/alpha-nvim",
|
||||
commit = "0bb6fc0646bcd1cdb4639737a1cee8d6e08bcc31",
|
||||
module = "alpha",
|
||||
event = "BufWinEnter",
|
||||
config = function()
|
||||
require("user.alpha")
|
||||
end,
|
||||
},
|
||||
-- line info bootom
|
||||
{
|
||||
"nvim-lualine/lualine.nvim",
|
||||
commit = "a52f078026b27694d2290e34efa61a6e4a690621",
|
||||
dependencies = { "kyazdani42/nvim-web-devicons", opt = true },
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
commit = "8e763332b7bf7b3a426fd8707b7f5aa85823a5ac",
|
||||
run = ":TSUpdate",
|
||||
event = "BufWinEnter",
|
||||
opts = function()
|
||||
local model = 2
|
||||
if model == 1 then
|
||||
require("user.lualine1")
|
||||
elseif model == 2 then
|
||||
require("user.lualine2")
|
||||
else
|
||||
require("user.lualine")
|
||||
end
|
||||
require("user.treesitter")
|
||||
end,
|
||||
},
|
||||
{ "rafamadriz/friendly-snippets", event = "VeryLazy" },
|
||||
-- snippets
|
||||
{
|
||||
"L3MON4D3/LuaSnip",
|
||||
dependencies = {
|
||||
"rafamadriz/friendly-snippets",
|
||||
config = function()
|
||||
require("luasnip.loaders.from_vscode").lazy_load()
|
||||
end,
|
||||
},
|
||||
opts = {
|
||||
history = true,
|
||||
delete_check_events = "TextChanged",
|
||||
},
|
||||
-- stylua: ignore
|
||||
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" },
|
||||
{ "<s-tab>", function() require("luasnip").jump(-1) end, mode = { "i", "s" } },
|
||||
},
|
||||
},
|
||||
|
||||
-- auto completion
|
||||
{
|
||||
"hrsh7th/nvim-cmp",
|
||||
dependencies = "rafamadriz/friendly-snippets",
|
||||
event = "InsertEnter",
|
||||
dependencies = {
|
||||
"hrsh7th/cmp-nvim-lsp",
|
||||
"hrsh7th/cmp-buffer",
|
||||
"hrsh7th/cmp-path",
|
||||
"saadparwaiz1/cmp_luasnip",
|
||||
},
|
||||
opts = function()
|
||||
require("user.cmp")
|
||||
end,
|
||||
|
@ -120,67 +137,6 @@ return {
|
|||
require("user.comment")
|
||||
end,
|
||||
},
|
||||
-- include treesitter
|
||||
-- require("plugins.treesitter"),
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
commit = "8e763332b7bf7b3a426fd8707b7f5aa85823a5ac",
|
||||
run = ":TSUpdate",
|
||||
event = "BufWinEnter",
|
||||
opts = function()
|
||||
require("user.treesitter")
|
||||
end,
|
||||
},
|
||||
-- for show icon
|
||||
{
|
||||
"kyazdani42/nvim-web-devicons",
|
||||
commit = "563f3635c2d8a7be7933b9e547f7c178ba0d4352",
|
||||
event = "VeryLazy",
|
||||
config = function()
|
||||
require("user.webdevicons")
|
||||
end,
|
||||
},
|
||||
-- for tree exploler
|
||||
{
|
||||
"kyazdani42/nvim-tree.lua",
|
||||
commit = "7282f7de8aedf861fe0162a559fc2b214383c51c",
|
||||
event = "BufWinEnter",
|
||||
cmd = "NvimTreeToggle",
|
||||
dependencies = "kyazdani42/nvim-web-devicons",
|
||||
init = function()
|
||||
require("user.nvim-tree")
|
||||
end,
|
||||
},
|
||||
-- for file tab
|
||||
{
|
||||
"akinsho/bufferline.nvim",
|
||||
commit = "83bf4dc7bff642e145c8b4547aa596803a8b4dc4",
|
||||
dependencies = { "kyazdani42/nvim-web-devicons", "famiu/bufdelete.nvim" },
|
||||
event = "VeryLazy",
|
||||
-- config = function()
|
||||
-- require("user.bufferline")
|
||||
-- end,
|
||||
},
|
||||
{ "moll/vim-bbye", commit = "25ef93ac5a87526111f43e5110675032dbcacf56", event = "VeryLazy" },
|
||||
-- for view terminal
|
||||
{
|
||||
"akinsho/toggleterm.nvim",
|
||||
commit = "2a787c426ef00cb3488c11b14f5dcf892bbd0bda",
|
||||
cmd = "Toggleterm",
|
||||
event = "BufWinEnter",
|
||||
init = function()
|
||||
require("user.toggleterm")
|
||||
end,
|
||||
},
|
||||
{ "ahmedkhalf/project.nvim", commit = "628de7e433dd503e782831fe150bb750e56e55d6", event = "VeryLazy" },
|
||||
{
|
||||
"lewis6991/impatient.nvim",
|
||||
commit = "b842e16ecc1a700f62adb9802f8355b99b52a5a6",
|
||||
event = "VeryLazy",
|
||||
init = function()
|
||||
require("user.impatient")
|
||||
end,
|
||||
},
|
||||
-- styleing indent
|
||||
{
|
||||
"lukas-reineke/indent-blankline.nvim",
|
||||
|
@ -190,15 +146,6 @@ return {
|
|||
require("user.indentline")
|
||||
end,
|
||||
},
|
||||
-- key mapping
|
||||
{
|
||||
"folke/which-key.nvim",
|
||||
event = "BufWinEnter",
|
||||
init = function()
|
||||
require("user.whichkey")
|
||||
end,
|
||||
},
|
||||
-- start programming
|
||||
{
|
||||
"hrsh7th/cmp-buffer",
|
||||
event = "VeryLazy",
|
||||
|
@ -252,8 +199,118 @@ return {
|
|||
require("user.mason-null-ls")
|
||||
end,
|
||||
},
|
||||
-- debuging
|
||||
{
|
||||
"mfussenegger/nvim-dap",
|
||||
event = "VeryLazy",
|
||||
enabled = vim.fn.has("win32") == 0,
|
||||
},
|
||||
{
|
||||
"rcarriga/nvim-dap-ui",
|
||||
dependencies = "mfussenegger/nvim-dap",
|
||||
enabled = vim.fn.has("win32") == 0,
|
||||
config = function()
|
||||
require("user.dapui")
|
||||
end,
|
||||
},
|
||||
{
|
||||
"jayp0521/mason-nvim-dap.nvim",
|
||||
event = "VeryLazy",
|
||||
dependencies = { "williamboman/mason.nvim", "mfussenegger/nvim-dap" },
|
||||
enabled = vim.fn.has("win32") == 0,
|
||||
init = function()
|
||||
require("user.mason_dap")
|
||||
end,
|
||||
},
|
||||
-- for install only java support windows
|
||||
{ "williamboman/nvim-lsp-installer", event = "VeryLazy" },
|
||||
-- dashboard
|
||||
{
|
||||
"goolord/alpha-nvim",
|
||||
commit = "0bb6fc0646bcd1cdb4639737a1cee8d6e08bcc31",
|
||||
module = "alpha",
|
||||
event = "BufWinEnter",
|
||||
config = function()
|
||||
require("user.alpha")
|
||||
end,
|
||||
},
|
||||
-- line info bootom
|
||||
{
|
||||
"nvim-lualine/lualine.nvim",
|
||||
commit = "a52f078026b27694d2290e34efa61a6e4a690621",
|
||||
dependencies = { "kyazdani42/nvim-web-devicons", opt = true },
|
||||
event = "BufWinEnter",
|
||||
opts = function()
|
||||
local model = 2
|
||||
if model == 1 then
|
||||
require("user.lualine1")
|
||||
elseif model == 2 then
|
||||
require("user.lualine2")
|
||||
else
|
||||
require("user.lualine")
|
||||
end
|
||||
end,
|
||||
},
|
||||
-- for show icon
|
||||
{
|
||||
"kyazdani42/nvim-web-devicons",
|
||||
commit = "563f3635c2d8a7be7933b9e547f7c178ba0d4352",
|
||||
event = "VeryLazy",
|
||||
config = function()
|
||||
require("user.webdevicons")
|
||||
end,
|
||||
},
|
||||
-- for tree exploler
|
||||
{
|
||||
"kyazdani42/nvim-tree.lua",
|
||||
commit = "7282f7de8aedf861fe0162a559fc2b214383c51c",
|
||||
event = "BufWinEnter",
|
||||
cmd = "NvimTreeToggle",
|
||||
dependencies = "kyazdani42/nvim-web-devicons",
|
||||
init = function()
|
||||
require("user.nvim-tree")
|
||||
end,
|
||||
},
|
||||
-- for file tab
|
||||
{
|
||||
"akinsho/bufferline.nvim",
|
||||
commit = "83bf4dc7bff642e145c8b4547aa596803a8b4dc4",
|
||||
dependencies = { "kyazdani42/nvim-web-devicons", "famiu/bufdelete.nvim" },
|
||||
event = "VeryLazy",
|
||||
-- config = function()
|
||||
-- require("user.bufferline")
|
||||
-- end,
|
||||
},
|
||||
{ "moll/vim-bbye", commit = "25ef93ac5a87526111f43e5110675032dbcacf56", event = "VeryLazy" },
|
||||
-- for view terminal
|
||||
{
|
||||
"akinsho/toggleterm.nvim",
|
||||
commit = "2a787c426ef00cb3488c11b14f5dcf892bbd0bda",
|
||||
cmd = "Toggleterm",
|
||||
event = "BufWinEnter",
|
||||
init = function()
|
||||
require("user.toggleterm")
|
||||
end,
|
||||
},
|
||||
-- { "ahmedkhalf/project.nvim", commit = "628de7e433dd503e782831fe150bb750e56e55d6", event = "VeryLazy" },
|
||||
{
|
||||
"lewis6991/impatient.nvim",
|
||||
commit = "b842e16ecc1a700f62adb9802f8355b99b52a5a6",
|
||||
event = "VeryLazy",
|
||||
init = function()
|
||||
require("user.impatient")
|
||||
end,
|
||||
},
|
||||
-- key mapping
|
||||
{
|
||||
"folke/which-key.nvim",
|
||||
event = "BufWinEnter",
|
||||
init = function()
|
||||
require("user.whichkey")
|
||||
end,
|
||||
},
|
||||
-- include for coding
|
||||
require("plugins.coding"),
|
||||
-- require("plugins.coding"),
|
||||
-- extra plugins
|
||||
-- for search
|
||||
{
|
||||
|
@ -304,8 +361,6 @@ return {
|
|||
require("user.colorizer")
|
||||
end,
|
||||
},
|
||||
-- for install only java support windows
|
||||
{ "williamboman/nvim-lsp-installer", event = "VeryLazy" },
|
||||
-- for winbar icon
|
||||
{
|
||||
"SmiteshP/nvim-navic",
|
||||
|
@ -488,29 +543,6 @@ return {
|
|||
ft = { "markdown" },
|
||||
cmd = { "MarkdownPreview", "MarkdownPreviewStop", "MarkdownPreviewToggle" },
|
||||
},
|
||||
-- debuging
|
||||
{
|
||||
"mfussenegger/nvim-dap",
|
||||
event = "VeryLazy",
|
||||
enabled = vim.fn.has("win32") == 0,
|
||||
},
|
||||
{
|
||||
"rcarriga/nvim-dap-ui",
|
||||
dependencies = "mfussenegger/nvim-dap",
|
||||
enabled = vim.fn.has("win32") == 0,
|
||||
config = function()
|
||||
require("user.dapui")
|
||||
end,
|
||||
},
|
||||
{
|
||||
"jayp0521/mason-nvim-dap.nvim",
|
||||
event = "VeryLazy",
|
||||
dependencies = { "williamboman/mason.nvim", "mfussenegger/nvim-dap" },
|
||||
enabled = vim.fn.has("win32") == 0,
|
||||
init = function()
|
||||
require("user.mason_dap")
|
||||
end,
|
||||
},
|
||||
-- for codeGPT
|
||||
{
|
||||
"jackMort/ChatGPT.nvim",
|
||||
|
|
|
@ -1,62 +0,0 @@
|
|||
return {
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
-- build = ":TSUpdate",
|
||||
-- event = "BufReadPost",
|
||||
---@type TSConfig
|
||||
opts = {
|
||||
sync_install = false,
|
||||
highlight = { enable = true },
|
||||
autopairs = {
|
||||
enable = true,
|
||||
},
|
||||
indent = { enable = true, disable = { "python", "css" } },
|
||||
autotag = { enable = true },
|
||||
incremental_selection = { enable = true },
|
||||
rainbow = {
|
||||
enable = true,
|
||||
disable = { "html" },
|
||||
extended_mode = false,
|
||||
max_file_lines = nil,
|
||||
},
|
||||
context_commentstring = {
|
||||
enable = true,
|
||||
enable_autocmd = false,
|
||||
config = {
|
||||
-- Languages that have a single comment style
|
||||
typescript = "// %s",
|
||||
css = "/* %s */",
|
||||
scss = "/* %s */",
|
||||
html = "<!-- %s -->",
|
||||
svelte = "<!-- %s -->",
|
||||
vue = "<!-- %s -->",
|
||||
json = "",
|
||||
},
|
||||
},
|
||||
ensure_installed = {
|
||||
"bash",
|
||||
"html",
|
||||
-- "c",
|
||||
-- "javascript",
|
||||
-- "json",
|
||||
-- "lua",
|
||||
-- "python",
|
||||
-- "typescript",
|
||||
-- "tsx",
|
||||
-- "css",
|
||||
-- "rust",
|
||||
-- "java",
|
||||
-- "yaml",
|
||||
-- "markdown",
|
||||
-- "markdown_inline",
|
||||
},
|
||||
},
|
||||
---@param opts TSConfig
|
||||
config = function(plugin, opts)
|
||||
if plugin.ensure_installed then
|
||||
require("lazyvim.util").deprecate("treesitter.ensure_installed", "treesitter.opts.ensure_installed")
|
||||
end
|
||||
require("nvim-treesitter.configs").setup(opts)
|
||||
end,
|
||||
},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue