Merge branch 'dev'

This commit is contained in:
Pojok Code 2025-08-02 21:06:43 +07:00
commit 3f9b73de6a
19 changed files with 505 additions and 174 deletions

View file

@ -18,7 +18,7 @@ return {
opts = {
-- for more options check out https://github.com/pojokcodeid/auto-lualine.nvim
setColor = "auto",
setOption = "roundedall",
setOption = "parallelogram",
setMode = 5,
},
},
@ -40,7 +40,7 @@ return {
-- install mason (lsp, dap, linters, formatters)
{
"williamboman/mason.nvim",
opts = { ensure_installed = { "stylua" } },
-- opts = { ensure_installed = { "stylua" } },
},
-- overide lsp config
{
@ -102,44 +102,44 @@ return {
end,
},
-- custem nvimtree
{
"nvim-tree/nvim-tree.lua",
opts = function(_, opts)
-- set nvimtree float view (default left side)
-- opts.view = {
-- adaptive_size = false,
-- centralize_selection = true,
-- side = "left",
-- preserve_window_proportions = false,
-- number = false,
-- relativenumber = false,
-- signcolumn = "yes",
-- float = {
-- enable = true,
-- open_win_config = function()
-- local screen_w = vim.opt.columns:get()
-- local screen_h = vim.opt.lines:get() - vim.opt.cmdheight:get()
-- local window_w = screen_w * 0.5
-- local window_h = screen_h * 0.9
-- local window_w_int = math.floor(window_w)
-- local window_h_int = math.floor(window_h)
-- local center_x = (screen_w - window_w) / 2
-- local center_y = ((vim.opt.lines:get() - window_h) / 2) - vim.opt.cmdheight:get()
-- return {
-- border = "rounded",
-- relative = "editor",
-- row = center_y,
-- col = center_x,
-- width = window_w_int,
-- height = window_h_int,
-- }
-- end,
-- },
-- width = function()
-- return math.floor(vim.opt.columns:get() * 0.5)
-- end,
-- }
return opts
end,
},
-- {
-- "nvim-tree/nvim-tree.lua",
-- opts = function(_, opts)
-- set nvimtree float view (default left side)
-- opts.view = {
-- adaptive_size = false,
-- centralize_selection = true,
-- side = "left",
-- preserve_window_proportions = false,
-- number = false,
-- relativenumber = false,
-- signcolumn = "yes",
-- float = {
-- enable = true,
-- open_win_config = function()
-- local screen_w = vim.opt.columns:get()
-- local screen_h = vim.opt.lines:get() - vim.opt.cmdheight:get()
-- local window_w = screen_w * 0.5
-- local window_h = screen_h * 0.9
-- local window_w_int = math.floor(window_w)
-- local window_h_int = math.floor(window_h)
-- local center_x = (screen_w - window_w) / 2
-- local center_y = ((vim.opt.lines:get() - window_h) / 2) - vim.opt.cmdheight:get()
-- return {
-- border = "rounded",
-- relative = "editor",
-- row = center_y,
-- col = center_x,
-- width = window_w_int,
-- height = window_h_int,
-- }
-- end,
-- },
-- width = function()
-- return math.floor(vim.opt.columns:get() * 0.5)
-- end,
-- }
-- return opts
-- end,
-- },
}

View file

@ -2,7 +2,8 @@ return {
kind = {
Boolean = "󰨙",
Color = "",
Codeium = "󰘦",
-- Codeium = "󰘦",
Codeium = "󰁨",
Control = "",
Collapsed = "",
Component = "󰅴",
@ -43,6 +44,57 @@ return {
Operator = "",
TypeParameter = "",
},
kind2 = {
Array = "",
Boolean = " 󰨙 ",
Class = " 󰯳 ",
Codeium = " 󰘦 ",
Color = " 󰰠 ",
Control = "",
Collapsed = " > ",
-- Constant = " 󰯱 ",
Constant = " 󰯲 ",
Constructor = "",
Copilot = "",
Enum = " 󰯹 ",
EnumMember = "",
Event = "",
Field = "",
File = "",
Folder = "",
-- Function = " 󰡱 ",
Function = " 󰯼 ",
Interface = " 󰰅 ",
Key = "",
-- Keyword = " 󱕴 ",
Keyword = "",
Method = " 󰰑 ",
-- Module = " 󰆼 ",
Module = " 󰰐 ",
Namespace = " 󰰔 ",
Null = "",
Number = " 󰰔 ",
Object = " 󰲟 ",
Operator = "",
Package = " 󰰚 ",
Property = " 󰲽 ",
Reference = " 󰰠 ",
-- Snippet = "  ",
-- Snippet = "  ",
Snippet = " 󰰢 ",
String = "",
Struct = " 󰰣 ",
TabNine = " 󰏚 ",
-- Text = " 󱜥 ",
-- Text = "  ",
Text = " 󰰥 ",
TypeParameter = " 󰰦 ",
Unit = " 󱜥 ",
Value = "",
-- Variable = " 󰫧 ",
Variable = "",
-- Variable = " 󰰬 ",
},
git = {
LineAdded = "",
LineModified = "",

View file

@ -71,3 +71,11 @@ vim.api.nvim_create_autocmd("FileType", {
})
vim.opt.guicursor = "n-v-c-sm:block,i-ci-ve:ver25,r-cr-o:hor20"
local uname = vim.loop.os_uname()
if uname.sysname == "Windows_NT" then
vim.opt.shell = "pwsh"
vim.opt.shellcmdflag = "-NoLogo -NoProfile -ExecutionPolicy RemoteSigned -Command"
vim.opt.shellquote = ""
vim.opt.shellxquote = ""
end