Updated 6. Configurasi (markdown)

Asep Komarudin 2023-03-06 05:30:43 +07:00
parent 5444278296
commit 377f4fe309

@ -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 : <br>
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 : <br>
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 = { '<cmd>lua print("Testing")<cr>', "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 = { '<cmd>lua print("Testing")<cr>', "Example" },
-- },
["r"] = {
name = "Run",
j = { "<cmd>Jaq float<CR>", "Run With Jaq" },
},
["o"] = { "<cmd>SymbolsOutline<cr>", "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