From 377f4fe3096006520fa06d45e6a9077957a98bcc Mon Sep 17 00:00:00 2001 From: Asep Komarudin <68836805+pojokcodeid@users.noreply.github.com> Date: Mon, 6 Mar 2023 05:30:43 +0700 Subject: [PATCH] Updated 6. Configurasi (markdown) --- 6.-Configurasi.md | 154 ++++++++++++++++++++++++++++++---------------- 1 file changed, 101 insertions(+), 53 deletions(-) diff --git a/6.-Configurasi.md b/6.-Configurasi.md index 190b787..a5f5178 100644 --- a/6.-Configurasi.md +++ b/6.-Configurasi.md @@ -177,8 +177,9 @@ M.dashboard = { ``` - Link Generate Dasboard https://patorjk.com/software/taag/ -# Custom Colorschema -- cari file lua/custom/default , pilih colorscheme sesuai keinginan + +# Custom User Config +- cari file lua/custom/default ```lua -- custom colorscheme -- colorscheme ready : @@ -195,10 +196,6 @@ M.dashboard = { -- dracula -- nightfox, dayfox, dawnfox, duskfox, nordfox, terafox, carbonfox vim.g.pcode_colorscheme = "gruvbox-baby" -``` -# Custom Treansparent Background -- Cari file lua/custom/default.lua -```lua -- custom transparent mode -- only support -- gruvbox-baby, @@ -212,55 +209,106 @@ vim.g.pcode_colorscheme = "gruvbox-baby" -- nightfox -- 0 =off 1= on vim.g.pcode_transparent_mode = 0 -``` -# Custom Null-ls -- cari file lua/custom/default.lua -- tambahkan pada bagian berikut -```lua -local m = { - sources = { - formatting.stylua, -- tambahkan di bawah sini - diagnostics.flake8, -- tambahkan di bawah sini - }, +-- 0 disable progress +-- 1 lualine lsp progress +-- 2 fidget progress +vim.g.pcode_progress = 2 +-- 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 = false +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 } -``` -- Untuk Acuan Silahkan Kunjungi :
-https://github.com/jose-elias-alvarez/null-ls.nvim/blob/main/doc/BUILTINS.md -# Register LSP -- Cari file lua/custom/register_lsp.lua -- ini dilakukan jika LSP tidak terbaca -```lua -local m = { - lspreg = { - "yamlls", - "jdtls", - "intelephense", - "marksman", - "csharp_ls", - "clangd", - "dartls", - "kotlin_language_server", - -- tambahkan di bawah sini setelah melakukan :masoninstall - }, +-- untuk referesi support language kunjungi link dibawah +-- https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md +vim.g.pcode_register_lsp = { + "yamlls", + "intelephense", + "marksman", + "csharp_ls", + "clangd", + "dartls", + "kotlin_language_server", + "gopls", + -- tambahkan di bawah sini setelah melakukan :masoninstall } -``` -- untuk acuan silahkan cek :
-https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md -# Whichkey -- cari file lua/custom/whichkey.lua --- file ini digunakan untuk registrasi key mapping -```lua -["k"] = { - name = "Example", - k = { 'lua print("Testing")', "Example" }, -}, -``` -# Format On Save -- cari file lua/custom/format_onsave.lua -- lakukan enable atau disable -```lua -local M = { - disable = 0, -- 0 ( format jalan) 1 (fromat off) +vim.g.pcode_unregister_lsp = { + "jdtls", -- tambahkan di bawah ini +} + +-- https://github.com/jose-elias-alvarez/null-ls.nvim/blob/main/doc/BUILTINS.md +local formatting = {} +local diagnostics = {} +vim.g.pcode_null_ls_sources = { + formatting.stylua, -- tambahkan di bawah sini + diagnostics.flake8, -- tambahkan di bawah sini +} + +-- https://github.com/folke/which-key.nvim +vim.g.pcode_whichkey = { + -- contoh penambahan + -- ["k"] = { + -- name = "Example", + -- k = { 'lua print("Testing")', "Example" }, + -- }, + ["r"] = { + name = "Run", + j = { "Jaq float", "Run With Jaq" }, + }, + ["o"] = { "SymbolsOutline", "Symbol Outline" }, +} + +-- https://github.com/CRAG666/code_runner.nvim +vim.g.pcode_coderunner = { + java = "cd $dir && javac $fileName && java $fileNameWithoutExt", + python = "python3 -u", + typescript = "deno run", + rust = "cd $dir && rustc $fileName && $dir/$fileNameWithoutExt", + -- cpp="gcc $fileName -lstdc++ -o $fileNameWithoutExt && $fileNameWithoutExt" + cpp = "g++ $fileName -o $fileNameWithoutExt && $dir/$fileNameWithoutExt", + scss = "sass $dir/$fileName $dir/$fileNameWithoutExt.css", + javascript = "node $dir/$fileName", + go = "go run $fileName", } ``` # Custom Autocommand