Merge branch 'dev'

This commit is contained in:
Pojok Code 2024-11-05 15:44:12 +07:00
commit a3bda6f3a5
6 changed files with 299 additions and 289 deletions

View file

@ -24,6 +24,7 @@
"friendly-snippets": { "branch": "main", "commit": "de8fce94985873666bd9712ea3e49ee17aadb1ed" }, "friendly-snippets": { "branch": "main", "commit": "de8fce94985873666bd9712ea3e49ee17aadb1ed" },
"gitsigns.nvim": { "branch": "main", "commit": "4daf7022f1481edf1e8fb9947df13bb07c18e89a" }, "gitsigns.nvim": { "branch": "main", "commit": "4daf7022f1481edf1e8fb9947df13bb07c18e89a" },
"indent-blankline.nvim": { "branch": "master", "commit": "04e44b09ee3ff189c69ab082edac1ef7ae2e256c" }, "indent-blankline.nvim": { "branch": "master", "commit": "04e44b09ee3ff189c69ab082edac1ef7ae2e256c" },
"laravel.nvim": { "branch": "main", "commit": "e4f39d942352b03396a9df79896b0a8801675199" },
"lazy.nvim": { "branch": "main", "commit": "b1134ab82ee4279e31f7ddf7e34b2a99eb9b7bc9" }, "lazy.nvim": { "branch": "main", "commit": "b1134ab82ee4279e31f7ddf7e34b2a99eb9b7bc9" },
"lualine.nvim": { "branch": "master", "commit": "640260d7c2d98779cab89b1e7088ab14ea354a02" }, "lualine.nvim": { "branch": "master", "commit": "640260d7c2d98779cab89b1e7088ab14ea354a02" },
"mason-lspconfig.nvim": { "branch": "main", "commit": "4d0e5b49363cac187326998b96aa6a2884e0e89b" }, "mason-lspconfig.nvim": { "branch": "main", "commit": "4d0e5b49363cac187326998b96aa6a2884e0e89b" },
@ -38,7 +39,7 @@
"nui.nvim": { "branch": "main", "commit": "b58e2bfda5cea347c9d58b7f11cf3012c7b3953f" }, "nui.nvim": { "branch": "main", "commit": "b58e2bfda5cea347c9d58b7f11cf3012c7b3953f" },
"nvim-autopairs": { "branch": "master", "commit": "ee297f215e95a60b01fde33275cc3c820eddeebe" }, "nvim-autopairs": { "branch": "master", "commit": "ee297f215e95a60b01fde33275cc3c820eddeebe" },
"nvim-cmp": { "branch": "main", "commit": "f17d9b4394027ff4442b298398dfcaab97e40c4f" }, "nvim-cmp": { "branch": "main", "commit": "f17d9b4394027ff4442b298398dfcaab97e40c4f" },
"nvim-colorizer.lua": { "branch": "master", "commit": "58bbb51898709b4222feaa84a30464a107ddf8eb" }, "nvim-colorizer.lua": { "branch": "master", "commit": "e614ff5c26d085a3242e26648e90e56ba5476da2" },
"nvim-dap": { "branch": "master", "commit": "7ff6936010b7222fea2caea0f67ed77f1b7c60dd" }, "nvim-dap": { "branch": "master", "commit": "7ff6936010b7222fea2caea0f67ed77f1b7c60dd" },
"nvim-dap-ui": { "branch": "master", "commit": "ffa89839f97bad360e78428d5c740fdad9a0ff02" }, "nvim-dap-ui": { "branch": "master", "commit": "ffa89839f97bad360e78428d5c740fdad9a0ff02" },
"nvim-dap-virtual-text": { "branch": "master", "commit": "76d80c3d171224315b61c006502a1e30c213a9ab" }, "nvim-dap-virtual-text": { "branch": "master", "commit": "76d80c3d171224315b61c006502a1e30c213a9ab" },
@ -50,20 +51,22 @@
"nvim-notify": { "branch": "master", "commit": "fbef5d32be8466dd76544a257d3f3dce20082a07" }, "nvim-notify": { "branch": "master", "commit": "fbef5d32be8466dd76544a257d3f3dce20082a07" },
"nvim-scrollview": { "branch": "main", "commit": "f7f611330a8f7cd00dc81538fec369611be678ed" }, "nvim-scrollview": { "branch": "main", "commit": "f7f611330a8f7cd00dc81538fec369611be678ed" },
"nvim-tree.lua": { "branch": "master", "commit": "610a1c189bdb2b9b936169b2ea9d1838f971fa2b" }, "nvim-tree.lua": { "branch": "master", "commit": "610a1c189bdb2b9b936169b2ea9d1838f971fa2b" },
"nvim-treesitter": { "branch": "master", "commit": "dfd3207ed43a0c572c13acc02bf9d7dc270f4030" }, "nvim-treesitter": { "branch": "master", "commit": "509d38fee865eefd38eacf17c8920b68cf67b0fd" },
"nvim-ts-autotag": { "branch": "main", "commit": "e239a560f338be31337e7abc3ee42515daf23f5e" }, "nvim-ts-autotag": { "branch": "main", "commit": "e239a560f338be31337e7abc3ee42515daf23f5e" },
"nvim-ts-context-commentstring": { "branch": "main", "commit": "9c74db656c3d0b1c4392fc89a016b1910539e7c0" }, "nvim-ts-context-commentstring": { "branch": "main", "commit": "9c74db656c3d0b1c4392fc89a016b1910539e7c0" },
"nvim-web-devicons": { "branch": "master", "commit": "19d257cf889f79f4022163c3fbb5e08639077bd8" }, "nvim-web-devicons": { "branch": "master", "commit": "19d257cf889f79f4022163c3fbb5e08639077bd8" },
"plenary.nvim": { "branch": "master", "commit": "2d9b06177a975543726ce5c73fca176cedbffe9d" }, "plenary.nvim": { "branch": "master", "commit": "2d9b06177a975543726ce5c73fca176cedbffe9d" },
"promise-async": { "branch": "main", "commit": "119e8961014c9bfaf1487bf3c2a393d254f337e2" },
"rainbow-delimiters.nvim": { "branch": "master", "commit": "e0f9b3efe150724af2d2ed59997d5ece373840e3" }, "rainbow-delimiters.nvim": { "branch": "master", "commit": "e0f9b3efe150724af2d2ed59997d5ece373840e3" },
"smart-splits.nvim": { "branch": "master", "commit": "477a004122ea180b14d3e29544857d572c861668" }, "smart-splits.nvim": { "branch": "master", "commit": "477a004122ea180b14d3e29544857d572c861668" },
"telescope.nvim": { "branch": "master", "commit": "85922dde3767e01d42a08e750a773effbffaea3e" }, "telescope.nvim": { "branch": "master", "commit": "85922dde3767e01d42a08e750a773effbffaea3e" },
"tiny-devicons-auto-colors.nvim": { "branch": "main", "commit": "a39fa4c92268832f6034306793b8acbfec2a7549" }, "tiny-devicons-auto-colors.nvim": { "branch": "main", "commit": "a39fa4c92268832f6034306793b8acbfec2a7549" },
"toggleterm.nvim": { "branch": "main", "commit": "5969229c0352ff1ed7f6e24aba9c6554e1842939" }, "toggleterm.nvim": { "branch": "main", "commit": "5969229c0352ff1ed7f6e24aba9c6554e1842939" },
"vim-dotenv": { "branch": "master", "commit": "5c51cfcf8d87280d6414e03cd6b253eb70ecb800" },
"vim-illuminate": { "branch": "master", "commit": "5eeb7951fc630682c322e88a9bbdae5c224ff0aa" }, "vim-illuminate": { "branch": "master", "commit": "5eeb7951fc630682c322e88a9bbdae5c224ff0aa" },
"vim-visual-multi": { "branch": "master", "commit": "a6975e7c1ee157615bbc80fc25e4392f71c344d4" }, "vim-visual-multi": { "branch": "master", "commit": "a6975e7c1ee157615bbc80fc25e4392f71c344d4" },
"virt-column.nvim": { "branch": "master", "commit": "b62b4ef0774d19452d4ed18e473e824c7a756f2f" }, "virt-column.nvim": { "branch": "master", "commit": "b62b4ef0774d19452d4ed18e473e824c7a756f2f" },
"volt": { "branch": "main", "commit": "c99a2f4ece14ff501f14e4c10fe9cd60b22757a8" }, "volt": { "branch": "main", "commit": "ff954757fdaf72da0dedd77bdf74718ea846f989" },
"vscode-php-debug": { "branch": "main", "commit": "6193fbc1c819437325df3dad43e254d8e5c416e5" }, "vscode-php-debug": { "branch": "main", "commit": "6193fbc1c819437325df3dad43e254d8e5c416e5" },
"which-key.nvim": { "branch": "main", "commit": "8badb359f7ab8711e2575ef75dfe6fbbd87e4821" }, "which-key.nvim": { "branch": "main", "commit": "8badb359f7ab8711e2575ef75dfe6fbbd87e4821" },
"yanky.nvim": { "branch": "main", "commit": "73215b77d22ebb179cef98e7e1235825431d10e4" }, "yanky.nvim": { "branch": "main", "commit": "73215b77d22ebb179cef98e7e1235825431d10e4" },

View file

@ -1,17 +1,17 @@
-- Bootstrap lazy.nvim -- Bootstrap lazy.nvim
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not (vim.uv or vim.loop).fs_stat(lazypath) then if not (vim.uv or vim.loop).fs_stat(lazypath) then
local lazyrepo = "https://github.com/folke/lazy.nvim.git" local lazyrepo = "https://github.com/folke/lazy.nvim.git"
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath }) local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
if vim.v.shell_error ~= 0 then if vim.v.shell_error ~= 0 then
vim.api.nvim_echo({ vim.api.nvim_echo({
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" }, { "Failed to clone lazy.nvim:\n", "ErrorMsg" },
{ out, "WarningMsg" }, { out, "WarningMsg" },
{ "\nPress any key to exit..." }, { "\nPress any key to exit..." },
}, true, {}) }, true, {})
vim.fn.getchar() vim.fn.getchar()
os.exit(1) os.exit(1)
end end
end end
vim.opt.rtp:prepend(vim.env.LAZY or lazypath) vim.opt.rtp:prepend(vim.env.LAZY or lazypath)
@ -23,64 +23,68 @@ vim.g.mapleader = " "
vim.g.maplocalleader = "\\" vim.g.maplocalleader = "\\"
-- initialisasi plugins -- initialisasi plugins
local importdata = { local importdata = {
{ import = "pcode.plugins" }, { import = "pcode.plugins" },
} }
-- load theme -- load theme
local theme = pcode.themes or {} local theme = pcode.themes or {}
for key, _ in pairs(theme) do for key, _ in pairs(theme) do
table.insert(importdata, { import = "pcode.plugins.theme." .. key }) table.insert(importdata, { import = "pcode.plugins.theme." .. key })
end end
-- load extras plugins -- load extras plugins
local extras = pcode.extras or {} local extras = pcode.extras or {}
for _, value in pairs(extras) do for key, value in pairs(extras) do
table.insert(importdata, { import = "pcode.plugins.extras." .. value }) if value then
table.insert(importdata, { import = "pcode.plugins.extras." .. key })
end
end end
-- load language config -- load language config
local lang = pcode.lang or {} local lang = pcode.lang or {}
for _, value in pairs(lang) do for key, value in pairs(lang) do
table.insert(importdata, { import = "pcode.plugins.lang." .. value }) if value then
table.insert(importdata, { import = "pcode.plugins.lang." .. key })
end
end end
-- load transparant config -- load transparant config
local transparant = pcode.transparent or false local transparant = pcode.transparent or false
if transparant then if transparant then
table.insert(importdata, { import = "pcode.plugins.extras.transparent" }) table.insert(importdata, { import = "pcode.plugins.extras.transparent" })
end end
-- add overide path -- add overide path
table.insert(importdata, { import = "pcode.user.custom" }) table.insert(importdata, { import = "pcode.user.custom" })
-- Setup lazy.nvim -- Setup lazy.nvim
require("lazy").setup({ require("lazy").setup({
spec = importdata, spec = importdata,
ui = { ui = {
backdrop = 100, -- Menyeting backdrop UI backdrop = 100, -- Menyeting backdrop UI
border = "rounded", -- Mengatur border UI ke rounded border = "rounded", -- Mengatur border UI ke rounded
browser = "chrome", -- Menggunakan Chrome sebagai browser default browser = "chrome", -- Menggunakan Chrome sebagai browser default
throttle = 40, -- Menyeting throttle throttle = 40, -- Menyeting throttle
custom_keys = { custom_keys = {
["<localleader>l"] = false, -- Menonaktifkan kunci lokal leader l ["<localleader>l"] = false, -- Menonaktifkan kunci lokal leader l
}, },
icons = { icons = {
ft = icons.ft, ft = icons.ft,
lazy = icons.Bell .. " ", lazy = icons.Bell .. " ",
loaded = icons.CheckCircle, loaded = icons.CheckCircle,
not_loaded = icons.not_loaded, not_loaded = icons.not_loaded,
}, },
}, },
change_detection = { enabled = false, notify = false }, -- Nonaktifkan deteksi perubahan change_detection = { enabled = false, notify = false }, -- Nonaktifkan deteksi perubahan
-- automatically check for plugin updates -- automatically check for plugin updates
checker = { enabled = true }, checker = { enabled = true },
performance = { performance = {
rtp = { rtp = {
-- disable some rtp plugins -- disable some rtp plugins
disabled_plugins = { disabled_plugins = {
"gzip", "gzip",
"matchit", "matchit",
"matchparen", "matchparen",
"netrwPlugin", "netrwPlugin",
"tarPlugin", "tarPlugin",
"tohtml", "tohtml",
"tutor", "tutor",
"zipPlugin", "zipPlugin",
}, },
}, },
}, },
}) })

View file

@ -1,9 +1,9 @@
local function is_laravel_project() local function is_laravel_project()
return vim.fn.isdirectory("app") == 1 return vim.fn.isdirectory("app") == 1
and vim.fn.isdirectory("bootstrap") == 1 and vim.fn.isdirectory("bootstrap") == 1
and vim.fn.isdirectory("config") == 1 and vim.fn.isdirectory("config") == 1
and vim.fn.isdirectory("database") == 1 and vim.fn.isdirectory("database") == 1
and vim.fn.isdirectory("routes") == 1 and vim.fn.isdirectory("routes") == 1
end end
-- check parser php -- check parser php
-- local is_config = true -- local is_config = true
@ -12,165 +12,165 @@ end
-- is_config = false -- is_config = false
-- end -- end
return { return {
{ {
"nvim-treesitter/nvim-treesitter", "nvim-treesitter/nvim-treesitter",
opts = function(_, opts) opts = function(_, opts)
opts.ensure_installed = opts.ensure_installed or {} opts.ensure_installed = opts.ensure_installed or {}
vim.list_extend(opts.ensure_installed, { vim.list_extend(opts.ensure_installed, {
"c", "c",
"lua", "lua",
"vim", "vim",
"vimdoc", "vimdoc",
"query", "query",
"markdown", "markdown",
"markdown_inline", "markdown_inline",
"html", "html",
"php_only", "php_only",
"php", "php",
"bash", "bash",
"blade", "blade",
"json", "json",
}) })
end, end,
config = function(_, opts) config = function(_, opts)
local parser_config = require("nvim-treesitter.parsers").get_parser_configs() local parser_config = require("nvim-treesitter.parsers").get_parser_configs()
parser_config.blade = { parser_config.blade = {
install_info = { install_info = {
url = "https://github.com/EmranMR/tree-sitter-blade", url = "https://github.com/EmranMR/tree-sitter-blade",
files = { "src/parser.c" }, files = { "src/parser.c" },
branch = "main", branch = "main",
}, },
filetype = "blade", filetype = "blade",
} }
vim.filetype.add({ vim.filetype.add({
pattern = { pattern = {
[".*%.blade%.php"] = "blade", [".*%.blade%.php"] = "blade",
}, },
}) })
require("nvim-treesitter.configs").setup(opts) require("nvim-treesitter.configs").setup(opts)
end, end,
}, },
{ {
"williamboman/mason-lspconfig.nvim", "williamboman/mason-lspconfig.nvim",
opts = function(_, opts) opts = function(_, opts)
opts.ensure_installed = opts.ensure_installed or {} opts.ensure_installed = opts.ensure_installed or {}
vim.list_extend(opts.ensure_installed, { "intelephense", "stimulus_ls" }) vim.list_extend(opts.ensure_installed, { "intelephense", "stimulus_ls" })
end, end,
}, },
{ {
"pojokcodeid/auto-conform.nvim", "pojokcodeid/auto-conform.nvim",
event = "VeryLazy", event = "VeryLazy",
opts = function(_, opts) opts = function(_, opts)
vim.list_extend(opts.ensure_installed, { "php-cs-fixer", "blade-formatter" }) vim.list_extend(opts.ensure_installed, { "php-cs-fixer", "blade-formatter" })
opts.formatters_by_ft.php = { "easy-coding-standard" } opts.formatters_by_ft.php = { "easy-coding-standard" }
opts.formatters_by_ft.blade = { "blade-formatter" } opts.formatters_by_ft.blade = { "blade-formatter" }
end, end,
}, },
{ {
"pojokcodeid/auto-lint.nvim", "pojokcodeid/auto-lint.nvim",
event = "VeryLazy", event = "VeryLazy",
opts = function(_, opts) opts = function(_, opts)
vim.list_extend(opts.ensure_installed, { "phpcs" }) vim.list_extend(opts.ensure_installed, { "phpcs" })
end, end,
config = function(_, opts) config = function(_, opts)
require("auto-lint").setup(opts) require("auto-lint").setup(opts)
end, end,
}, },
{ {
"rcarriga/nvim-dap-ui", "rcarriga/nvim-dap-ui",
lazy = true, lazy = true,
event = "BufRead", event = "BufRead",
dependencies = { dependencies = {
{ "mfussenegger/nvim-dap", lazy = true }, { "mfussenegger/nvim-dap", lazy = true },
{ "nvim-neotest/nvim-nio", lazy = true }, { "nvim-neotest/nvim-nio", lazy = true },
{ {
"xdebug/vscode-php-debug", "xdebug/vscode-php-debug",
version = "1.x", version = "1.x",
build = "npm install && npm run build", build = "npm install && npm run build",
config = function() config = function()
require("dap.ext.vscode").load_launchjs() require("dap.ext.vscode").load_launchjs()
end, end,
}, },
}, },
config = function() config = function()
require("pcode.user.dapui") require("pcode.user.dapui")
local dap = require("dap") local dap = require("dap")
dap.adapters.php = { dap.adapters.php = {
type = "executable", type = "executable",
command = "node", command = "node",
-- change this to where you build vscode-php-debug -- change this to where you build vscode-php-debug
args = { vim.fn.stdpath("data") .. "/lazy/vscode-php-debug/out/phpDebug.js" }, args = { vim.fn.stdpath("data") .. "/lazy/vscode-php-debug/out/phpDebug.js" },
} }
dap.configurations.php = { dap.configurations.php = {
-- to run php right from the editor -- to run php right from the editor
{ {
name = "run current script", name = "run current script",
type = "php", type = "php",
request = "launch", request = "launch",
port = 9003, port = 9003,
cwd = "${fileDirname}", cwd = "${fileDirname}",
program = "${file}", program = "${file}",
runtimeExecutable = "php", runtimeExecutable = "php",
}, },
-- to listen to any php call -- to listen to any php call
{ {
name = "listen for Xdebug local", name = "listen for Xdebug local",
type = "php", type = "php",
request = "launch", request = "launch",
port = 9003, port = 9003,
}, },
-- to listen to php call in docker container -- to listen to php call in docker container
{ {
name = "listen for Xdebug docker", name = "listen for Xdebug docker",
type = "php", type = "php",
request = "launch", request = "launch",
port = 9003, port = 9003,
-- this is where your file is in the container -- this is where your file is in the container
pathMappings = { pathMappings = {
["/opt/project"] = "${workspaceFolder}", ["/opt/project"] = "${workspaceFolder}",
}, },
}, },
} }
end, end,
keys = { keys = {
{ "<leader>d", "", desc = "  Debug" }, { "<leader>d", "", desc = "  Debug" },
{ "<leader>dt", "<cmd>lua require'dap'.toggle_breakpoint()<cr>", desc = "Toggle Breakpoint" }, { "<leader>dt", "<cmd>lua require'dap'.toggle_breakpoint()<cr>", desc = "Toggle Breakpoint" },
{ "<leader>db", "<cmd>lua require'dap'.step_back()<cr>", desc = "Step Back" }, { "<leader>db", "<cmd>lua require'dap'.step_back()<cr>", desc = "Step Back" },
{ "<leader>dc", "<cmd>lua require'dap'.continue()<cr>", desc = "Continue" }, { "<leader>dc", "<cmd>lua require'dap'.continue()<cr>", desc = "Continue" },
{ "<leader>dC", "<cmd>lua require'dap'.run_to_cursor()<cr>", desc = "Run To Cursor" }, { "<leader>dC", "<cmd>lua require'dap'.run_to_cursor()<cr>", desc = "Run To Cursor" },
{ "<leader>dd", "<cmd>lua require'dap'.disconnect()<cr>", desc = "Disconnect" }, { "<leader>dd", "<cmd>lua require'dap'.disconnect()<cr>", desc = "Disconnect" },
{ "<leader>dg", "<cmd>lua require'dap'.session()<cr>", desc = "Get Session" }, { "<leader>dg", "<cmd>lua require'dap'.session()<cr>", desc = "Get Session" },
{ "<leader>di", "<cmd>lua require'dap'.step_into()<cr>", desc = "Step Into" }, { "<leader>di", "<cmd>lua require'dap'.step_into()<cr>", desc = "Step Into" },
{ "<leader>do", "<cmd>lua require'dap'.step_over()<cr>", desc = "Step Over" }, { "<leader>do", "<cmd>lua require'dap'.step_over()<cr>", desc = "Step Over" },
{ "<leader>du", "<cmd>lua require'dap'.step_out()<cr>", desc = "Step Out" }, { "<leader>du", "<cmd>lua require'dap'.step_out()<cr>", desc = "Step Out" },
{ "<leader>dp", "<cmd>lua require'dap'.pause()<cr>", desc = "Pause" }, { "<leader>dp", "<cmd>lua require'dap'.pause()<cr>", desc = "Pause" },
{ "<leader>dr", "<cmd>lua require'dap'.repl.toggle()<cr>", desc = "Toggle Repl" }, { "<leader>dr", "<cmd>lua require'dap'.repl.toggle()<cr>", desc = "Toggle Repl" },
{ "<leader>ds", "<cmd>lua require'dap'.continue()<cr>", desc = "Start" }, { "<leader>ds", "<cmd>lua require'dap'.continue()<cr>", desc = "Start" },
{ "<leader>dq", "<cmd>lua require'dap'.close()<cr>", desc = "Quit" }, { "<leader>dq", "<cmd>lua require'dap'.close()<cr>", desc = "Quit" },
{ "<leader>dU", "<cmd>lua require'dapui'.toggle({reset = true})<cr>", desc = "Toggle UI" }, { "<leader>dU", "<cmd>lua require'dapui'.toggle({reset = true})<cr>", desc = "Toggle UI" },
}, },
}, },
{ {
"nvim-neotest/neotest", "nvim-neotest/neotest",
dependencies = { dependencies = {
"antoinemadec/FixCursorHold.nvim", "antoinemadec/FixCursorHold.nvim",
"olimorris/neotest-phpunit", "olimorris/neotest-phpunit",
"nvim-neotest/nvim-nio", "nvim-neotest/nvim-nio",
}, },
config = function() config = function()
require("neotest-phpunit")({ require("neotest-phpunit")({
filter_dirs = { "vendor" }, filter_dirs = { "vendor" },
}) })
require("neotest").setup({ require("neotest").setup({
adapters = { adapters = {
require("neotest-phpunit"), require("neotest-phpunit"),
}, },
}) })
end, end,
-- stylua: ignore -- stylua: ignore
keys = { keys = {
{ "<leader>T","",desc="  Test"}, { "<leader>T","",desc="  Test"},
@ -183,38 +183,39 @@ return {
{ "<Leader>TO", function() require("neotest").output_panel.toggle() end, desc = "Toggle Output Panel" }, { "<Leader>TO", function() require("neotest").output_panel.toggle() end, desc = "Toggle Output Panel" },
{ "<Leader>TS", function() require("neotest").run.stop() end, desc = "Stop" }, { "<Leader>TS", function() require("neotest").run.stop() end, desc = "Stop" },
}, },
}, },
{ {
"mfussenegger/nvim-lint", "mfussenegger/nvim-lint",
opts = function(_, opts) opts = function(_, opts)
opts.linters_by_ft = opts.linters_by_ft or {} opts.linters_by_ft = opts.linters_by_ft or {}
opts.linters_by_ft.php = { "phpcs" } opts.linters_by_ft.php = { "phpcs" }
opts.linters_by_ft.blade = { "tlint" } opts.linters_by_ft.blade = { "tlint" }
end, end,
config = function(_, opts) config = function(_, opts)
require("lint").linters_by_ft = opts.linters_by_ft require("lint").linters_by_ft = opts.linters_by_ft
end, end,
}, },
-- untuk case tertentu install ini -- untuk case tertentu install ini
-- npm install -g tree-sitter-cli -- npm install -g tree-sitter-cli
{ {
"adalessa/laravel.nvim", "adalessa/laravel.nvim",
enabled = is_laravel_project(), -- pastikan membuka laravel project enabled = is_laravel_project(), -- pastikan membuka laravel project
dependencies = { version = "v2.2.1",
"tpope/vim-dotenv", dependencies = {
"nvim-telescope/telescope.nvim", "tpope/vim-dotenv",
"MunifTanjim/nui.nvim", "nvim-telescope/telescope.nvim",
"kevinhwang91/promise-async", "MunifTanjim/nui.nvim",
}, "kevinhwang91/promise-async",
cmd = { "Laravel" }, },
keys = { cmd = { "Laravel" },
{ "<leader>L", "", desc = " 󰫐 Laravel" }, keys = {
{ "<leader>La", ":Laravel artisan<cr>" }, { "<leader>L", "", desc = " 󰫐 Laravel" },
{ "<leader>Lr", ":Laravel routes<cr>" }, { "<leader>La", ":Laravel artisan<cr>" },
{ "<leader>Lm", ":Laravel related<cr>" }, { "<leader>Lr", ":Laravel routes<cr>" },
}, { "<leader>Lm", ":Laravel related<cr>" },
event = { "VeryLazy" }, },
opts = {}, event = { "VeryLazy" },
config = true, opts = {},
}, config = true,
},
} }

View file

@ -6,7 +6,7 @@ return {
require("Eva-Theme").setup({}) require("Eva-Theme").setup({})
local color = {} local color = {}
if pcode.localcode then if pcode.localcode then
color = require("Eva-Theme.palette").dark_base.punctuation color = require("Eva-Theme.palette").dark_base
else else
color = require("Eva-Theme.palette").dark color = require("Eva-Theme.palette").dark
end end
@ -43,6 +43,8 @@ return {
hi(0, "CursorColumn", { bg = color.dark, fg = "#838FA7" }) hi(0, "CursorColumn", { bg = color.dark, fg = "#838FA7" })
hi(0, "TermCursor", { bg = "#FF9070", fg = color.dark }) hi(0, "TermCursor", { bg = "#FF9070", fg = color.dark })
hi(0, "TermCursorNC", { bg = "#FF9070", fg = color.dark }) hi(0, "TermCursorNC", { bg = "#FF9070", fg = color.dark })
hi(0, "MiniIndentscopeSymbol", { fg = "#FF9070" })
hi(0, "MiniIndentscopeSymbolOff", { fg = "#FF9070" })
end, end,
}) })
end, end,

View file

@ -1,47 +1,47 @@
-- activate config spesific languages -- activate config spesific languages
pcode.lang = { pcode.lang = {
-- "angular", angular = false,
-- "cpp", cpp = false,
-- "sql", sql = false,
-- "deno", deno = false,
-- "golang", golang = false,
-- "java", java = false,
-- "javascript", javascript = false,
-- "kotlin", kotlin = false,
-- "markdown", markdown = false,
"php", php = true,
-- "prisma", prisma = false,
-- "python", python = false,
-- "tust", rust = false,
-- "tailwind", tailwind = false,
} }
-- activate config extras -- activate config extras
pcode.extras = { pcode.extras = {
-- "autosave", autosave = false,
-- "bigfiles", bigfiles = false,
-- "codeiumnvim", codeiumnvim = false,
-- "liveserver", liveserver = false,
-- "minianimate", minianimate = false,
-- "neoscroll", neoscroll = false,
-- "nvimufo", nvimufo = false,
-- "refactoring", refactoring = false,
-- "rest", rest = false,
-- "treesittercontex", treesittercontex = false,
"codeium", codeium = true,
"colorizer", colorizer = true,
"dap", dap = true,
"deviconcolor", deviconcolor = true,
"illuminate", illuminate = true,
"indentscupe", indentscupe = true,
"navic", navic = true,
"nvimmenu", nvimmenu = true,
"rainbowdelimiters", rainbowdelimiters = true,
"scrollview", scrollview = true,
"smart-split", smartsplit = true,
"verticalcolumn", verticalcolumn = true,
"visualmulti", visualmulti = true,
"yanky", yanky = true,
"zenmode", zenmode = true,
} }
-- activate config themes -- activate config themes
pcode.themes = { pcode.themes = {