mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-22 17:03:36 +02:00
add: update config
This commit is contained in:
parent
3100854e08
commit
76117ededa
20 changed files with 245 additions and 176 deletions
|
@ -21,22 +21,19 @@
|
||||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "2ba17cecfde8b8c7c7c287909a1e4de895223df6" },
|
"mason-lspconfig.nvim": { "branch": "main", "commit": "2ba17cecfde8b8c7c7c287909a1e4de895223df6" },
|
||||||
"mason-null-ls.nvim": { "branch": "main", "commit": "e270134d83ba59425edc53356c6fd337b61bb8dd" },
|
"mason-null-ls.nvim": { "branch": "main", "commit": "e270134d83ba59425edc53356c6fd337b61bb8dd" },
|
||||||
"mason.nvim": { "branch": "main", "commit": "c43eeb5614a09dc17c03a7fb49de2e05de203924" },
|
"mason.nvim": { "branch": "main", "commit": "c43eeb5614a09dc17c03a7fb49de2e05de203924" },
|
||||||
"mini.animate": { "branch": "main", "commit": "82519630b2760ffc516ebc387bef632f9c07b9f5" },
|
|
||||||
"mini.indentscope": { "branch": "main", "commit": "cf07f19e718ebb0bcc5b00999083ce11c37b8d40" },
|
|
||||||
"neoscroll.nvim": { "branch": "master", "commit": "21d52973bde32db998fc8b6590f87eb3c3c6d8e4" },
|
|
||||||
"noice.nvim": { "branch": "main", "commit": "0cbe3f88d038320bdbda3c4c5c95f43a13c3aa12" },
|
"noice.nvim": { "branch": "main", "commit": "0cbe3f88d038320bdbda3c4c5c95f43a13c3aa12" },
|
||||||
"none-ls-extras.nvim": { "branch": "main", "commit": "4d1b26b963edb82c45ed261d988f9e72253c3469" },
|
"none-ls-extras.nvim": { "branch": "main", "commit": "4d1b26b963edb82c45ed261d988f9e72253c3469" },
|
||||||
"none-ls.nvim": { "branch": "main", "commit": "18910d09d21d7df339805343bfe4a2b2e41c057b" },
|
"none-ls.nvim": { "branch": "main", "commit": "18910d09d21d7df339805343bfe4a2b2e41c057b" },
|
||||||
"nui.nvim": { "branch": "main", "commit": "a0fd35fcbb4cb479366f1dc5f20145fd718a3733" },
|
"nui.nvim": { "branch": "main", "commit": "a0fd35fcbb4cb479366f1dc5f20145fd718a3733" },
|
||||||
"nvim-autopairs": { "branch": "master", "commit": "dbfc1c34bed415906395db8303c71039b3a3ffb4" },
|
"nvim-autopairs": { "branch": "master", "commit": "dbfc1c34bed415906395db8303c71039b3a3ffb4" },
|
||||||
"nvim-cmp": { "branch": "main", "commit": "97dc716fc914c46577a4f254035ebef1aa72558a" },
|
"nvim-cmp": { "branch": "main", "commit": "7aa3f71932c419d716290e132cacbafbaf5bea1c" },
|
||||||
"nvim-colorizer.lua": { "branch": "master", "commit": "85855b38011114929f4058efc97af1059ab3e41d" },
|
"nvim-colorizer.lua": { "branch": "master", "commit": "85855b38011114929f4058efc97af1059ab3e41d" },
|
||||||
"nvim-lspconfig": { "branch": "master", "commit": "cf3dd4a290084a868fac0e2e876039321d57111c" },
|
"nvim-lspconfig": { "branch": "master", "commit": "cf3dd4a290084a868fac0e2e876039321d57111c" },
|
||||||
"nvim-material-icon": { "branch": "main", "commit": "602088c2682e61cbebd7191de7dc88bfa90c6890" },
|
"nvim-material-icon": { "branch": "main", "commit": "602088c2682e61cbebd7191de7dc88bfa90c6890" },
|
||||||
"nvim-navic": { "branch": "master", "commit": "8649f694d3e76ee10c19255dece6411c29206a54" },
|
"nvim-navic": { "branch": "master", "commit": "8649f694d3e76ee10c19255dece6411c29206a54" },
|
||||||
"nvim-notify": { "branch": "master", "commit": "5371f4bfc1f6d3adf4fe9d62cd3a9d44356bfd15" },
|
"nvim-notify": { "branch": "master", "commit": "5371f4bfc1f6d3adf4fe9d62cd3a9d44356bfd15" },
|
||||||
"nvim-scrollview": { "branch": "main", "commit": "c29c5f69d37040a1fac88cbea7f5e6f06f0aff4d" },
|
"nvim-scrollview": { "branch": "main", "commit": "c29c5f69d37040a1fac88cbea7f5e6f06f0aff4d" },
|
||||||
"nvim-tree.lua": { "branch": "master", "commit": "85c502e9076d9c82e2f04addabb3614846ae7558" },
|
"nvim-tree.lua": { "branch": "master", "commit": "ddd1d6eb21c45433bdc65cc8015f2457998f2bf2" },
|
||||||
"nvim-treesitter": { "branch": "master", "commit": "f197a15b0d1e8d555263af20add51450e5aaa1f0" },
|
"nvim-treesitter": { "branch": "master", "commit": "f197a15b0d1e8d555263af20add51450e5aaa1f0" },
|
||||||
"nvim-ts-autotag": { "branch": "main", "commit": "531f48334c422222aebc888fd36e7d109cb354cd" },
|
"nvim-ts-autotag": { "branch": "main", "commit": "531f48334c422222aebc888fd36e7d109cb354cd" },
|
||||||
"nvim-ts-context-commentstring": { "branch": "main", "commit": "734ebad31c81c6198dfe102aa23280937c937c42" },
|
"nvim-ts-context-commentstring": { "branch": "main", "commit": "734ebad31c81c6198dfe102aa23280937c937c42" },
|
||||||
|
@ -48,11 +45,10 @@
|
||||||
"promise-async": { "branch": "main", "commit": "38a4575da9497326badd3995e768b4ccf0bb153e" },
|
"promise-async": { "branch": "main", "commit": "38a4575da9497326badd3995e768b4ccf0bb153e" },
|
||||||
"smart-splits.nvim": { "branch": "master", "commit": "f6fcb79527872e9330c554915af2ca511c388390" },
|
"smart-splits.nvim": { "branch": "master", "commit": "f6fcb79527872e9330c554915af2ca511c388390" },
|
||||||
"statuscol.nvim": { "branch": "main", "commit": "d954893262a57a92e46edd87de67e2b3fe72305e" },
|
"statuscol.nvim": { "branch": "main", "commit": "d954893262a57a92e46edd87de67e2b3fe72305e" },
|
||||||
"telescope.nvim": { "branch": "master", "commit": "b22e6f6896cd64b109bd0807a24098d225d5fb49" },
|
"telescope.nvim": { "branch": "master", "commit": "1bb28df3cfc241b961331f00dcb8d5b45fe3e4f0" },
|
||||||
"toggleterm.nvim": { "branch": "main", "commit": "193786e0371e3286d3bc9aa0079da1cd41beaa62" },
|
"toggleterm.nvim": { "branch": "main", "commit": "193786e0371e3286d3bc9aa0079da1cd41beaa62" },
|
||||||
"vim-illuminate": { "branch": "master", "commit": "305bf07b919ac526deb5193280379e2f8b599926" },
|
"vim-illuminate": { "branch": "master", "commit": "305bf07b919ac526deb5193280379e2f8b599926" },
|
||||||
"vim-startuptime": { "branch": "master", "commit": "97a88e688482a09c3c4b777d07b509b328a5ec29" },
|
"vim-startuptime": { "branch": "master", "commit": "97a88e688482a09c3c4b777d07b509b328a5ec29" },
|
||||||
"vim-visual-multi": { "branch": "master", "commit": "1c9207b28c8898ab01b54e6d6b61b0b820a814bc" },
|
"vim-visual-multi": { "branch": "master", "commit": "1c9207b28c8898ab01b54e6d6b61b0b820a814bc" },
|
||||||
"which-key.nvim": { "branch": "main", "commit": "ce741eb559c924d72e3a67d2189ad3771a231414" },
|
"which-key.nvim": { "branch": "main", "commit": "ce741eb559c924d72e3a67d2189ad3771a231414" }
|
||||||
"yanky.nvim": { "branch": "main", "commit": "9268018e92d02650a94e39dd5f5903c542f7ea11" }
|
|
||||||
}
|
}
|
|
@ -16,3 +16,9 @@ local term_program = vim.fn.getenv("TERM_PROGRAM")
|
||||||
if term_program == "WezTerm" then
|
if term_program == "WezTerm" then
|
||||||
vim.cmd('silent !wezterm cli set-tab-title "' .. _get_folder_name() .. '"')
|
vim.cmd('silent !wezterm cli set-tab-title "' .. _get_folder_name() .. '"')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
vim.api.nvim_create_autocmd("ExitPre", {
|
||||||
|
group = vim.api.nvim_create_augroup("Exit", { clear = true }),
|
||||||
|
command = "set guicursor=n-v-c:block,i-ci-ve:ver25,r-cr:hor20,o:hor50,a:blinkwait700-blinkoff400-blinkon250-Cursor/lCursor,sm:block-blinkwait175-blinkoff150-blinkon175,a:ver90",
|
||||||
|
desc = "Set cursor back to beam when leaving Neovim.",
|
||||||
|
})
|
||||||
|
|
|
@ -30,7 +30,7 @@ vim.g.pcode_header1 = {
|
||||||
-- " █▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█ █▄█▄▄▄█ ",
|
-- " █▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█ █▄█▄▄▄█ ",
|
||||||
-- }
|
-- }
|
||||||
|
|
||||||
-- vim.g.pcode_footer = "PCode"
|
vim.g.pcode_footer = "PCode"
|
||||||
|
|
||||||
-- 1 startify model
|
-- 1 startify model
|
||||||
-- 2 dashboard model
|
-- 2 dashboard model
|
||||||
|
|
|
@ -15,7 +15,7 @@ return {
|
||||||
dependencies = {
|
dependencies = {
|
||||||
{ "MunifTanjim/nui.nvim", enabled = use_noice },
|
{ "MunifTanjim/nui.nvim", enabled = use_noice },
|
||||||
},
|
},
|
||||||
event = "BufWinEnter",
|
-- event = "BufWinEnter",
|
||||||
opts = {
|
opts = {
|
||||||
messages = {
|
messages = {
|
||||||
enabled = false,
|
enabled = false,
|
||||||
|
@ -35,6 +35,9 @@ return {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
init = function()
|
||||||
|
require("lazy").load({ plugins = { "noice.nvim" } })
|
||||||
|
end,
|
||||||
keys = {
|
keys = {
|
||||||
{
|
{
|
||||||
"<S-Enter>",
|
"<S-Enter>",
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
local icons = require("user.icons")
|
||||||
return {
|
return {
|
||||||
--- masukan plugin tambahan disini
|
--- masukan plugin tambahan disini
|
||||||
-- {
|
-- {
|
||||||
|
@ -18,36 +19,37 @@ return {
|
||||||
-- },
|
-- },
|
||||||
-- },
|
-- },
|
||||||
-- },
|
-- },
|
||||||
{
|
-- {
|
||||||
"echasnovski/mini.indentscope",
|
-- "echasnovski/mini.indentscope",
|
||||||
version = false, -- wait till new 0.7.0 release to put it back on semver
|
-- version = false, -- wait till new 0.7.0 release to put it back on semver
|
||||||
event = "BufReadPre",
|
-- event = "BufReadPre",
|
||||||
opts = {
|
-- opts = {
|
||||||
-- symbol = "▏",
|
-- -- symbol = "▏",
|
||||||
symbol = "│",
|
-- -- symbol = "│",
|
||||||
options = { try_as_border = true },
|
-- symbol = icons.ui.LineMiddle,
|
||||||
},
|
-- options = { try_as_border = true },
|
||||||
config = function(_, opts)
|
-- },
|
||||||
vim.api.nvim_create_autocmd("FileType", {
|
-- config = function(_, opts)
|
||||||
pattern = { "help", "alpha", "dashboard", "NvimTree", "Trouble", "lazy", "mason" },
|
-- vim.api.nvim_create_autocmd("FileType", {
|
||||||
callback = function()
|
-- pattern = { "help", "alpha", "dashboard", "NvimTree", "Trouble", "lazy", "mason" },
|
||||||
vim.b.miniindentscope_disable = true
|
-- callback = function()
|
||||||
end,
|
-- vim.b.miniindentscope_disable = true
|
||||||
})
|
-- end,
|
||||||
require("mini.indentscope").setup(opts)
|
-- })
|
||||||
end,
|
-- require("mini.indentscope").setup(opts)
|
||||||
},
|
-- end,
|
||||||
|
-- },
|
||||||
{
|
{
|
||||||
"hrsh7th/cmp-nvim-lua",
|
"hrsh7th/cmp-nvim-lua",
|
||||||
enabled = false,
|
enabled = false,
|
||||||
},
|
},
|
||||||
{
|
-- {
|
||||||
"gbprod/yanky.nvim",
|
-- "gbprod/yanky.nvim",
|
||||||
event = "BufReadPre",
|
-- event = "BufReadPre",
|
||||||
config = function()
|
-- config = function()
|
||||||
require("user.yanky")
|
-- require("user.yanky")
|
||||||
end,
|
-- end,
|
||||||
},
|
-- },
|
||||||
-- {
|
-- {
|
||||||
-- "is0n/jaq-nvim",
|
-- "is0n/jaq-nvim",
|
||||||
-- event = "BufRead",
|
-- event = "BufRead",
|
||||||
|
|
|
@ -121,7 +121,7 @@ return {
|
||||||
separator = { left = " " },
|
separator = { left = " " },
|
||||||
-- right_padding = 3,
|
-- right_padding = 3,
|
||||||
fmt = function(str)
|
fmt = function(str)
|
||||||
return " " .. str
|
return icons.ui.Neovim .. " " .. str
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
local branch = {
|
local branch = {
|
||||||
|
|
|
@ -1,40 +1,40 @@
|
||||||
return {
|
return {
|
||||||
-- animations
|
-- animations
|
||||||
{
|
-- {
|
||||||
"echasnovski/mini.animate",
|
-- "echasnovski/mini.animate",
|
||||||
event = "InsertEnter",
|
-- event = "InsertEnter",
|
||||||
opts = function()
|
-- opts = function()
|
||||||
-- don't use animate when scrolling with the mouse
|
-- -- don't use animate when scrolling with the mouse
|
||||||
local mouse_scrolled = false
|
-- local mouse_scrolled = false
|
||||||
for _, scroll in ipairs({ "Up", "Down" }) do
|
-- for _, scroll in ipairs({ "Up", "Down" }) do
|
||||||
local key = "<ScrollWheel" .. scroll .. ">"
|
-- local key = "<ScrollWheel" .. scroll .. ">"
|
||||||
vim.keymap.set({ "", "i" }, key, function()
|
-- vim.keymap.set({ "", "i" }, key, function()
|
||||||
mouse_scrolled = true
|
-- mouse_scrolled = true
|
||||||
return key
|
-- return key
|
||||||
end, { expr = true })
|
-- end, { expr = true })
|
||||||
end
|
-- end
|
||||||
|
--
|
||||||
local animate = require("mini.animate")
|
-- local animate = require("mini.animate")
|
||||||
return {
|
-- return {
|
||||||
resize = {
|
-- resize = {
|
||||||
timing = animate.gen_timing.linear({ duration = 100, unit = "total" }),
|
-- timing = animate.gen_timing.linear({ duration = 100, unit = "total" }),
|
||||||
},
|
-- },
|
||||||
scroll = {
|
-- scroll = {
|
||||||
timing = animate.gen_timing.linear({ duration = 150, unit = "total" }),
|
-- timing = animate.gen_timing.linear({ duration = 150, unit = "total" }),
|
||||||
subscroll = animate.gen_subscroll.equal({
|
-- subscroll = animate.gen_subscroll.equal({
|
||||||
predicate = function(total_scroll)
|
-- predicate = function(total_scroll)
|
||||||
if mouse_scrolled then
|
-- if mouse_scrolled then
|
||||||
mouse_scrolled = false
|
-- mouse_scrolled = false
|
||||||
return false
|
-- return false
|
||||||
end
|
-- end
|
||||||
return total_scroll > 1
|
-- return total_scroll > 1
|
||||||
end,
|
-- end,
|
||||||
}),
|
-- }),
|
||||||
},
|
-- },
|
||||||
}
|
-- }
|
||||||
end,
|
-- end,
|
||||||
config = function(_, opts)
|
-- config = function(_, opts)
|
||||||
require("mini.animate").setup(opts)
|
-- require("mini.animate").setup(opts)
|
||||||
end,
|
-- end,
|
||||||
},
|
-- },
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,7 +29,8 @@ return {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
lazy = true,
|
lazy = true,
|
||||||
event = "BufReadPost",
|
-- event = "BufReadPost",
|
||||||
|
event = "BufWinEnter",
|
||||||
config = function()
|
config = function()
|
||||||
vim.o.foldcolumn = "1" -- '0' is not bad
|
vim.o.foldcolumn = "1" -- '0' is not bad
|
||||||
vim.o.foldlevel = 99 -- Using ufo provider need a large value, feel free to decrease the value
|
vim.o.foldlevel = 99 -- Using ufo provider need a large value, feel free to decrease the value
|
||||||
|
|
|
@ -21,4 +21,6 @@ return {
|
||||||
-- { "cpea2506/one_monokai.nvim" },
|
-- { "cpea2506/one_monokai.nvim" },
|
||||||
-- { "luisiacc/gruvbox-baby", lazy = true, enabled = false },
|
-- { "luisiacc/gruvbox-baby", lazy = true, enabled = false },
|
||||||
-- { "projekt0n/github-nvim-theme", version = "v0.0.7" },
|
-- { "projekt0n/github-nvim-theme", version = "v0.0.7" },
|
||||||
|
-- { "stevearc/dressing.nvim", enabled = false },
|
||||||
|
{ "karb94/neoscroll.nvim", enabled = false },
|
||||||
}
|
}
|
||||||
|
|
|
@ -378,6 +378,7 @@ return {
|
||||||
variables = "none",
|
variables = "none",
|
||||||
},
|
},
|
||||||
highlights = {
|
highlights = {
|
||||||
|
NoiceCursor = { fg = "$bg0", bg = "$fg" },
|
||||||
Search = { fg = "$bg0", bg = "$bg_yellow" },
|
Search = { fg = "$bg0", bg = "$bg_yellow" },
|
||||||
-- BorderBG = { fg = "#333842" }, -- untuk custom brder color cmp
|
-- BorderBG = { fg = "#333842" }, -- untuk custom brder color cmp
|
||||||
-- overide indent line fill color
|
-- overide indent line fill color
|
||||||
|
|
|
@ -54,7 +54,7 @@ return {
|
||||||
{
|
{
|
||||||
"L3MON4D3/LuaSnip",
|
"L3MON4D3/LuaSnip",
|
||||||
lazy = true,
|
lazy = true,
|
||||||
event = "InsertEnter",
|
-- event = "InsertEnter",
|
||||||
-- dependencies = {
|
-- dependencies = {
|
||||||
-- "rafamadriz/friendly-snippets",
|
-- "rafamadriz/friendly-snippets",
|
||||||
-- event = "BufRead",
|
-- event = "BufRead",
|
||||||
|
@ -111,7 +111,7 @@ return {
|
||||||
{
|
{
|
||||||
"williamboman/mason.nvim",
|
"williamboman/mason.nvim",
|
||||||
lazy = true,
|
lazy = true,
|
||||||
event = "InsertEnter",
|
-- event = "InsertEnter",
|
||||||
dependencies = { "williamboman/mason-lspconfig.nvim" },
|
dependencies = { "williamboman/mason-lspconfig.nvim" },
|
||||||
cmd = {
|
cmd = {
|
||||||
"Mason",
|
"Mason",
|
||||||
|
@ -241,7 +241,7 @@ return {
|
||||||
"JoosepAlviste/nvim-ts-context-commentstring",
|
"JoosepAlviste/nvim-ts-context-commentstring",
|
||||||
lazy = true,
|
lazy = true,
|
||||||
-- event = "BufWinEnter",
|
-- event = "BufWinEnter",
|
||||||
event = "InsertEnter",
|
-- 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({
|
||||||
|
@ -252,7 +252,7 @@ return {
|
||||||
{
|
{
|
||||||
"numToStr/Comment.nvim",
|
"numToStr/Comment.nvim",
|
||||||
-- event = "BufWinEnter",
|
-- event = "BufWinEnter",
|
||||||
event = "InsertEnter",
|
-- event = "InsertEnter",
|
||||||
lazy = true,
|
lazy = true,
|
||||||
config = function()
|
config = function()
|
||||||
require("user.comment")
|
require("user.comment")
|
||||||
|
@ -327,7 +327,7 @@ return {
|
||||||
{
|
{
|
||||||
"CRAG666/code_runner.nvim",
|
"CRAG666/code_runner.nvim",
|
||||||
lazy = true,
|
lazy = true,
|
||||||
event = "InsertEnter",
|
-- event = "InsertEnter",
|
||||||
-- dependencies = "nvim-lua/plenary.nvim",
|
-- dependencies = "nvim-lua/plenary.nvim",
|
||||||
cmd = { "RunCode", "RunFile", "RunProject", "RunClose" },
|
cmd = { "RunCode", "RunFile", "RunProject", "RunClose" },
|
||||||
config = function()
|
config = function()
|
||||||
|
@ -338,7 +338,7 @@ return {
|
||||||
{
|
{
|
||||||
"NvChad/nvim-colorizer.lua",
|
"NvChad/nvim-colorizer.lua",
|
||||||
lazy = true,
|
lazy = true,
|
||||||
event = "BufRead",
|
event = "BufWinEnter",
|
||||||
opts = function()
|
opts = function()
|
||||||
require("user.colorizer")
|
require("user.colorizer")
|
||||||
end,
|
end,
|
||||||
|
@ -390,7 +390,7 @@ return {
|
||||||
{
|
{
|
||||||
"mrjones2014/smart-splits.nvim",
|
"mrjones2014/smart-splits.nvim",
|
||||||
lazy = true,
|
lazy = true,
|
||||||
event = "BufRead",
|
-- event = "BufRead",
|
||||||
config = function()
|
config = function()
|
||||||
require("user.smartspit")
|
require("user.smartspit")
|
||||||
end,
|
end,
|
||||||
|
@ -411,17 +411,20 @@ return {
|
||||||
return vim.ui.input(...)
|
return vim.ui.input(...)
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
config = function()
|
||||||
|
require("user.dressing")
|
||||||
|
end,
|
||||||
}, -- mini scrollview
|
}, -- mini scrollview
|
||||||
{
|
{
|
||||||
"dstein64/nvim-scrollview",
|
"dstein64/nvim-scrollview",
|
||||||
lazy = true,
|
lazy = true,
|
||||||
event = "BufRead",
|
event = "BufWinEnter",
|
||||||
config = function()
|
config = function()
|
||||||
require("user.nvimscroll")
|
require("user.nvimscroll")
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
-- for check startuptime
|
-- for check startuptime
|
||||||
{ "dstein64/vim-startuptime", lazy = true, cmd = "StartupTime", event = "InsertEnter" },
|
{ "dstein64/vim-startuptime", lazy = true, cmd = "StartupTime" },
|
||||||
-- for coloring pairs
|
-- for coloring pairs
|
||||||
-- remark 20231101 - menyebabkan error treesitter
|
-- remark 20231101 - menyebabkan error treesitter
|
||||||
-- {
|
-- {
|
||||||
|
@ -441,7 +444,7 @@ return {
|
||||||
lazy = true,
|
lazy = true,
|
||||||
enabled = vim.fn.executable("git") == 1,
|
enabled = vim.fn.executable("git") == 1,
|
||||||
ft = "gitcommit",
|
ft = "gitcommit",
|
||||||
event = "BufRead",
|
event = "BufWinEnter",
|
||||||
config = function()
|
config = function()
|
||||||
require("user.gitsigns")
|
require("user.gitsigns")
|
||||||
end,
|
end,
|
||||||
|
|
|
@ -24,7 +24,7 @@ return {
|
||||||
"kyazdani42/nvim-web-devicons",
|
"kyazdani42/nvim-web-devicons",
|
||||||
lazy = true,
|
lazy = true,
|
||||||
dependencies = { "DaikyXendo/nvim-material-icon" },
|
dependencies = { "DaikyXendo/nvim-material-icon" },
|
||||||
event = "BufRead",
|
-- event = "BufRead",
|
||||||
config = function()
|
config = function()
|
||||||
require("user.webdevicons")
|
require("user.webdevicons")
|
||||||
end,
|
end,
|
||||||
|
@ -33,7 +33,7 @@ return {
|
||||||
{
|
{
|
||||||
"kyazdani42/nvim-tree.lua",
|
"kyazdani42/nvim-tree.lua",
|
||||||
lazy = true,
|
lazy = true,
|
||||||
event = "BufRead",
|
-- event = "BufRead",
|
||||||
cmd = { "NvimTree", "NvimTreeToggle", "NvimTreeFocus", "NvimTreeClose" },
|
cmd = { "NvimTree", "NvimTreeToggle", "NvimTreeFocus", "NvimTreeClose" },
|
||||||
-- dependencies = "kyazdani42/nvim-web-devicons",
|
-- dependencies = "kyazdani42/nvim-web-devicons",
|
||||||
config = function()
|
config = function()
|
||||||
|
@ -49,7 +49,7 @@ return {
|
||||||
{
|
{
|
||||||
"famiu/bufdelete.nvim",
|
"famiu/bufdelete.nvim",
|
||||||
lazy = true,
|
lazy = true,
|
||||||
event = "InsertEnter",
|
-- event = "InsertEnter",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"akinsho/bufferline.nvim",
|
"akinsho/bufferline.nvim",
|
||||||
|
@ -66,7 +66,7 @@ return {
|
||||||
"akinsho/toggleterm.nvim",
|
"akinsho/toggleterm.nvim",
|
||||||
lazy = true,
|
lazy = true,
|
||||||
cmd = { "ToggleTerm" },
|
cmd = { "ToggleTerm" },
|
||||||
event = "InsertEnter",
|
-- event = "InsertEnter",
|
||||||
config = function()
|
config = function()
|
||||||
require("user.toggleterm")
|
require("user.toggleterm")
|
||||||
end,
|
end,
|
||||||
|
@ -96,7 +96,7 @@ return {
|
||||||
{
|
{
|
||||||
"karb94/neoscroll.nvim",
|
"karb94/neoscroll.nvim",
|
||||||
lazy = true,
|
lazy = true,
|
||||||
event = "InsertEnter",
|
-- event = "InsertEnter",
|
||||||
config = function()
|
config = function()
|
||||||
require("user.neoscroll")
|
require("user.neoscroll")
|
||||||
end,
|
end,
|
||||||
|
|
|
@ -35,20 +35,6 @@ dashboard.section.buttons.val = {
|
||||||
dashboard.button("q", " Quit Neovim", ":qa<CR>"),
|
dashboard.button("q", " Quit Neovim", ":qa<CR>"),
|
||||||
}
|
}
|
||||||
|
|
||||||
local function footer()
|
|
||||||
local footer_text = "Pojok Code"
|
|
||||||
if data_exists then
|
|
||||||
local data_txt = custom_dasboard.footer
|
|
||||||
if data_txt ~= nil then
|
|
||||||
footer_text = data_txt
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
return footer_text
|
|
||||||
end
|
|
||||||
|
|
||||||
dashboard.section.footer.val = footer()
|
|
||||||
|
|
||||||
dashboard.section.footer.opts.hl = "Type"
|
dashboard.section.footer.opts.hl = "Type"
|
||||||
dashboard.section.header.opts.hl = "Include"
|
dashboard.section.header.opts.hl = "Include"
|
||||||
dashboard.section.buttons.opts.hl = "Keyword"
|
dashboard.section.buttons.opts.hl = "Keyword"
|
||||||
|
@ -56,3 +42,24 @@ dashboard.section.buttons.opts.hl = "Keyword"
|
||||||
dashboard.opts.opts.noautocmd = true
|
dashboard.opts.opts.noautocmd = true
|
||||||
-- vim.cmd([[autocmd User AlphaReady echo 'ready']])
|
-- vim.cmd([[autocmd User AlphaReady echo 'ready']])
|
||||||
alpha.setup(dashboard.opts)
|
alpha.setup(dashboard.opts)
|
||||||
|
|
||||||
|
local footer_text = "Pojok Code"
|
||||||
|
if data_exists then
|
||||||
|
local data_txt = custom_dasboard.footer
|
||||||
|
if data_txt ~= nil then
|
||||||
|
footer_text = data_txt
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
vim.api.nvim_create_autocmd("User", {
|
||||||
|
pattern = "LazyVimStarted",
|
||||||
|
desc = "Add Alpha dashboard footer",
|
||||||
|
once = true,
|
||||||
|
callback = function()
|
||||||
|
local stats = require("lazy").stats()
|
||||||
|
local ms = math.floor(stats.startuptime * 100 + 0.5) / 100
|
||||||
|
dashboard.section.footer.val =
|
||||||
|
{ footer_text .. " " .. stats.loaded .. "/" .. stats.count .. " plugins in " .. ms .. "ms" }
|
||||||
|
pcall(vim.cmd.AlphaRedraw)
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
|
@ -5,11 +5,13 @@ end
|
||||||
|
|
||||||
dressing.setup({
|
dressing.setup({
|
||||||
input = {
|
input = {
|
||||||
|
title_pos = "center",
|
||||||
|
relative = "editor",
|
||||||
default_prompt = "➤ ",
|
default_prompt = "➤ ",
|
||||||
win_options = { winhighlight = "Normal:Normal,NormalNC:Normal" },
|
win_options = { winhighlight = "Normal:Normal,NormalNC:Normal" },
|
||||||
prefer_width = 30,
|
prefer_width = 30,
|
||||||
max_width = { 140, 0.9 },
|
max_width = { 140, 0.9 },
|
||||||
min_width = { 30, 0.2 },
|
min_width = { 50, 0.2 },
|
||||||
},
|
},
|
||||||
select = {
|
select = {
|
||||||
backend = { "telescope", "builtin" },
|
backend = { "telescope", "builtin" },
|
||||||
|
|
|
@ -131,6 +131,7 @@ return {
|
||||||
TriangleShortArrowLeft = "",
|
TriangleShortArrowLeft = "",
|
||||||
TriangleShortArrowRight = "",
|
TriangleShortArrowRight = "",
|
||||||
TriangleShortArrowUp = "",
|
TriangleShortArrowUp = "",
|
||||||
|
Neovim = "",
|
||||||
},
|
},
|
||||||
diagnostics = {
|
diagnostics = {
|
||||||
BoldError = "",
|
BoldError = "",
|
||||||
|
|
|
@ -2,69 +2,24 @@ local status_ok, indent_blankline = pcall(require, "ibl")
|
||||||
if not status_ok then
|
if not status_ok then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
local icons = require("user.icons")
|
||||||
vim.g.indent_blankline_buftype_exclude = { "terminal", "nofile" }
|
indent_blankline.setup({
|
||||||
vim.g.indent_blankline_filetype_exclude = {
|
enabled = true,
|
||||||
|
buftype_exclude = { "terminal", "nofile" },
|
||||||
|
filetype_exclude = {
|
||||||
"help",
|
"help",
|
||||||
"startify",
|
"startify",
|
||||||
"dashboard",
|
"dashboard",
|
||||||
"packer",
|
"lazy",
|
||||||
"neogitstatus",
|
"neogitstatus",
|
||||||
"NvimTree",
|
"NvimTree",
|
||||||
"Trouble",
|
"Trouble",
|
||||||
}
|
"text",
|
||||||
vim.g.indentLine_enabled = 1
|
},
|
||||||
-- vim.g.indent_blankline_char = "│"
|
char = icons.ui.LineLeft,
|
||||||
vim.g.indent_blankline_char = "▏"
|
context_char = icons.ui.LineLeft,
|
||||||
-- vim.g.indent_blankline_char = "▎"
|
show_trailing_blankline_indent = false,
|
||||||
vim.g.indent_blankline_show_trailing_blankline_indent = false
|
show_first_indent_level = true,
|
||||||
vim.g.indent_blankline_show_first_indent_level = true
|
use_treesitter = true,
|
||||||
vim.g.indent_blankline_use_treesitter = true
|
show_current_context = true,
|
||||||
vim.g.indent_blankline_show_current_context = true
|
|
||||||
vim.g.indent_blankline_context_patterns = {
|
|
||||||
"class",
|
|
||||||
"return",
|
|
||||||
"function",
|
|
||||||
"method",
|
|
||||||
"^if",
|
|
||||||
"^while",
|
|
||||||
"jsx_element",
|
|
||||||
"^for",
|
|
||||||
"^object",
|
|
||||||
"^table",
|
|
||||||
"block",
|
|
||||||
"arguments",
|
|
||||||
"if_statement",
|
|
||||||
"else_clause",
|
|
||||||
"jsx_element",
|
|
||||||
"jsx_self_closing_element",
|
|
||||||
"try_statement",
|
|
||||||
"catch_clause",
|
|
||||||
"import_statement",
|
|
||||||
"operation_type",
|
|
||||||
}
|
|
||||||
-- HACK: work-around for https://github.com/lukas-reineke/indent-blankline.nvim/issues/59
|
|
||||||
vim.wo.colorcolumn = "99999"
|
|
||||||
|
|
||||||
-- vim.cmd [[highlight IndentBlanklineIndent1 guifg=#E06C75 gui=nocombine]]
|
|
||||||
-- vim.cmd [[highlight IndentBlanklineIndent2 guifg=#E5C07B gui=nocombine]]
|
|
||||||
-- vim.cmd [[highlight IndentBlanklineIndent3 guifg=#98C379 gui=nocombine]]
|
|
||||||
-- vim.cmd [[highlight IndentBlanklineIndent4 guifg=#56B6C2 gui=nocombine]]
|
|
||||||
-- vim.cmd [[highlight IndentBlanklineIndent5 guifg=#61AFEF gui=nocombine]]
|
|
||||||
-- vim.cmd [[highlight IndentBlanklineIndent6 guifg=#C678DD gui=nocombine]]
|
|
||||||
-- vim.opt.list = true
|
|
||||||
-- vim.opt.listchars:append "space:⋅"
|
|
||||||
-- vim.opt.listchars:append "space:"
|
|
||||||
-- vim.opt.listchars:append "eol:↴"
|
|
||||||
|
|
||||||
indent_blankline.setup({
|
|
||||||
-- show_end_of_line = true,
|
|
||||||
-- space_char_blankline = " ",
|
|
||||||
-- show_current_context = true,
|
|
||||||
-- show_current_context_start = true,
|
|
||||||
-- char_highlight_list = {
|
|
||||||
-- "IndentBlanklineIndent1",
|
|
||||||
-- "IndentBlanklineIndent2",
|
|
||||||
-- "IndentBlanklineIndent3",
|
|
||||||
-- },
|
|
||||||
})
|
})
|
||||||
|
|
71
lua/user/indentline_backup.lua
Normal file
71
lua/user/indentline_backup.lua
Normal file
|
@ -0,0 +1,71 @@
|
||||||
|
local status_ok, indent_blankline = pcall(require, "ibl")
|
||||||
|
if not status_ok then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
vim.g.indent_blankline_buftype_exclude = { "terminal", "nofile" }
|
||||||
|
vim.g.indent_blankline_filetype_exclude = {
|
||||||
|
"help",
|
||||||
|
"startify",
|
||||||
|
"dashboard",
|
||||||
|
"packer",
|
||||||
|
"neogitstatus",
|
||||||
|
"NvimTree",
|
||||||
|
"Trouble",
|
||||||
|
}
|
||||||
|
vim.g.indentLine_enabled = 1
|
||||||
|
-- vim.g.indent_blankline_char = "│"
|
||||||
|
-- vim.g.indent_blankline_char = "▏"
|
||||||
|
vim.g.indent_blankline_char = " "
|
||||||
|
-- vim.g.indent_blankline_char = "▎"
|
||||||
|
vim.g.indent_blankline_show_trailing_blankline_indent = false
|
||||||
|
vim.g.indent_blankline_show_first_indent_level = true
|
||||||
|
vim.g.indent_blankline_use_treesitter = true
|
||||||
|
vim.g.indent_blankline_show_current_context = true
|
||||||
|
vim.g.indent_blankline_context_patterns = {
|
||||||
|
"class",
|
||||||
|
"return",
|
||||||
|
"function",
|
||||||
|
"method",
|
||||||
|
"^if",
|
||||||
|
"^while",
|
||||||
|
"jsx_element",
|
||||||
|
"^for",
|
||||||
|
"^object",
|
||||||
|
"^table",
|
||||||
|
"block",
|
||||||
|
"arguments",
|
||||||
|
"if_statement",
|
||||||
|
"else_clause",
|
||||||
|
"jsx_element",
|
||||||
|
"jsx_self_closing_element",
|
||||||
|
"try_statement",
|
||||||
|
"catch_clause",
|
||||||
|
"import_statement",
|
||||||
|
"operation_type",
|
||||||
|
}
|
||||||
|
-- HACK: work-around for https://github.com/lukas-reineke/indent-blankline.nvim/issues/59
|
||||||
|
vim.wo.colorcolumn = "99999"
|
||||||
|
|
||||||
|
-- vim.cmd [[highlight IndentBlanklineIndent1 guifg=#E06C75 gui=nocombine]]
|
||||||
|
-- vim.cmd [[highlight IndentBlanklineIndent2 guifg=#E5C07B gui=nocombine]]
|
||||||
|
-- vim.cmd [[highlight IndentBlanklineIndent3 guifg=#98C379 gui=nocombine]]
|
||||||
|
-- vim.cmd [[highlight IndentBlanklineIndent4 guifg=#56B6C2 gui=nocombine]]
|
||||||
|
-- vim.cmd [[highlight IndentBlanklineIndent5 guifg=#61AFEF gui=nocombine]]
|
||||||
|
-- vim.cmd [[highlight IndentBlanklineIndent6 guifg=#C678DD gui=nocombine]]
|
||||||
|
-- vim.opt.list = true
|
||||||
|
-- vim.opt.listchars:append "space:⋅"
|
||||||
|
-- vim.opt.listchars:append "space:"
|
||||||
|
-- vim.opt.listchars:append "eol:↴"
|
||||||
|
|
||||||
|
indent_blankline.setup({
|
||||||
|
-- show_end_of_line = true,
|
||||||
|
-- space_char_blankline = " ",
|
||||||
|
-- show_current_context = true,
|
||||||
|
-- show_current_context_start = true,
|
||||||
|
-- char_highlight_list = {
|
||||||
|
-- "IndentBlanklineIndent1",
|
||||||
|
-- "IndentBlanklineIndent2",
|
||||||
|
-- "IndentBlanklineIndent3",
|
||||||
|
-- },
|
||||||
|
})
|
|
@ -192,3 +192,8 @@ end
|
||||||
-- keymap("t", "<C-j>", "<C-\\><C-N><C-w>j", term_opts)
|
-- keymap("t", "<C-j>", "<C-\\><C-N><C-w>j", term_opts)
|
||||||
-- keymap("t", "<C-k>", "<C-\\><C-N><C-w>k", term_opts)
|
-- keymap("t", "<C-k>", "<C-\\><C-N><C-w>k", term_opts)
|
||||||
-- keymap("t", "<C-l>", "<C-\\><C-N><C-w>l", term_opts)
|
-- keymap("t", "<C-l>", "<C-\\><C-N><C-w>l", term_opts)
|
||||||
|
|
||||||
|
vim.keymap.set("n", "<C-Left>", require("smart-splits").resize_left)
|
||||||
|
vim.keymap.set("n", "<C-Down>", require("smart-splits").resize_down)
|
||||||
|
vim.keymap.set("n", "<C-Up", require("smart-splits").resize_up)
|
||||||
|
vim.keymap.set("n", "<C-Right>", require("smart-splits").resize_right)
|
||||||
|
|
|
@ -12,7 +12,7 @@ smart_splits.setup({
|
||||||
ignored_buftypes = { "nofile" },
|
ignored_buftypes = { "nofile" },
|
||||||
})
|
})
|
||||||
|
|
||||||
vim.keymap.set("n", "<C-Left>", require("smart-splits").resize_left)
|
-- vim.keymap.set("n", "<C-Left>", require("smart-splits").resize_left)
|
||||||
vim.keymap.set("n", "<C-Down>", require("smart-splits").resize_down)
|
-- vim.keymap.set("n", "<C-Down>", require("smart-splits").resize_down)
|
||||||
vim.keymap.set("n", "<C-Up", require("smart-splits").resize_up)
|
-- vim.keymap.set("n", "<C-Up", require("smart-splits").resize_up)
|
||||||
vim.keymap.set("n", "<C-Right>", require("smart-splits").resize_right)
|
-- vim.keymap.set("n", "<C-Right>", require("smart-splits").resize_right)
|
||||||
|
|
|
@ -47,9 +47,23 @@ if data_exists then
|
||||||
footer_text = data_txt
|
footer_text = data_txt
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
startify.section.footer.val = {
|
|
||||||
{ type = "text", val = footer_text },
|
vim.api.nvim_create_autocmd("User", {
|
||||||
}
|
pattern = "LazyVimStarted",
|
||||||
|
desc = "Add Alpha dashboard footer",
|
||||||
|
once = true,
|
||||||
|
callback = function()
|
||||||
|
local stats = require("lazy").stats()
|
||||||
|
local ms = math.floor(stats.startuptime * 100 + 0.5) / 100
|
||||||
|
startify.section.footer.val = {
|
||||||
|
{
|
||||||
|
type = "text",
|
||||||
|
val = { footer_text .. " " .. stats.loaded .. "/" .. stats.count .. " plugins in " .. ms .. "ms" },
|
||||||
|
},
|
||||||
|
}
|
||||||
|
pcall(vim.cmd.AlphaRedraw)
|
||||||
|
end,
|
||||||
|
})
|
||||||
-- ignore filetypes in MRU
|
-- ignore filetypes in MRU
|
||||||
startify.mru_opts.ignore = function(path, ext)
|
startify.mru_opts.ignore = function(path, ext)
|
||||||
return (string.find(path, "COMMIT_EDITMSG")) or (vim.tbl_contains(default_mru_ignore, ext))
|
return (string.find(path, "COMMIT_EDITMSG")) or (vim.tbl_contains(default_mru_ignore, ext))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue