mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-21 08:35:48 +02:00
config v1
This commit is contained in:
parent
c651a8ca42
commit
cc7c63dc46
18 changed files with 186 additions and 374 deletions
|
@ -45,7 +45,7 @@
|
|||
"promise-async": { "branch": "main", "commit": "38a4575da9497326badd3995e768b4ccf0bb153e" },
|
||||
"smart-splits.nvim": { "branch": "master", "commit": "f6fcb79527872e9330c554915af2ca511c388390" },
|
||||
"statuscol.nvim": { "branch": "main", "commit": "d954893262a57a92e46edd87de67e2b3fe72305e" },
|
||||
"telescope.nvim": { "branch": "master", "commit": "4d4ade7f2b8f403e8816ca50c05ed16e259b21fb" },
|
||||
"telescope.nvim": { "branch": "master", "commit": "5a701e99906961218b55d7ad6c2a998f066c6fe0" },
|
||||
"toggleterm.nvim": { "branch": "main", "commit": "193786e0371e3286d3bc9aa0079da1cd41beaa62" },
|
||||
"vim-illuminate": { "branch": "master", "commit": "305bf07b919ac526deb5193280379e2f8b599926" },
|
||||
"vim-startuptime": { "branch": "master", "commit": "97a88e688482a09c3c4b777d07b509b328a5ec29" },
|
||||
|
|
|
@ -5,8 +5,6 @@ if not vim.loop.fs_stat(lazypath) then
|
|||
vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable",
|
||||
lazypath })
|
||||
end
|
||||
|
||||
local icons = require("user.icons").ui
|
||||
vim.opt.rtp:prepend(vim.env.LAZY or lazypath)
|
||||
vim.g.mapleader = " "
|
||||
vim.g.maplocalleader = " "
|
||||
|
@ -26,10 +24,10 @@ require("lazy").setup({
|
|||
throttle = 40,
|
||||
custom_keys = { ["<localleader>l"] = false },
|
||||
icons = {
|
||||
ft = icons.ft,
|
||||
lazy = icons.Bell .. " ",
|
||||
loaded = icons.CheckCircle,
|
||||
not_loaded = icons.not_loaded,
|
||||
ft = "",
|
||||
lazy = " ",
|
||||
loaded = "",
|
||||
not_loaded = "",
|
||||
},
|
||||
},
|
||||
change_detection = { enabled = false, notify = false },
|
||||
|
|
|
@ -18,18 +18,12 @@ if vim.g.neovide then
|
|||
|
||||
-- config for transparent
|
||||
--vim.g.neovide_transparency = 0.8
|
||||
vim.g.neovide_hide_mouse_when_typing = false
|
||||
vim.g.neovide_transparency = 1
|
||||
vim.g.neovide_underline_automatic_scaling = false
|
||||
vim.g.neovide_refresh_rate_idle = 5
|
||||
vim.g.neovide_no_idle = true
|
||||
vim.g.neovide_remember_window_size = true
|
||||
vim.g.neovide_touch_drag_timeout = 0.17
|
||||
vim.g.neovide_show_border = false
|
||||
vim.g.neovide_theme = "auto"
|
||||
vim.g.neovide_confirm_quit = true
|
||||
vim.g.neovide_remember_window_size = true
|
||||
vim.g.neovide_cursor_smooth_blink = true
|
||||
-- animation config
|
||||
--vim.g.neovide_scroll_animation_length = 0.3
|
||||
--vim.g.neovide_cursor_animation_length = 0.13
|
||||
|
|
|
@ -13,7 +13,7 @@ return {
|
|||
-- get folder name from current directory
|
||||
local _get_folder_name = function()
|
||||
local str = vim.fn.fnamemodify(vim.fn.getcwd(), ":t")
|
||||
return " " .. icons.ui.ProjekFolder .. " " .. str:lower():gsub("^%l", string.upper) .. " "
|
||||
return " " .. str:lower():gsub("^%l", string.upper) .. " "
|
||||
end
|
||||
|
||||
local function diagnostics_indicator(num, _, diagnostics, _)
|
||||
|
@ -53,7 +53,7 @@ return {
|
|||
middle_mouse_command = nil,
|
||||
|
||||
indicator_icon = nil,
|
||||
indicator = { style = "icon", icon = icons.ui.BoldLineLeft },
|
||||
indicator = { style = "icon", icon = "▎" },
|
||||
buffer_close_icon = icons.ui.Close,
|
||||
modified_icon = icons.ui.Circle,
|
||||
close_icon = icons.ui.BoldClose,
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
-- initial gui app
|
||||
local is_neovide = false
|
||||
local use_noice = true
|
||||
-- if vim.g.neovide then
|
||||
-- is_neovide = true
|
||||
-- use_noice = false
|
||||
-- end
|
||||
if vim.g.neovide then
|
||||
is_neovide = true
|
||||
use_noice = false
|
||||
end
|
||||
vim.opt.lazyredraw = is_neovide
|
||||
return {
|
||||
{ "gelguy/wilder.nvim", enabled = not use_noice },
|
||||
|
|
|
@ -131,9 +131,9 @@ return {
|
|||
|
||||
local get_branch = function()
|
||||
if vim.b.gitsigns_head ~= nil then
|
||||
return icons.git.Branch2 .. " " .. vim.b.gitsigns_head
|
||||
return " " .. vim.b.gitsigns_head
|
||||
else
|
||||
return icons.git.Branch2 .. vim.fn.fnamemodify("", ":t")
|
||||
return "" .. vim.fn.fnamemodify("", ":t")
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -205,22 +205,17 @@ return {
|
|||
|
||||
-- Memeriksa apakah baris awal dari fold adalah komentar
|
||||
local start_line = vim.api.nvim_buf_get_lines(0, lnum - 1, lnum, false)[1]
|
||||
-- cari comentar dengan awalan /* untuk generaal comment
|
||||
if start_line:find("^%s*%/%*") then
|
||||
if start_line:find("^%s*%/%*") then -- Regex untuk mengecek komentar javascript
|
||||
is_comment = true
|
||||
-- cara commentar dengan awalan <!-- untuk html
|
||||
elseif start_line:find("^%s*<!--") then
|
||||
is_comment = true
|
||||
-- cari comentar dengan awalan -- untuk lua
|
||||
elseif start_line:find("^%s*%-%-") then
|
||||
is_comment = true
|
||||
end
|
||||
-- cek fold yang berawalan import
|
||||
if start_line:find("^%s*import") then
|
||||
is_import = true
|
||||
end
|
||||
-- cek fold dengan akhiran {
|
||||
if start_line:find("%s*{%s*$") then
|
||||
if start_line:find("%s*{") then
|
||||
is_bracket = true
|
||||
end
|
||||
if is_comment then
|
||||
|
|
|
@ -2,7 +2,6 @@ local cmprg = false
|
|||
local cmpcalc = false
|
||||
local cmptag = false
|
||||
local lspghost_text = false
|
||||
local icons = require("user.icons").ui
|
||||
local data_exists, custom_cmp = pcall(require, "core.config")
|
||||
if data_exists then
|
||||
cmprg = custom_cmp.cmprg
|
||||
|
@ -105,12 +104,12 @@ return {
|
|||
-- documentation = cmp.config.window.bordered(),
|
||||
-- remove border window from cmp
|
||||
completion = {
|
||||
border = icons.Border,
|
||||
border = { "╭", "─", "╮", "│", "╯", "─", "╰", "│" },
|
||||
winhighlight = "Normal:bg,FloatBorder:BorderBG,CursorLine:PmenuSel,Search:None",
|
||||
scrollbar = true,
|
||||
},
|
||||
documentation = {
|
||||
border = icons.Border,
|
||||
border = { "╭", "─", "╮", "│", "╯", "─", "╰", "│" },
|
||||
winhighlight = "Normal:bg,FloatBorder:BorderBG,CursorLine:PmenuSel,Search:None",
|
||||
scrollbar = true,
|
||||
},
|
||||
|
|
|
@ -3,7 +3,7 @@ return {
|
|||
{
|
||||
"gelguy/wilder.nvim",
|
||||
lazy = true,
|
||||
event = "VeryLazy",
|
||||
event = "BufWinEnter",
|
||||
config = function()
|
||||
local wilder = require("wilder")
|
||||
wilder.setup({ modes = { ":", "/", "?" } })
|
||||
|
|
|
@ -49,7 +49,7 @@ bufferline.setup({
|
|||
middle_mouse_command = nil,
|
||||
|
||||
indicator_icon = nil,
|
||||
indicator = { style = "icon", icon = icons.ui.BoldLineLeft },
|
||||
indicator = { style = "icon", icon = "▎" },
|
||||
buffer_close_icon = icons.ui.Close,
|
||||
modified_icon = icons.ui.Circle,
|
||||
close_icon = icons.ui.BoldClose,
|
||||
|
|
|
@ -25,14 +25,14 @@ end
|
|||
local dashboard = require("alpha.themes.dashboard")
|
||||
dashboard.section.header.val = board
|
||||
dashboard.section.buttons.val = {
|
||||
dashboard.button("f", " Find file", ":Telescope find_files <CR>"),
|
||||
dashboard.button("f", " Find file", ":Telescope find_files <CR>"),
|
||||
dashboard.button("e", " New file", ":ene <BAR> startinsert <CR>"),
|
||||
dashboard.button("p", " Find project", ":Telescope projects <CR>"),
|
||||
dashboard.button("r", " Recently used files", ":Telescope oldfiles <CR>"),
|
||||
dashboard.button("t", " Find text", ":Telescope live_grep <CR>"),
|
||||
dashboard.button("p", " Find project", ":Telescope projects <CR>"),
|
||||
dashboard.button("r", " Recently used files", ":Telescope oldfiles <CR>"),
|
||||
dashboard.button("t", " Find text", ":Telescope live_grep <CR>"),
|
||||
dashboard.button("c", " Configuration", ":e $MYVIMRC <CR>"),
|
||||
dashboard.button("z", " Lazy", ":Lazy<CR>"),
|
||||
dashboard.button("q", " Quit Neovim", ":qa<CR>"),
|
||||
dashboard.button("z", "鈴 Lazy", ":Lazy<CR>"),
|
||||
dashboard.button("q", " Quit Neovim", ":qa<CR>"),
|
||||
}
|
||||
|
||||
dashboard.section.footer.opts.hl = "Type"
|
||||
|
|
|
@ -1,70 +1,48 @@
|
|||
local status_ok, gitsigns = pcall(require, "gitsigns")
|
||||
if not status_ok then
|
||||
return
|
||||
return
|
||||
end
|
||||
local icons = require("user.icons")
|
||||
|
||||
gitsigns.setup({
|
||||
signs = {
|
||||
add = {
|
||||
hl = "GitSignsAdd",
|
||||
text = icons.ui.BoldLineLeft,
|
||||
numhl = "GitSignsAddNr",
|
||||
linehl = "GitSignsAddLn",
|
||||
},
|
||||
change = {
|
||||
hl = "GitSignsChange",
|
||||
text = icons.ui.BoldLineLeft,
|
||||
numhl = "GitSignsChangeNr",
|
||||
linehl = "GitSignsChangeLn",
|
||||
},
|
||||
delete = {
|
||||
hl = "GitSignsDelete",
|
||||
text = icons.ui.Triangle,
|
||||
numhl = "GitSignsDeleteNr",
|
||||
linehl = "GitSignsDeleteLn",
|
||||
},
|
||||
topdelete = {
|
||||
hl = "GitSignsDelete",
|
||||
text = icons.ui.Triangle,
|
||||
numhl = "GitSignsDeleteNr",
|
||||
linehl = "GitSignsDeleteLn",
|
||||
},
|
||||
changedelete = {
|
||||
hl = "GitSignsChange",
|
||||
text = icons.ui.BoldLineLeft,
|
||||
numhl = "GitSignsChangeNr",
|
||||
linehl = "GitSignsChangeLn",
|
||||
},
|
||||
},
|
||||
signcolumn = true,
|
||||
numhl = false,
|
||||
linehl = false,
|
||||
word_diff = false,
|
||||
watch_gitdir = {
|
||||
interval = 1000,
|
||||
follow_files = true,
|
||||
},
|
||||
attach_to_untracked = true,
|
||||
current_line_blame = false, -- Toggle with `:Gitsigns toggle_current_line_blame`
|
||||
current_line_blame_opts = {
|
||||
virt_text = true,
|
||||
virt_text_pos = "eol", -- 'eol' | 'overlay' | 'right_align'
|
||||
delay = 1000,
|
||||
ignore_whitespace = false,
|
||||
},
|
||||
current_line_blame_formatter = "<author>, <author_time:%Y-%m-%d> - <summary>",
|
||||
sign_priority = 6,
|
||||
status_formatter = nil, -- Use default
|
||||
update_debounce = 200,
|
||||
max_file_length = 40000,
|
||||
preview_config = {
|
||||
-- Options passed to nvim_open_win
|
||||
border = "rounded",
|
||||
style = "minimal",
|
||||
relative = "cursor",
|
||||
row = 0,
|
||||
col = 1,
|
||||
},
|
||||
yadm = { enable = false },
|
||||
})
|
||||
gitsigns.setup {
|
||||
signs = {
|
||||
add = { hl = "GitSignsAdd", text = "▎", numhl = "GitSignsAddNr", linehl = "GitSignsAddLn" },
|
||||
change = { hl = "GitSignsChange", text = "▎", numhl = "GitSignsChangeNr", linehl = "GitSignsChangeLn" },
|
||||
delete = { hl = "GitSignsDelete", text = "契", numhl = "GitSignsDeleteNr", linehl = "GitSignsDeleteLn" },
|
||||
topdelete = { hl = "GitSignsDelete", text = "契", numhl = "GitSignsDeleteNr", linehl = "GitSignsDeleteLn" },
|
||||
changedelete = { hl = "GitSignsChange", text = "▎", numhl = "GitSignsChangeNr", linehl = "GitSignsChangeLn" },
|
||||
},
|
||||
signcolumn = true, -- Toggle with `:Gitsigns toggle_signs`
|
||||
numhl = false, -- Toggle with `:Gitsigns toggle_numhl`
|
||||
linehl = false, -- Toggle with `:Gitsigns toggle_linehl`
|
||||
word_diff = false, -- Toggle with `:Gitsigns toggle_word_diff`
|
||||
watch_gitdir = {
|
||||
interval = 1000,
|
||||
follow_files = true,
|
||||
},
|
||||
attach_to_untracked = true,
|
||||
current_line_blame = false, -- Toggle with `:Gitsigns toggle_current_line_blame`
|
||||
current_line_blame_opts = {
|
||||
virt_text = true,
|
||||
virt_text_pos = "eol", -- 'eol' | 'overlay' | 'right_align'
|
||||
delay = 1000,
|
||||
ignore_whitespace = false,
|
||||
},
|
||||
current_line_blame_formatter_opts = {
|
||||
relative_time = false,
|
||||
},
|
||||
sign_priority = 6,
|
||||
update_debounce = 100,
|
||||
status_formatter = nil, -- Use default
|
||||
max_file_length = 40000,
|
||||
preview_config = {
|
||||
-- Options passed to nvim_open_win
|
||||
border = "single",
|
||||
style = "minimal",
|
||||
relative = "cursor",
|
||||
row = 0,
|
||||
col = 1,
|
||||
},
|
||||
yadm = {
|
||||
enable = false,
|
||||
},
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@ return {
|
|||
Event = "",
|
||||
Field = "",
|
||||
File = "",
|
||||
Folder = "",
|
||||
Folder = "",
|
||||
Function = "",
|
||||
Interface = "",
|
||||
Key = "",
|
||||
|
@ -19,7 +19,7 @@ return {
|
|||
Method = "",
|
||||
Module = "",
|
||||
Namespace = "",
|
||||
Null = "",
|
||||
Null = "ﳠ",
|
||||
Number = "",
|
||||
Object = "",
|
||||
Operator = "",
|
||||
|
@ -40,8 +40,7 @@ return {
|
|||
LineModified = "",
|
||||
LineRemoved = "",
|
||||
FileDeleted = "",
|
||||
-- FileIgnored = "◌",
|
||||
FileIgnored = "",
|
||||
FileIgnored = "◌",
|
||||
FileRenamed = "",
|
||||
FileStaged = "S",
|
||||
FileUnmerged = "",
|
||||
|
@ -51,7 +50,6 @@ return {
|
|||
Repo = "",
|
||||
Octoface = "",
|
||||
Branch = "",
|
||||
Branch2 = "",
|
||||
},
|
||||
ui = {
|
||||
ArrowCircleDown = "",
|
||||
|
@ -71,17 +69,18 @@ return {
|
|||
Bug = "",
|
||||
Stacks = "",
|
||||
Scopes = "",
|
||||
Watches = "",
|
||||
Watches = "",
|
||||
DebugConsole = "",
|
||||
Calendar = "",
|
||||
Check = "",
|
||||
ChevronRight = "",
|
||||
ChevronShortDown = "",
|
||||
ChevronShortLeft = "",
|
||||
ChevronShortRight = "",
|
||||
ChevronShortUp = "",
|
||||
Circle = " ",
|
||||
Close = "",
|
||||
ChevronRight = ">",
|
||||
ChevronShortDown = "",
|
||||
ChevronShortLeft = "",
|
||||
ChevronShortRight = "",
|
||||
ChevronShortUp = "",
|
||||
Circle = "",
|
||||
Dot = "",
|
||||
Close = "",
|
||||
CloudDownload = "",
|
||||
Code = "",
|
||||
Comment = "",
|
||||
|
@ -97,10 +96,10 @@ return {
|
|||
File = "",
|
||||
FileSymlink = "",
|
||||
Files = "",
|
||||
FindFile = "",
|
||||
FindText = "",
|
||||
FindFile = "",
|
||||
FindText = "",
|
||||
Fire = "",
|
||||
-- Folder = "",
|
||||
-- Folder = "",
|
||||
-- FolderOpen = "",
|
||||
Folder = "",
|
||||
FolderOpen = "",
|
||||
|
@ -116,32 +115,24 @@ return {
|
|||
NewFile = "",
|
||||
Note = "",
|
||||
Package = "",
|
||||
Pencil = "",
|
||||
Pencil = "",
|
||||
Plus = "",
|
||||
Project = "",
|
||||
Search = "",
|
||||
SignIn = "",
|
||||
SignOut = "",
|
||||
Tab = "",
|
||||
Tab = "",
|
||||
Table = "",
|
||||
Target = "",
|
||||
Target = "",
|
||||
Telescope = "",
|
||||
Text = "",
|
||||
Tree = "",
|
||||
Triangle = "",
|
||||
Triangle = "契",
|
||||
TriangleShortArrowDown = "",
|
||||
TriangleShortArrowLeft = "",
|
||||
TriangleShortArrowRight = "",
|
||||
TriangleShortArrowUp = "",
|
||||
Neovim = "",
|
||||
BlankCircle = " ",
|
||||
CheckCircle = " ",
|
||||
DotCircle = " ",
|
||||
Border = { "╭", "─", "╮", "│", "╯", "─", "╰", "│" },
|
||||
ProjekFolder = "",
|
||||
Bell = "",
|
||||
ft = "",
|
||||
not_loaded = "",
|
||||
},
|
||||
diagnostics = {
|
||||
BoldError = "",
|
||||
|
@ -153,12 +144,12 @@ return {
|
|||
BoldQuestion = "",
|
||||
Question = "",
|
||||
BoldHint = "",
|
||||
Hint = "",
|
||||
Hint = "",
|
||||
Debug = "",
|
||||
Trace = "✎",
|
||||
},
|
||||
misc = {
|
||||
Robot = "",
|
||||
Robot = "ﮧ",
|
||||
Squirrel = "",
|
||||
Tag = "",
|
||||
Watch = "",
|
||||
|
|
|
@ -26,19 +26,17 @@ if data_ok then
|
|||
end
|
||||
end
|
||||
|
||||
local icons = require("user.icons").ui
|
||||
|
||||
local settings = {
|
||||
ui = {
|
||||
-- border = "none",
|
||||
border = icons.Border,
|
||||
border = { "╭", "─", "╮", "│", "╯", "─", "╰", "│" },
|
||||
icons = {
|
||||
-- package_installed = "◍",
|
||||
-- package_pending = "◍",
|
||||
-- package_uninstalled = "◍",
|
||||
package_pending = icons.DotCircle,
|
||||
package_installed = icons.CheckCircle,
|
||||
package_uninstalled = icons.BlankCircle,
|
||||
package_pending = " ",
|
||||
package_installed = " ",
|
||||
package_uninstalled = " ",
|
||||
},
|
||||
keymaps = {
|
||||
-- Keymap to expand a server in the UI
|
||||
|
|
|
@ -10,131 +10,15 @@ end
|
|||
|
||||
local icons = require("user.icons")
|
||||
nvim_tree.setup({
|
||||
auto_reload_on_write = false,
|
||||
disable_netrw = false,
|
||||
hijack_cursor = false,
|
||||
hijack_netrw = true,
|
||||
hijack_unnamed_buffer_when_opening = false,
|
||||
sort_by = "name",
|
||||
root_dirs = {},
|
||||
prefer_startup_root = false,
|
||||
sync_root_with_cwd = true,
|
||||
reload_on_bufenter = false,
|
||||
respect_buf_cwd = false,
|
||||
on_attach = "default",
|
||||
select_prompts = false,
|
||||
view = {
|
||||
adaptive_size = false,
|
||||
centralize_selection = true,
|
||||
width = 30,
|
||||
side = "left",
|
||||
preserve_window_proportions = false,
|
||||
number = false,
|
||||
relativenumber = false,
|
||||
signcolumn = "yes",
|
||||
float = {
|
||||
enable = false,
|
||||
quit_on_focus_loss = true,
|
||||
open_win_config = {
|
||||
relative = "editor",
|
||||
border = "rounded",
|
||||
width = 30,
|
||||
height = 30,
|
||||
row = 1,
|
||||
col = 1,
|
||||
},
|
||||
},
|
||||
},
|
||||
renderer = {
|
||||
add_trailing = false,
|
||||
group_empty = false,
|
||||
highlight_git = true,
|
||||
full_name = false,
|
||||
highlight_opened_files = "none",
|
||||
-- root_folder_label = ":t",
|
||||
root_folder_label = false,
|
||||
indent_width = 2,
|
||||
indent_markers = {
|
||||
enable = false,
|
||||
inline_arrows = true,
|
||||
icons = {
|
||||
corner = "└",
|
||||
edge = "│",
|
||||
item = "│",
|
||||
none = " ",
|
||||
},
|
||||
},
|
||||
icons = {
|
||||
webdev_colors = true,
|
||||
git_placement = "before",
|
||||
padding = " ",
|
||||
symlink_arrow = " ➛ ",
|
||||
show = {
|
||||
file = true,
|
||||
folder = true,
|
||||
folder_arrow = true,
|
||||
git = true,
|
||||
},
|
||||
glyphs = {
|
||||
default = icons.ui.Text,
|
||||
symlink = icons.ui.FileSymlink,
|
||||
bookmark = icons.ui.BookMark,
|
||||
folder = {
|
||||
arrow_closed = icons.ui.TriangleShortArrowRight,
|
||||
arrow_open = icons.ui.TriangleShortArrowDown,
|
||||
default = icons.ui.Folder,
|
||||
open = icons.ui.FolderOpen,
|
||||
empty = icons.ui.EmptyFolder,
|
||||
empty_open = icons.ui.EmptyFolderOpen,
|
||||
symlink = icons.ui.FolderSymlink,
|
||||
symlink_open = icons.ui.FolderOpen,
|
||||
},
|
||||
git = {
|
||||
unstaged = icons.git.FileUnstaged,
|
||||
staged = icons.git.FileStaged,
|
||||
unmerged = icons.git.FileUnmerged,
|
||||
renamed = icons.git.FileRenamed,
|
||||
untracked = icons.git.FileUntracked,
|
||||
deleted = icons.git.FileDeleted,
|
||||
ignored = icons.git.FileIgnored,
|
||||
},
|
||||
},
|
||||
},
|
||||
special_files = { "Cargo.toml", "Makefile", "README.md", "readme.md" },
|
||||
symlink_destination = true,
|
||||
},
|
||||
hijack_directories = {
|
||||
enable = false,
|
||||
auto_open = true,
|
||||
},
|
||||
update_focused_file = {
|
||||
enable = true,
|
||||
debounce_delay = 15,
|
||||
update_root = true,
|
||||
ignore_list = {},
|
||||
},
|
||||
diagnostics = {
|
||||
enable = true,
|
||||
show_on_dirs = false,
|
||||
show_on_open_dirs = true,
|
||||
debounce_delay = 50,
|
||||
severity = {
|
||||
min = vim.diagnostic.severity.HINT,
|
||||
max = vim.diagnostic.severity.ERROR,
|
||||
},
|
||||
icons = {
|
||||
hint = icons.diagnostics.BoldHint,
|
||||
info = icons.diagnostics.BoldInformation,
|
||||
warning = icons.diagnostics.BoldWarning,
|
||||
error = icons.diagnostics.BoldError,
|
||||
},
|
||||
},
|
||||
filters = {
|
||||
dotfiles = false,
|
||||
git_clean = false,
|
||||
no_buffer = false,
|
||||
custom = { "node_modules", "\\.cache", "\\.git" },
|
||||
exclude = {},
|
||||
exclude = {
|
||||
".gitignore",
|
||||
".prettierignore",
|
||||
},
|
||||
},
|
||||
filesystem_watchers = {
|
||||
enable = true,
|
||||
|
@ -142,8 +26,8 @@ nvim_tree.setup({
|
|||
ignore_dirs = {},
|
||||
},
|
||||
git = {
|
||||
enable = true,
|
||||
ignore = false,
|
||||
enable = true, -- false dulu karena muncul error
|
||||
ignore = false, -- true dulu karena muncul error
|
||||
show_on_dirs = true,
|
||||
show_on_open_dirs = true,
|
||||
timeout = 200,
|
||||
|
@ -221,4 +105,72 @@ nvim_tree.setup({
|
|||
cmd = nil,
|
||||
args = {},
|
||||
},
|
||||
renderer = {
|
||||
-- root_folder_modifier = ":t",
|
||||
root_folder_label = false,
|
||||
indent_markers = {
|
||||
enable = true,
|
||||
inline_arrows = true,
|
||||
icons = {
|
||||
corner = "└",
|
||||
edge = "│",
|
||||
item = "│",
|
||||
bottom = "─",
|
||||
none = " ",
|
||||
},
|
||||
},
|
||||
icons = {
|
||||
webdev_colors = true,
|
||||
show = {
|
||||
git = true,
|
||||
folder = true,
|
||||
file = true,
|
||||
folder_arrow = true,
|
||||
},
|
||||
glyphs = {
|
||||
default = icons.ui.Text,
|
||||
symlink = icons.ui.FileSymlink,
|
||||
folder = {
|
||||
arrow_open = icons.ui.ChevronShortDown,
|
||||
arrow_closed = icons.ui.ChevronShortRight,
|
||||
default = icons.ui.Folder,
|
||||
empty = icons.ui.EmptyFolder,
|
||||
empty_open = icons.ui.EmptyFolderOpen,
|
||||
open = icons.ui.FolderOpen,
|
||||
symlink = icons.ui.FolderSymlink,
|
||||
symlink_open = icons.ui.FolderSymlink,
|
||||
},
|
||||
git = {
|
||||
deleted = icons.git.FileDeleted,
|
||||
-- ignored = icons.git.FileIgnored,
|
||||
-- ignored = "",
|
||||
-- ignored = "",
|
||||
-- ignored = "",
|
||||
-- ignored = "",
|
||||
ignored = "",
|
||||
-- ignored = icons.git.FileUnstaged,
|
||||
renamed = icons.git.FileRenamed,
|
||||
staged = icons.git.FileStaged,
|
||||
unmerged = icons.git.FileUnmerged,
|
||||
unstaged = icons.git.FileUnstaged,
|
||||
untracked = icons.git.FileUntracked,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
diagnostics = {
|
||||
enable = true,
|
||||
show_on_dirs = true,
|
||||
icons = {
|
||||
hint = icons.diagnostics.BoldHint,
|
||||
info = icons.diagnostics.BoldInformation,
|
||||
warning = icons.diagnostics.BoldWarning,
|
||||
error = icons.diagnostics.BoldError,
|
||||
},
|
||||
},
|
||||
view = {
|
||||
width = 30,
|
||||
-- hide_root_folder = false,
|
||||
side = "left",
|
||||
},
|
||||
})
|
||||
|
|
|
@ -39,8 +39,8 @@ local options = {
|
|||
writebackup = false, -- Disable making a backup before overwriting a file
|
||||
-- minimal number of screen columns either side of cursor if wrap is `false`
|
||||
-- guifont = "monospace:h17", -- the font used in graphical neovim applications
|
||||
-- guifont = "SauceCodePro Nerd Font:h15", -- the font used in graphical neovim applications
|
||||
guifont = "Hasklug Nerd Font:h15", -- the font used in graphical neovim applications
|
||||
guifont = "SauceCodePro Nerd Font:h17", -- the font used in graphical neovim applications
|
||||
-- guifont = "Hasklug Nerd Font:h16", -- the font used in graphical neovim applications
|
||||
-- guifont = "Hack Nerd Font:h17", -- the font used in graphical neovim applications
|
||||
whichwrap = "bs<>[]hl", -- which "horizontal" keys are allowed to travel to prev/next line -- which "horizontal" keys are allowed to travel to prev/next line
|
||||
}
|
||||
|
|
|
@ -18,13 +18,13 @@ if data_exists then
|
|||
end
|
||||
startify.section.header.val = dash_model
|
||||
startify.section.top_buttons.val = {
|
||||
startify.button("f", " Find file", ":Telescope find_files <CR>"),
|
||||
startify.button("f", " Find file", ":Telescope find_files <CR>"),
|
||||
startify.button("e", " New file", ":ene <BAR> startinsert <CR>"),
|
||||
startify.button("p", " Find project", ":Telescope projects <CR>"),
|
||||
startify.button("r", " Recently used files", ":Telescope oldfiles <CR>"),
|
||||
startify.button("t", " Find text", ":Telescope live_grep <CR>"),
|
||||
startify.button("p", " Find project", ":Telescope projects <CR>"),
|
||||
startify.button("r", " Recently used files", ":Telescope oldfiles <CR>"),
|
||||
startify.button("t", " Find text", ":Telescope live_grep <CR>"),
|
||||
startify.button("c", " Configuration", ":e $MYVIMRC <CR>"),
|
||||
startify.button("z", " Lazy", ":Lazy<CR>"),
|
||||
startify.button("z", "鈴 Lazy", ":Lazy<CR>"),
|
||||
-- startify.button("q", " Quit Neovim", ":qa<CR>"),
|
||||
}
|
||||
-- disable MRU
|
||||
|
@ -37,7 +37,7 @@ startify.nvim_web_devicons.enabled = false
|
|||
-- startify.nvim_web_devicons.highlight = 'Keyword'
|
||||
--
|
||||
startify.section.bottom_buttons.val = {
|
||||
startify.button("q", " Quit NVIM", ":qa<CR>"),
|
||||
startify.button("q", " Quit NVIM", ":qa<CR>"),
|
||||
}
|
||||
|
||||
local footer_text = "Pojok Code"
|
||||
|
|
|
@ -7,18 +7,21 @@ local material_icon_ok, material_icon = pcall(require, "nvim-material-icon")
|
|||
if not material_icon_ok then
|
||||
return
|
||||
end
|
||||
|
||||
local prettier_icon = ""
|
||||
local prettier_icon = ""
|
||||
local term_program = vim.fn.getenv("TERM_PROGRAM")
|
||||
if term_program == vim.NIL then
|
||||
prettier_icon = ""
|
||||
end
|
||||
material_icon.setup({
|
||||
override = {
|
||||
["mjs"] = {
|
||||
icon = "",
|
||||
icon = "",
|
||||
color = "#f2c55c",
|
||||
cterm_color = "220",
|
||||
name = "Mjs",
|
||||
},
|
||||
["js"] = {
|
||||
icon = "",
|
||||
icon = "",
|
||||
color = "#f2c55c",
|
||||
cterm_color = "220",
|
||||
name = "javascript",
|
||||
|
@ -150,13 +153,13 @@ material_icon.setup({
|
|||
name = "jpg",
|
||||
},
|
||||
["csv"] = {
|
||||
icon = "",
|
||||
icon = "",
|
||||
color = "#57965c",
|
||||
cterm_color = "220",
|
||||
name = "csv",
|
||||
},
|
||||
["sql"] = {
|
||||
icon = "",
|
||||
icon = "",
|
||||
color = "#b589ec",
|
||||
cterm_color = "220",
|
||||
name = "sqlfile",
|
||||
|
@ -167,30 +170,6 @@ material_icon.setup({
|
|||
cterm_color = "220",
|
||||
name = "README_file",
|
||||
},
|
||||
["sh"] = {
|
||||
icon = "",
|
||||
color = "#ef510b",
|
||||
cterm_color = "220",
|
||||
name = "README_file",
|
||||
},
|
||||
["pdf"] = {
|
||||
icon = "",
|
||||
color = "#ef510b",
|
||||
cterm_color = "220",
|
||||
name = "pdffile",
|
||||
},
|
||||
["xlsx"] = {
|
||||
icon = "",
|
||||
color = "#349C42",
|
||||
cterm_color = "220",
|
||||
name = "xlsxfile",
|
||||
},
|
||||
["xls"] = {
|
||||
icon = "",
|
||||
color = "#349C42",
|
||||
cterm_color = "220",
|
||||
name = "xlsfile",
|
||||
},
|
||||
-- ["go"] = {
|
||||
-- icon = "",
|
||||
-- color = "#0FBFCF",
|
||||
|
@ -217,12 +196,6 @@ web_devicons.setup({
|
|||
cterm_color = "240",
|
||||
name = "viteconfigts",
|
||||
},
|
||||
["vite.config.js"] = {
|
||||
icon = "",
|
||||
color = "#ffab00",
|
||||
cterm_color = "240",
|
||||
name = "viteconfigjs",
|
||||
},
|
||||
[".releaserc"] = {
|
||||
icon = "",
|
||||
color = "#9C9C9C",
|
||||
|
@ -271,12 +244,6 @@ web_devicons.setup({
|
|||
cterm_color = "240",
|
||||
name = "prettierrc",
|
||||
},
|
||||
[".prettierrc.json"] = {
|
||||
icon = prettier_icon,
|
||||
color = "#ea5e5e",
|
||||
cterm_color = "240",
|
||||
name = "prettierrcjson",
|
||||
},
|
||||
[".prettierd"] = {
|
||||
icon = prettier_icon,
|
||||
color = "#ea5e5e",
|
||||
|
@ -308,7 +275,7 @@ web_devicons.setup({
|
|||
name = "sequelizerc",
|
||||
},
|
||||
["pre-commit"] = {
|
||||
icon = "",
|
||||
icon = "",
|
||||
color = "#75e4b3",
|
||||
cterm_color = "240",
|
||||
name = "pre",
|
||||
|
@ -331,12 +298,6 @@ web_devicons.setup({
|
|||
cterm_color = "240",
|
||||
name = "eslintrc",
|
||||
},
|
||||
[".eslintrc.js"] = {
|
||||
icon = "",
|
||||
color = "#4746a8",
|
||||
cterm_color = "240",
|
||||
name = "eslintrcjs",
|
||||
},
|
||||
[".eslintignore"] = {
|
||||
icon = "",
|
||||
color = "#4746a8",
|
||||
|
@ -373,12 +334,6 @@ web_devicons.setup({
|
|||
cterm_color = "220",
|
||||
name = "gitblameignorerevs",
|
||||
},
|
||||
[".gitmodules"] = {
|
||||
icon = "",
|
||||
color = "#0c343d",
|
||||
cterm_color = "220",
|
||||
name = "gitmodules",
|
||||
},
|
||||
[".mailmap"] = {
|
||||
icon = "",
|
||||
color = "#a0d0d0",
|
||||
|
@ -427,53 +382,5 @@ web_devicons.setup({
|
|||
cterm_color = "220",
|
||||
name = "gradlewFile-staging",
|
||||
},
|
||||
["nodemon.json"] = {
|
||||
icon = "",
|
||||
color = "#76d04b",
|
||||
cterm_color = "220",
|
||||
name = "nodemonjson",
|
||||
},
|
||||
["webpack.config.js"] = {
|
||||
icon = "",
|
||||
color = "#8ED6FB",
|
||||
cterm_color = "220",
|
||||
name = "webpackconfigjs",
|
||||
},
|
||||
["package.json"] = {
|
||||
icon = "",
|
||||
color = "#8ED6FB",
|
||||
cterm_color = "220",
|
||||
name = "packagejson",
|
||||
},
|
||||
["package-lock.json"] = {
|
||||
icon = "",
|
||||
color = "#cc0000",
|
||||
cterm_color = "220",
|
||||
name = "packagelockjson",
|
||||
},
|
||||
[".gitignore"] = {
|
||||
icon = "",
|
||||
color = "#8ED6FB",
|
||||
cterm_color = "220",
|
||||
name = "gitignore",
|
||||
},
|
||||
["tsconfig.json"] = {
|
||||
icon = "",
|
||||
color = "#519aba",
|
||||
cterm_color = "74",
|
||||
name = "TSConfig",
|
||||
},
|
||||
["jsconfig.json"] = {
|
||||
icon = "",
|
||||
color = "#f2c55c",
|
||||
cterm_color = "220",
|
||||
name = "JSConfig",
|
||||
},
|
||||
[".gitlab-ci.yml"] = {
|
||||
icon = "",
|
||||
color = "#F14C28",
|
||||
cterm_color = "220",
|
||||
name = "gitlabciyaml",
|
||||
},
|
||||
},
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue