update plugins

This commit is contained in:
asep komarudin 2023-02-05 10:07:34 +07:00
parent 76c86a6842
commit e6d210c6f7
4 changed files with 84 additions and 73 deletions

View file

@ -5,9 +5,11 @@
"bufdelete.nvim": { "branch": "master", "commit": "f79e9d186b42fba5f1b1362006e7c70240db97a4" }, "bufdelete.nvim": { "branch": "master", "commit": "f79e9d186b42fba5f1b1362006e7c70240db97a4" },
"bufferline.nvim": { "branch": "main", "commit": "028a87933d99f8bb88f2f70a4def3ff9574f3594" }, "bufferline.nvim": { "branch": "main", "commit": "028a87933d99f8bb88f2f70a4def3ff9574f3594" },
"cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" }, "cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
"cmp-cmdline": { "branch": "main", "commit": "23c51b2a3c00f6abc4e922dbd7c3b9aca6992063" },
"cmp-nvim-lsp": { "branch": "main", "commit": "59224771f91b86d1de12570b4070fe4ad7cd1eeb" }, "cmp-nvim-lsp": { "branch": "main", "commit": "59224771f91b86d1de12570b4070fe4ad7cd1eeb" },
"cmp-nvim-lua": { "branch": "main", "commit": "f3491638d123cfd2c8048aefaf66d246ff250ca6" }, "cmp-nvim-lua": { "branch": "main", "commit": "f3491638d123cfd2c8048aefaf66d246ff250ca6" },
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" }, "cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
"cmp-tabnine": { "branch": "main", "commit": "ee1341c53e7b82f55c6e83287828f652c2ac35e1" },
"cmp_luasnip": { "branch": "master", "commit": "18095520391186d634a0045dacaa346291096566" }, "cmp_luasnip": { "branch": "master", "commit": "18095520391186d634a0045dacaa346291096566" },
"code_runner.nvim": { "branch": "main", "commit": "a010649236fe245eaab2641a13228cd601499715" }, "code_runner.nvim": { "branch": "main", "commit": "a010649236fe245eaab2641a13228cd601499715" },
"dressing.nvim": { "branch": "master", "commit": "4436d6f41e2f6b8ada57588acd1a9f8b3d21453c" }, "dressing.nvim": { "branch": "master", "commit": "4436d6f41e2f6b8ada57588acd1a9f8b3d21453c" },
@ -52,6 +54,5 @@
"vim-startuptime": { "branch": "master", "commit": "5f52ed26e0296a3e1d1453935f417e5808eefab8" }, "vim-startuptime": { "branch": "master", "commit": "5f52ed26e0296a3e1d1453935f417e5808eefab8" },
"vim-visual-multi": { "branch": "master", "commit": "1c9207b28c8898ab01b54e6d6b61b0b820a814bc" }, "vim-visual-multi": { "branch": "master", "commit": "1c9207b28c8898ab01b54e6d6b61b0b820a814bc" },
"which-key.nvim": { "branch": "main", "commit": "16ed12a8493628c377606da2ebac50d80736ed37" }, "which-key.nvim": { "branch": "main", "commit": "16ed12a8493628c377606da2ebac50d80736ed37" },
"wilder.nvim": { "branch": "master", "commit": "679f348dc90d80ff9ba0e7c470c40a4d038dcecf" },
"yanky.nvim": { "branch": "main", "commit": "9fb1c211775b5a6c83b9fe806cfd99f68c65f8a0" } "yanky.nvim": { "branch": "main", "commit": "9fb1c211775b5a6c83b9fe806cfd99f68c65f8a0" }
} }

View file

@ -1,3 +1,7 @@
local build = "powershell ./install.ps1"
if vim.fn.has("win32") == 0 then
build = "./install.sh"
end
return { return {
-- plugin ini merupakan penyedia library neovim lua -- plugin ini merupakan penyedia library neovim lua
{ {
@ -140,22 +144,25 @@ return {
"hrsh7th/cmp-buffer", "hrsh7th/cmp-buffer",
"hrsh7th/cmp-path", "hrsh7th/cmp-path",
"saadparwaiz1/cmp_luasnip", "saadparwaiz1/cmp_luasnip",
"hrsh7th/cmp-nvim-lua",
{
"tzachar/cmp-tabnine",
build = build,
config = function()
require("user.tabnine")
end,
},
{
"hrsh7th/cmp-cmdline",
config = function()
require("user.cmdline")
end,
},
}, },
opts = function() opts = function()
require("user.cmp") require("user.cmp")
end, end,
}, },
-- start cmp & lsp
{
"hrsh7th/cmp-buffer",
event = "VeryLazy",
dependencies = "hrsh7th/nvim-cmp",
},
{
"hrsh7th/cmp-nvim-lua",
event = "VeryLazy",
dependencies = "hrsh7th/nvim-cmp",
},
{ {
"neovim/nvim-lspconfig", "neovim/nvim-lspconfig",
event = "BufWinEnter", event = "BufWinEnter",
@ -163,10 +170,6 @@ return {
require("user.lsp") require("user.lsp")
end, end,
}, },
{
"williamboman/mason-lspconfig.nvim",
lazy = true,
},
{ {
"williamboman/mason.nvim", "williamboman/mason.nvim",
event = "VeryLazy", event = "VeryLazy",
@ -185,7 +188,6 @@ return {
end, end,
}, },
-- for formater linter -- for formater linter
{ "jose-elias-alvarez/null-ls.nvim", event = "VeryLazy" },
{ "RRethy/vim-illuminate", event = "VeryLazy" }, { "RRethy/vim-illuminate", event = "VeryLazy" },
{ {
"jayp0521/mason-null-ls.nvim", "jayp0521/mason-null-ls.nvim",
@ -196,11 +198,6 @@ return {
end, end,
}, },
-- debuging -- debuging
{
"mfussenegger/nvim-dap",
event = "VeryLazy",
enabled = vim.fn.has("win32") == 0,
},
{ {
"rcarriga/nvim-dap-ui", "rcarriga/nvim-dap-ui",
dependencies = "mfussenegger/nvim-dap", dependencies = "mfussenegger/nvim-dap",
@ -435,57 +432,6 @@ return {
require("user.nvimscroll") require("user.nvimscroll")
end, end,
}, },
-- auto complite commond mode
{
"gelguy/wilder.nvim",
event = "BufWinEnter",
config = function()
local wilder = require("wilder")
wilder.setup({ modes = { ":", "/", "?" } })
-- *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
wilder.set_option(
"renderer",
wilder.popupmenu_renderer(wilder.popupmenu_border_theme({
highlights = {
border = "Normal", -- highlight to use for the border
},
-- 'single', 'double', 'rounded' or 'solid'
-- can also be a list of 8 characters, see :h wilder#popupmenu_border_theme() for more details
border = "rounded",
left = { " ", wilder.popupmenu_devicons() },
right = { " ", wilder.popupmenu_scrollbar() },
}))
)
-- *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,
-- }))
-- )
end,
},
-- for manage and coloring copy -- for manage and coloring copy
{ {
"gbprod/yanky.nvim", "gbprod/yanky.nvim",

37
lua/user/cmdline.lua Normal file
View file

@ -0,0 +1,37 @@
require("cmp").setup.cmdline({ "/", "?" }, {
mapping = require("cmp").mapping.preset.cmdline({
["<C-z>"] = {
c = function()
if require("cmp").visible() then
require("cmp").select_next_item()
else
require("cmp").complete()
end
end,
},
["<C-e>"] = { c = require("cmp").mapping.abort() },
["<C-y>"] = { c = require("cmp").mapping.confirm({ select = false }) },
}),
sources = require("cmp").config.sources({ { name = "buffer", keyword_length = 1 } }),
})
require("cmp").setup.cmdline(":", {
mapping = require("cmp").mapping.preset.cmdline({
["<C-z>"] = {
c = function()
if require("cmp").visible() then
require("cmp").select_next_item()
else
require("cmp").complete()
end
end,
},
["<C-e>"] = { c = require("cmp").mapping.abort() },
["<C-y>"] = { c = require("cmp").mapping.confirm({ select = false }) },
}),
sources = require("cmp").config.sources({
{ name = "path", keyword_length = 1 },
}, {
{ name = "cmdline", keyword_length = 1 },
}),
})

27
lua/user/tabnine.lua Normal file
View file

@ -0,0 +1,27 @@
vim.schedule(function()
require("cmp_tabnine.config").setup({
ignored_file_types = {
["aerial"] = true,
["checkhealth"] = true,
["dap-repl"] = true,
["dapui_breakpoints"] = true,
["dapui_console"] = true,
["dapui_hover"] = true,
["dapui_scopes"] = true,
["dapui_stacks"] = true,
["dapui_watches"] = true,
["DressingInput"] = true,
["DressingSelect"] = true,
["fern"] = true,
["lazy"] = true,
["lspinfo"] = true,
["mason"] = true,
["nerdterm"] = true,
["noice"] = true,
["notify"] = true,
["null-ls-info"] = true,
["qf"] = true,
["TelescopePrompt"] = true,
},
})
end)