This commit is contained in:
asep.komarudin 2024-04-13 08:35:24 +07:00
parent b616038b19
commit b89074da6b
5 changed files with 832 additions and 832 deletions

View file

@ -21,7 +21,6 @@
"mason-lspconfig.nvim": { "branch": "main", "commit": "2ba17cecfde8b8c7c7c287909a1e4de895223df6" }, "mason-lspconfig.nvim": { "branch": "main", "commit": "2ba17cecfde8b8c7c7c287909a1e4de895223df6" },
"mason-null-ls.nvim": { "branch": "main", "commit": "2b8433f76598397fcc97318d410e0c4f7a4bea6a" }, "mason-null-ls.nvim": { "branch": "main", "commit": "2b8433f76598397fcc97318d410e0c4f7a4bea6a" },
"mason.nvim": { "branch": "main", "commit": "c43eeb5614a09dc17c03a7fb49de2e05de203924" }, "mason.nvim": { "branch": "main", "commit": "c43eeb5614a09dc17c03a7fb49de2e05de203924" },
"mini.indentscope": { "branch": "main", "commit": "93a515fe0f38165a0d3c0f8fcae459294608851f" },
"noice.nvim": { "branch": "main", "commit": "0cbe3f88d038320bdbda3c4c5c95f43a13c3aa12" }, "noice.nvim": { "branch": "main", "commit": "0cbe3f88d038320bdbda3c4c5c95f43a13c3aa12" },
"none-ls-extras.nvim": { "branch": "main", "commit": "f0746bf4f1a21d6e1d2002f671fb9b46d2146de7" }, "none-ls-extras.nvim": { "branch": "main", "commit": "f0746bf4f1a21d6e1d2002f671fb9b46d2146de7" },
"none-ls.nvim": { "branch": "main", "commit": "09a7c58e9283dda582d9805f6b182b5b9f137ec7" }, "none-ls.nvim": { "branch": "main", "commit": "09a7c58e9283dda582d9805f6b182b5b9f137ec7" },
@ -41,13 +40,13 @@
"nvim-ts-rainbow2": { "branch": "master", "commit": "b3120cd5ae9ca524af9cb602f41e12e301fa985f" }, "nvim-ts-rainbow2": { "branch": "master", "commit": "b3120cd5ae9ca524af9cb602f41e12e301fa985f" },
"nvim-ufo": { "branch": "main", "commit": "a5390706f510d39951dd581f6d2a972741b3fa26" }, "nvim-ufo": { "branch": "main", "commit": "a5390706f510d39951dd581f6d2a972741b3fa26" },
"nvim-web-devicons": { "branch": "master", "commit": "a55b801b7ef5719ca25692c3a0a5447fdfb692ed" }, "nvim-web-devicons": { "branch": "master", "commit": "a55b801b7ef5719ca25692c3a0a5447fdfb692ed" },
"onedark.nvim": { "branch": "master", "commit": "1230aaf2a427b2c5b73aba6e4a9a5881d3e69429" },
"plenary.nvim": { "branch": "master", "commit": "50012918b2fc8357b87cff2a7f7f0446e47da174" }, "plenary.nvim": { "branch": "master", "commit": "50012918b2fc8357b87cff2a7f7f0446e47da174" },
"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": "5a701e99906961218b55d7ad6c2a998f066c6fe0" }, "telescope.nvim": { "branch": "master", "commit": "5a701e99906961218b55d7ad6c2a998f066c6fe0" },
"toggleterm.nvim": { "branch": "main", "commit": "193786e0371e3286d3bc9aa0079da1cd41beaa62" }, "toggleterm.nvim": { "branch": "main", "commit": "193786e0371e3286d3bc9aa0079da1cd41beaa62" },
"tokyonight.nvim": { "branch": "main", "commit": "67c6050e1ca41260c919236a098ba278472c7520" },
"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" },

View file

