mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-21 08:35:48 +02:00
159 lines
4.6 KiB
Lua
159 lines
4.6 KiB
Lua
-- custom colorscheme
|
|
-- colorscheme ready :
|
|
-- tokyonight, tokyonight-night, tokyonight-storm, tokyonight-day, tokyonight-moon
|
|
-- gruvbox-baby (default)
|
|
-- sonokai, sonokai_atlantis,
|
|
-- sonokai_andromeda,sonokai_shusia,sonokai_maia,sonokai_espresso
|
|
-- material, material_deepocean, material_palenight, material_lighter, material_darker
|
|
-- onedark, onedark_darker, onedark_cool, onedark_deep,onedark_warm,
|
|
-- onedark_warmer, onedark_light
|
|
-- lunar
|
|
-- nord
|
|
-- catppuccin, catppuccin-latte, catppuccin-frappe, catppuccin-macchiato, catppuccin-mocha
|
|
-- dracula
|
|
-- nightfox, dayfox, dawnfox, duskfox, nordfox, terafox, carbonfox
|
|
vim.g.pcode_colorscheme = "tokyonight"
|
|
|
|
-- custom transparent mode
|
|
-- only support
|
|
-- gruvbox-baby,
|
|
-- tokyonight,
|
|
-- sonokai,
|
|
-- material
|
|
-- onedark
|
|
-- catppuccin
|
|
-- nord
|
|
-- dracula
|
|
-- nightfox
|
|
-- 0 =off 1= on
|
|
vim.g.pcode_transparent_mode = 1
|
|
vim.g.pcode_clear_lualine = 0
|
|
-- 0 disable progress
|
|
-- 1 lualine lsp progress
|
|
-- 2 fidget progress
|
|
vim.g.pcode_progress = 1
|
|
|
|
-- style
|
|
-- 0 = default
|
|
-- 1 = { left = "", right = "" },
|
|
-- 2 = { left = " ", right = " " },
|
|
-- 3 = { left = "", right = "" },
|
|
vim.g.pcode_lualine_style = 0
|
|
|
|
-- style status icon
|
|
-- 0 = default
|
|
-- 1 = vim icon " "
|
|
-- 2 = vim icon " "
|
|
vim.g.pcode_status_icon = 0
|
|
|
|
-- start custom lualine style
|
|
-- contoh style
|
|
-- {
|
|
-- { left = "│", right = "│" },
|
|
-- { left = " ", right = " " },
|
|
-- },
|
|
-- {
|
|
-- { left = " ", right = " " },
|
|
-- { left = " ", right = "" },
|
|
-- },
|
|
-- {
|
|
-- { left = " ", right = " " },
|
|
-- { left = "", right = "" },
|
|
-- },
|
|
-- {
|
|
-- { left = "", right = "" },
|
|
-- { left = "", right = "" },
|
|
-- },
|
|
-- {
|
|
-- { left = " ", right = " " },
|
|
-- { left = "", right = "" },
|
|
-- },
|
|
-- }
|
|
vim.g.pcode_custom_lualine = true
|
|
-- vim.g.pcode_component_separators = { left = " ", right = " " }
|
|
-- vim.g.pcode_section_separators = { left = "", right = "" }
|
|
vim.g.pcode_component_separators = { left = " ", right = " " }
|
|
vim.g.pcode_section_separators = { left = "", right = "" }
|
|
-- vim.g.pcode_component_separators = { left = "│", right = "│" }
|
|
-- vim.g.pcode_component_separators = { left = "", right = "" }
|
|
-- vim.g.pcode_section_separators = { left = "", right = "" }
|
|
|
|
-- 0 ( format jalan) 1 (fromat off)
|
|
vim.g.pcode_format_on_save = 1
|
|
|
|
-- ini hanya untuk lsp yg tidak support masson
|
|
-- untuk referesi support language kunjungi link dibawah
|
|
-- https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md
|
|
vim.g.pcode_lsp_installer = {
|
|
-- "yamlls",
|
|
-- tambahkan di bawah sini setelah melakukan :masoninstall
|
|
}
|
|
|
|
-- use for lsp diagnostics virtual text
|
|
vim.g.pcode_lsp_virtualtext = true
|
|
|
|
-- use for lsp ghost text config
|
|
vim.g.pcode_lspghost_text = false
|
|
|
|
-- untuk referesi support language kunjungi link dibawah
|
|
-- https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md
|
|
vim.g.pcode_mason_ensure_installed = { -- sebelumnya register_lsp
|
|
-- "yamlls",
|
|
-- "intelephense",
|
|
-- "marksman",
|
|
-- "csharp_ls",
|
|
-- "clangd",
|
|
-- "dartls",
|
|
-- "kotlin_language_server",
|
|
-- tambahkan di bawah sini setelah melakukan :masoninstall
|
|
}
|
|
vim.g.pcode_unregister_lsp = {
|
|
"jdtls", -- tambahkan di bawah ini
|
|
}
|
|
|
|
-- https://github.com/jose-elias-alvarez/null-ls.nvim/blob/main/doc/BUILTINS.md
|
|
vim.g.pcode_null_ls_ensure_installed = {
|
|
"stylua",
|
|
}
|
|
|
|
-- dap instal hanya support linux dan mac
|
|
-- https://github.com/jay-babu/mason-nvim-dap.nvim/blob/main/lua/mason-nvim-dap/mappings/source.lua
|
|
-- atau gunakan :MasonInstall
|
|
vim.g.pcode_dap_ensure_installed = {
|
|
-- "python",
|
|
}
|
|
|
|
-- https://github.com/folke/which-key.nvim
|
|
-- vim.g.pcode_whichkey = {
|
|
-- contoh penambahan
|
|
-- ["k"] = {
|
|
-- name = "Example",
|
|
-- k = { '<cmd>lua print("Testing")<cr>', "Example" },
|
|
-- },
|
|
-- ["r"] = {
|
|
-- name = "Run",
|
|
-- j = { "<cmd>Jaq float<CR>", "Run With Jaq" },
|
|
-- },
|
|
-- ["o"] = { "<cmd>SymbolsOutline<cr>", "Symbol Outline" },
|
|
-- ["m"] = {
|
|
-- name = "Minimap",
|
|
-- c = { "<cmd>lua require('mini.map').close()<cr>", "Minimap Close" },
|
|
-- o = { "<cmd>lua require('mini.map').open()<cr>", "Minimap Open" },
|
|
-- },
|
|
-- ["e"] = { "<cmd>NvimTreeToggle<CR>", "Explorer" },
|
|
-- }
|
|
|
|
-- https://github.com/CRAG666/code_runner.nvim
|
|
-- ready default java, python, typescript, javascript, rust, cpp, scss
|
|
vim.g.pcode_coderunner = {
|
|
go = "go run $fileName",
|
|
html = "live-server $dir/$fileName",
|
|
}
|
|
|
|
-- config for optional cmp
|
|
vim.g.pcode_cmprg = false --https://github.com/lukas-reineke/cmp-rg
|
|
vim.g.pcode_cmpcalc = false --https://github.com/hrsh7th/cmp-calc
|
|
vim.g.pcode_cmptag = false --https://github.com/quangnguyen30192/cmp-nvim-tags
|
|
|
|
-- load nvim-tree or not
|
|
vim.g.pcode_loadnvimtree_lazy = true
|