@ -1,32 +1,33 @@
local transparent_mode = require("core.config").transparent_mode local transparent_mode = require("core.config").transparent_mode
if transparent_mode ~= nil then if transparent_mode ~= nil then
if transparent_mode == 1 then if transparent_mode == 1 then
vim.cmd("TransparentDisable") vim.cmd("TransparentDisable")
vim.cmd("TransparentEnable") vim.cmd("TransparentEnable")
end end
end end
-- get folder name from current directory -- get folder name from current directory
local _get_folder_name = function() local _get_folder_name = function()
local str = vim.fn.fnamemodify(vim.fn.getcwd(), ":t") local str = vim.fn.fnamemodify(vim.fn.getcwd(), ":t")
return " " .. str:lower():gsub("^%l", string.upper) .. " " return " " .. str:lower():gsub("^%l", string.upper) .. " "
end end
local term_program = vim.fn.getenv("TERM_PROGRAM") 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() .. '"')
-- create autocmd on insertEnter -- create autocmd on insertEnter
vim.api.nvim_create_autocmd("BufRead", { vim.api.nvim_create_autocmd("BufRead", {
group = vim.api.nvim_create_augroup("BufRead", { clear = true }), group = vim.api.nvim_create_augroup("BufRead", { clear = true }),
command = 'silent !wezterm cli set-tab-title "' .. _get_folder_name() .. '"', command = 'silent !wezterm cli set-tab-title "' .. _get_folder_name() .. '"',
desc = "Set Folder Name", desc = "Set Folder Name",
}) })
end end
vim.api.nvim_create_autocmd("ExitPre", { vim.api.nvim_create_autocmd("ExitPre", {
group = vim.api.nvim_create_augroup("Exit", { clear = true }), 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", command =
desc = "Set cursor back to beam when leaving Neovim.", "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.",
}) })
-- config for vim-visual-multi color selection -- config for vim-visual-multi color selection

View file

@ -1,153 +1,153 @@
local icons = require("user.icons") local icons = require("user.icons")
return { return {
--- masukan plugin tambahan disini --- masukan plugin tambahan disini
-- { -- {
-- "folke/trouble.nvim", -- "folke/trouble.nvim",
-- event = "BufRead", -- event = "BufRead",
-- cmd = { "TroubleToggle", "Trouble" }, -- cmd = { "TroubleToggle", "Trouble" },
-- opts = { use_diagnostic_signs = true }, -- opts = { use_diagnostic_signs = true },
-- keys = { -- keys = {
-- { -- {
-- "<leader>xx", -- "<leader>xx",
-- "<cmd>TroubleToggle document_diagnostics<cr>", -- "<cmd>TroubleToggle document_diagnostics<cr>",
-- desc = "Document Diagnostics (Trouble)", -- desc = "Document Diagnostics (Trouble)",
-- }, -- },
-- { -- {
-- "<leader>xX", -- "<leader>xX",
-- "<cmd>TroubleToggle workspace_diagnostics<cr>", -- "<cmd>TroubleToggle workspace_diagnostics<cr>",
-- desc = "Workspace Diagnostics (Trouble)", -- desc = "Workspace Diagnostics (Trouble)",
-- }, -- },
-- }, -- },
-- }, -- },
-- { -- {
-- "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 = "│",
-- symbol = icons.ui.LineMiddle, -- symbol = icons.ui.LineMiddle,
-- options = { try_as_border = true }, -- options = { try_as_border = true },
-- }, -- },
-- config = function(_, opts) -- config = function(_, opts)
-- vim.api.nvim_create_autocmd("FileType", { -- vim.api.nvim_create_autocmd("FileType", {
-- pattern = { "help", "alpha", "dashboard", "NvimTree", "Trouble", "lazy", "mason" }, -- pattern = { "help", "alpha", "dashboard", "NvimTree", "Trouble", "lazy", "mason" },
-- callback = function() -- callback = function()
-- vim.b.miniindentscope_disable = true -- vim.b.miniindentscope_disable = true
-- end, -- end,
-- }) -- })
-- require("mini.indentscope").setup(opts) -- require("mini.indentscope").setup(opts)
-- end, -- 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",
-- config = function() -- config = function()
-- require("user.jaq") -- require("user.jaq")
-- end, -- end,
-- }, -- },
-- better todo coloring and icon -- better todo coloring and icon
-- { -- {
-- "folke/todo-comments.nvim", -- "folke/todo-comments.nvim",
-- event = { "BufReadPost", "BufNewFile" }, -- event = { "BufReadPost", "BufNewFile" },
-- config = function() -- config = function()
-- require("todo-comments").setup() -- require("todo-comments").setup()
-- end, -- end,
-- }, -- },
-- mini scrollview -- mini scrollview
-- { -- {
-- "karb94/neoscroll.nvim", -- "karb94/neoscroll.nvim",
-- event = "BufRead", -- event = "BufRead",
-- config = function() -- config = function()
-- require("user.neoscroll") -- require("user.neoscroll")
-- end, -- end,
-- }, -- },
-- { "ahmedkhalf/project.nvim", commit = "628de7e433dd503e782831fe150bb750e56e55d6", event = "VeryLazy" }, -- -- { "ahmedkhalf/project.nvim", commit = "628de7e433dd503e782831fe150bb750e56e55d6", event = "VeryLazy" }, --
-- additional plugins -- additional plugins
-- makes some plugins dot-repeatable like leap -- makes some plugins dot-repeatable like leap
-- { "tpope/vim-repeat", event = "VeryLazy" }, -- { "tpope/vim-repeat", event = "VeryLazy" },
-- better diagnostics list and others -- better diagnostics list and others
-- for markdown preview -- for markdown preview
-- make sure already install npm and yarn -- make sure already install npm and yarn
-- { -- {
-- "iamcco/markdown-preview.nvim", -- "iamcco/markdown-preview.nvim",
-- event = "VeryLazy", -- event = "VeryLazy",
-- build = "cd app && npm install", -- build = "cd app && npm install",
-- init = function() -- init = function()
-- vim.g.mkdp_filetypes = { "markdown" } -- vim.g.mkdp_filetypes = { "markdown" }
-- end, -- end,
-- ft = { "markdown" }, -- ft = { "markdown" },
-- cmd = { "MarkdownPreview", "MarkdownPreviewStop", "MarkdownPreviewToggle" }, -- cmd = { "MarkdownPreview", "MarkdownPreviewStop", "MarkdownPreviewToggle" },
-- }, -- },
-- for codeGPT -- for codeGPT
-- { -- {
-- "jackMort/ChatGPT.nvim", -- "jackMort/ChatGPT.nvim",
-- dependencies = { "MunifTanjim/nui.nvim", "nvim-lua/plenary.nvim", "nvim-telescope/telescope.nvim" }, -- dependencies = { "MunifTanjim/nui.nvim", "nvim-lua/plenary.nvim", "nvim-telescope/telescope.nvim" },
-- lazy = true, -- lazy = true,
-- event = "VeryLazy", -- event = "VeryLazy",
-- -- opts = function() -- -- opts = function()
-- -- require("user.chat_gpt") -- -- require("user.chat_gpt")
-- -- end, -- -- end,
-- }, -- },
-- indent detection -- indent detection
-- { -- {
-- "Darazaki/indent-o-matic", -- "Darazaki/indent-o-matic",
-- event = "VeryLazy", -- event = "VeryLazy",
-- opt = true, -- opt = true,
-- cmd = { "IndentOMatic" }, -- cmd = { "IndentOMatic" },
-- config = function() -- config = function()
-- require("user.indent-o-matic") -- require("user.indent-o-matic")
-- end, -- end,
-- }, -- },
-- Khusus Projek laravel baru di buka -- Khusus Projek laravel baru di buka
-- { -- {
-- "adalessa/laravel.nvim", -- "adalessa/laravel.nvim",
-- dependencies = { -- dependencies = {
-- "nvim-telescope/telescope.nvim", -- "nvim-telescope/telescope.nvim",
-- }, -- },
-- cmd = { "Sail", "Artisan", "Composer" }, -- cmd = { "Sail", "Artisan", "Composer" },
-- keys = { -- keys = {
-- { "<leader>pa", ":Artisan<cr>" }, -- { "<leader>pa", ":Artisan<cr>" },
-- }, -- },
-- config = function() -- config = function()
-- require("laravel").setup() -- require("laravel").setup()
-- require("telescope").load_extension("laravel") -- require("telescope").load_extension("laravel")
-- end, -- end,
-- }, -- },
-- -- -- --
-- { -- {
-- "barrett-ruth/live-server.nvim", -- "barrett-ruth/live-server.nvim",
-- build = "yarn global add live-server", -- build = "yarn global add live-server",
-- config = true, -- config = true,
-- init = function() -- init = function()
-- require("live-server").setup({ -- require("live-server").setup({
-- -- Arguments passed to live-server via `vim.fn.jobstart()` -- -- Arguments passed to live-server via `vim.fn.jobstart()`
-- -- Run `live-server --help` to see list of available options -- -- Run `live-server --help` to see list of available options
-- -- For example, to use port 7000 and browser firefox: -- -- For example, to use port 7000 and browser firefox:
-- args = { "--port=7000", "--browser=firefox" }, -- args = { "--port=7000", "--browser=firefox" },
-- --args = {}, -- --args = {},
-- }) -- })
-- end, -- end,
-- }, -- },
-- for install lsp tidak support mason -- for install lsp tidak support mason
-- { -- {
-- "williamboman/nvim-lsp-installer", -- "williamboman/nvim-lsp-installer",
-- event = "BufRead", -- event = "BufRead",
-- lazy = true, -- lazy = true,
-- config = function() -- config = function()
-- require("user.lsp.config") -- require("user.lsp.config")
-- end, -- end,
-- }, -- },
} }

File diff suppressed because it is too large Load diff

View file

@ -5,167 +5,167 @@ vim.g.loaded_netrwPlugin = 1
vim.opt.termguicolors = true vim.opt.termguicolors = true
local status_ok, nvim_tree = pcall(require, "nvim-tree") local status_ok, nvim_tree = pcall(require, "nvim-tree")
if not status_ok then if not status_ok then
return return
end end
local icons = require("user.icons") local icons = require("user.icons")
nvim_tree.setup({ nvim_tree.setup({
filters = { filters = {
dotfiles = false, dotfiles = false,
git_clean = false, git_clean = false,
no_buffer = false, no_buffer = false,
custom = { "node_modules", "\\.cache", "\\.git" }, custom = { "node_modules", "\\.cache", "\\.git" },
exclude = { exclude = {
".gitignore", ".gitignore",
".prettierignore", ".prettierignore",
}, },
}, },
filesystem_watchers = { filesystem_watchers = {
enable = true, enable = true,
debounce_delay = 50, debounce_delay = 50,
ignore_dirs = {}, ignore_dirs = {},
}, },
git = { git = {
enable = true, -- false dulu karena muncul error enable = true, -- false dulu karena muncul error
ignore = false, -- true dulu karena muncul error ignore = false, -- true dulu karena muncul error
show_on_dirs = true, show_on_dirs = true,
show_on_open_dirs = true, show_on_open_dirs = true,
timeout = 200, timeout = 200,
}, },
actions = { actions = {
use_system_clipboard = true, use_system_clipboard = true,
change_dir = { change_dir = {
enable = true, enable = true,
global = false, global = false,
restrict_above_cwd = false, restrict_above_cwd = false,
}, },
expand_all = { expand_all = {
max_folder_discovery = 300, max_folder_discovery = 300,
exclude = {}, exclude = {},
}, },
file_popup = { file_popup = {
open_win_config = { open_win_config = {
col = 1, col = 1,
row = 1, row = 1,
relative = "cursor", relative = "cursor",
border = "shadow", border = "shadow",
style = "minimal", style = "minimal",
}, },
}, },
open_file = { open_file = {
quit_on_open = false, quit_on_open = false,
resize_window = false, resize_window = false,
window_picker = { window_picker = {
enable = true, enable = true,
picker = "default", picker = "default",
chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890", chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890",
exclude = { exclude = {
filetype = { "notify", "lazy", "qf", "diff", "fugitive", "fugitiveblame" }, filetype = { "notify", "lazy", "qf", "diff", "fugitive", "fugitiveblame" },
buftype = { "nofile", "terminal", "help" }, buftype = { "nofile", "terminal", "help" },
}, },
}, },
}, },
remove_file = { remove_file = {
close_window = true, close_window = true,
}, },
}, },
trash = { trash = {
cmd = "trash", cmd = "trash",
require_confirm = true, require_confirm = true,
}, },
live_filter = { live_filter = {
prefix = "[FILTER]: ", prefix = "[FILTER]: ",
always_show_folders = true, always_show_folders = true,
}, },
tab = { tab = {
sync = { sync = {
open = false, open = false,
close = false, close = false,
ignore = {}, ignore = {},
}, },
}, },
notify = { notify = {
threshold = vim.log.levels.INFO, threshold = vim.log.levels.INFO,
}, },
log = { log = {
enable = false, enable = false,
truncate = false, truncate = false,
types = { types = {
all = false, all = false,
config = false, config = false,
copy_paste = false, copy_paste = false,
dev = false, dev = false,
diagnostics = false, diagnostics = false,
git = false, git = false,
profile = false, profile = false,
watcher = false, watcher = false,
}, },
}, },
system_open = { system_open = {
cmd = nil, cmd = nil,
args = {}, args = {},
}, },
renderer = { renderer = {
-- root_folder_modifier = ":t", -- root_folder_modifier = ":t",
root_folder_label = false, root_folder_label = false,
indent_markers = { indent_markers = {
enable = true, enable = false,
inline_arrows = true, inline_arrows = true,
icons = { icons = {
corner = "", corner = "",
edge = "", edge = "",
item = "", item = "",
bottom = "", bottom = "",
none = " ", none = " ",
}, },
}, },
icons = { icons = {
webdev_colors = true, webdev_colors = true,
show = { show = {
git = true, git = true,
folder = true, folder = true,
file = true, file = true,
folder_arrow = true, folder_arrow = true,
}, },
glyphs = { glyphs = {
default = icons.ui.Text, default = icons.ui.Text,
symlink = icons.ui.FileSymlink, symlink = icons.ui.FileSymlink,
folder = { folder = {
arrow_open = icons.ui.ChevronShortDown, arrow_open = icons.ui.ChevronShortDown,
arrow_closed = icons.ui.ChevronShortRight, arrow_closed = icons.ui.ChevronShortRight,
default = icons.ui.Folder, default = icons.ui.Folder,
empty = icons.ui.EmptyFolder, empty = icons.ui.EmptyFolder,
empty_open = icons.ui.EmptyFolderOpen, empty_open = icons.ui.EmptyFolderOpen,
open = icons.ui.FolderOpen, open = icons.ui.FolderOpen,
symlink = icons.ui.FolderSymlink, symlink = icons.ui.FolderSymlink,
symlink_open = icons.ui.FolderSymlink, symlink_open = icons.ui.FolderSymlink,
}, },
git = { git = {
deleted = icons.git.FileDeleted, deleted = icons.git.FileDeleted,
-- ignored = icons.git.FileIgnored, -- ignored = icons.git.FileIgnored,
ignored = "", ignored = "",
renamed = icons.git.FileRenamed, renamed = icons.git.FileRenamed,
staged = icons.git.FileStaged, staged = icons.git.FileStaged,
unmerged = icons.git.FileUnmerged, unmerged = icons.git.FileUnmerged,
unstaged = icons.git.FileUnstaged, unstaged = icons.git.FileUnstaged,
untracked = icons.git.FileUntracked, untracked = icons.git.FileUntracked,
}, },
}, },
}, },
}, },
diagnostics = { diagnostics = {
enable = true, enable = true,
show_on_dirs = true, show_on_dirs = true,
icons = { icons = {
hint = icons.diagnostics.BoldHint, hint = icons.diagnostics.BoldHint,
info = icons.diagnostics.BoldInformation, info = icons.diagnostics.BoldInformation,
warning = icons.diagnostics.BoldWarning, warning = icons.diagnostics.BoldWarning,
error = icons.diagnostics.BoldError, error = icons.diagnostics.BoldError,
}, },
}, },
view = { view = {
width = 30, width = 30,
-- hide_root_folder = false, -- hide_root_folder = false,
side = "left", side = "left",
}, },
}) })