Compare commits

...

10 Commits

Author SHA1 Message Date
Daveanand Mannie
7a45a87c23 [UPDATE] LSD Config and add direnv plugin to zsh
IMGCAT FTW
2025-10-28 22:43:46 -04:00
Daveanand Mannie
2025fb7d0e [FIX] space throws an err 2025-10-17 23:54:45 -04:00
Daveanand Mannie
1752b39e96 [ADD] python debugger 2025-10-17 23:50:20 -04:00
Daveanand Mannie
0279fb89f6 [ADD] xml server configs 2025-10-17 23:50:20 -04:00
Daveanand Mannie
d2ca336b20 [ADD] conditional alias for wezterm
IMGCAT FTW
2025-10-15 22:27:57 -04:00
Daveanand Mannie
4ee718d214 Merge pull request #1 from DaveanandMannie/linux_rebase_main
UNIFIED
2025-10-15 22:21:14 -04:00
Daveanand Mannie
2519cdde01 [UPDATE] wezterm configs for native linux 2025-10-15 22:04:02 -04:00
Daveanand Mannie
15178ddfae [ADD] MOTD 2025-10-15 21:46:01 -04:00
Daveanand Mannie
e44c6d4b8e [UPDATE] lsd configs 2025-10-15 21:39:11 -04:00
Daveanand Mannie
3139212680 [FIX] cross platform pathing 2025-10-15 21:39:11 -04:00
9 changed files with 168 additions and 23 deletions

View File

@@ -0,0 +1,10 @@
[Desktop Entry]
Version=1.0
Name=WezTerm
Comment=Wez's Terminal Emulator
Exec=wezterm --config-file /home/daveanand/.config/nvim/config_files/wezterm.lua
Icon=/home/daveanand/.local/repos/wezterm/assets/icon/terminal.png
Terminal=false
Type=Application
Categories=Utility;TerminalEmulator;

View File

@@ -2,9 +2,11 @@
local wezterm = require("wezterm")
local config = wezterm.config_builder()
-- workspace dir default
config.default_cwd = os.getenv("HOMEPATH") .. "/workspace"
config.default_cwd = os.getenv("HOMEPATH") or os.getenv("HOME").. "/workspace"
-- default term prog can be changed with cli args
if os.getenv("pwsh") then
config.default_prog = { "pwsh" }
end
--styles
config.harfbuzz_features = { "calt=1", "clig=1", "liga=1" }

View File

@@ -20,8 +20,13 @@
"mini.pairs": { "branch": "main", "commit": "b9aada8c0e59f2b938e98fbf4eae0799eba96ad9" },
"noice.nvim": { "branch": "main", "commit": "38c702be0d8fea81527ee6a73e1e834e72481193" },
"nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" },
"nvim-dap": { "branch": "master", "commit": "6782b097af2417a4c3e33849b0a26ae2188bd7ea" },
"nvim-dap-python": { "branch": "master", "commit": "64652d1ae1db80870d9aac7132d76e37acd86a26" },
"nvim-dap-ui": { "branch": "master", "commit": "cf91d5e2d07c72903d052f5207511bf7ecdb7122" },
"nvim-dap-virtual-text": { "branch": "master", "commit": "fbdb48c2ed45f4a8293d0d483f7730d24467ccb6" },
"nvim-lint": { "branch": "master", "commit": "9da1fb942dd0668d5182f9c8dee801b9c190e2bb" },
"nvim-lspconfig": { "branch": "master", "commit": "ac98db2f9f06a56498ec890a96928774eae412c3" },
"nvim-nio": { "branch": "master", "commit": "21f5324bfac14e22ba26553caf69ec76ae8a7662" },
"nvim-treesitter": { "branch": "main", "commit": "4968877bb2dceac45948e24ee14298b1006b4cbf" },
"nvim-treesitter-textobjects": { "branch": "main", "commit": "1b2d85d3de6114c4bcea89ffb2cd1ce9e3a19931" },
"nvim-ts-autotag": { "branch": "main", "commit": "c4ca798ab95b316a768d51eaaaee48f64a4a46bc" },

View File

@@ -20,6 +20,7 @@ require("lazy").setup({
{ import = "plugins" },
{ import = "plugins.langs.python" },
{ import = "plugins.langs.go" },
{ import = "plugins.langs.xml_json_html" },
},
defaults = {
-- By default, only LazyVim plugins will be lazy-loaded. Your custom plugins will load during startup.

View File

@@ -2,10 +2,10 @@ return {
"stevearc/conform.nvim",
opts = {
formatters_by_ft = {
-- python = { "ruff" },
python = { "black" },
javascript = { "biome" },
go = {'goimports', 'gofumpt'}
go = { "goimports", "gofumpt" },
xml = { "lemminx" },
},
},
dependencies = {

View File

@@ -0,0 +1,104 @@
-- lua/plugins/dap-python.lua
return {
-- Core DAP plugin
{
"mfussenegger/nvim-dap",
dependencies = {
-- UI for the debugger
{
"rcarriga/nvim-dap-ui",
dependencies = { "nvim-neotest/nvim-nio" },
opts = {},
config = function(_, opts)
local dap = require("dap")
local dapui = require("dapui")
dapui.setup(opts)
-- icons
vim.fn.sign_define(
"DapBreakpoint",
{ text = "🔴", texthl = "DiagnosticError", linehl = "", numhl = "" }
)
-- Auto open/close UI
dap.listeners.after.event_initialized["dapui_config"] = function()
dapui.open()
end
dap.listeners.before.event_terminated["dapui_config"] = function()
dapui.close()
end
dap.listeners.before.event_exited["dapui_config"] = function()
dapui.close()
end
end,
},
-- Virtual text showing variable values
{
"theHamsta/nvim-dap-virtual-text",
opts = {},
},
-- Python-specific adapter
{
"mfussenegger/nvim-dap-python",
config = function()
local dap = require("dap")
-- If installed via Mason:
require("dap-python").setup("~/.local/share/nvim/mason/packages/debugpy/venv/bin/python")
-- remote
table.insert(dap.configurations.python, {
type = "python",
request = "attach",
name = "Attach to Process (5678)",
connect = {
host = "localhost",
port = 5678,
},
})
end,
},
},
keys = {
-- Basic debugging
-- stylua: ignore start
{ "<leader>db", function() require("dap").toggle_breakpoint() end, desc = "Toggle Breakpoint" },
{ "<leader>dB", function() require("dap").set_breakpoint(vim.fn.input('Breakpoint condition: ')) end, desc = "Breakpoint Condition" },
{ "<leader>dc", function() require("dap").continue() end, desc = "Continue" },
{ "<leader>dC", function() require("dap").run_to_cursor() end, desc = "Run to Cursor" },
{ "<leader>dg", function() require("dap").goto_() end, desc = "Go to Line (No Execute)" },
{ "<leader>di", function() require("dap").step_into() end, desc = "Step Into" },
{ "<leader>dj", function() require("dap").down() end, desc = "Down" },
{ "<leader>dk", function() require("dap").up() end, desc = "Up" },
{ "<leader>dl", function() require("dap").run_last() end, desc = "Run Last" },
{ "<leader>do", function() require("dap").step_over() end, desc = "Step Over" },
{ "<leader>dO", function() require("dap").step_out() end, desc = "Step Out" },
{ "<leader>dp", function() require("dap").pause() end, desc = "Pause" },
{ "<leader>dr", function() require("dap").repl.toggle() end, desc = "Toggle REPL" },
{ "<leader>ds", function() require("dap").session() end, desc = "Session" },
{ "<leader>dt", function() require("dap").terminate() end, desc = "Terminate" },
{ "<leader>dw", function() require("dap.ui.widgets").hover() end, desc = "Widgets" },
-- DAP UI
{ "<leader>du", function() require("dapui").toggle({}) end, desc = "Dap UI" },
{ "<leader>de", function() require("dapui").eval() end, desc = "Eval", mode = {"n", "v"} },
-- stylua: ignore end
{
"<leader>dI",
function()
local lines = {
"import debugpy",
'debugpy.listen(("localhost", 5678))',
'print("                              ")',
'print(" Debugpy listening on port 5678 ", flush=True)',
'print("                              ")',
"",
}
vim.api.nvim_buf_set_lines(0, 0, 0, false, lines)
end,
desc = "Insert debugpy listener at top",
ft = "python",
},
},
},
}

View File

@@ -0,0 +1,22 @@
return {
"neovim/nvim-lspconfig",
opts = {
servers = {
lemminx = {
init_options = {
settings = {
xml = {
format = {
enabled = true,
splitAttributes = false,
},
validation = {
noGrammar = "ignore", -- This is correct
},
}
}
}
}
}
}
}

View File

@@ -74,6 +74,7 @@ ZSH_CUSTOM=~/.config/nvim/zsh/custom
plugins=(
zsh-autosuggestions
zsh-syntax-highlighting
direnv
)
source $ZSH/oh-my-zsh.sh
@@ -95,15 +96,9 @@ fi
# export ARCHFLAGS="-arch $(uname -m)"
export LESS="-R"
export WEZTERM_CONFIG_FILE=~/.config/nvim/wezterm.lua
export WEZTERM_CONFIG_FILE=~/.config/nvim/config_files/wezterm.lua
export ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=015,bold"
# ruby environement manager
eval "$(~/.local/repos/rbenv/bin/rbenv init - --no-rehash zsh)"
# go lang
export GOPATH=$HOME/workspace/go-tools
export GOBIN=$GOPATH/bin
export PATH="$GOBIN:/usr/local/go/bin:$PATH"
# wezterm
export WEZTERM_CONFIG_FILE=$HOME/.config/nvim/config_files/wezterm.lua
# Message of the day
# message of the day
~/.config/nvim/zsh/motd.sh

View File

@@ -9,7 +9,14 @@ alias fd='fdfind'
alias sudo-shell='sudo -E zsh'
# [Development]
# conditional wezterm
if grep -qEi "(Microsoft|WSL)" /proc/version &> /dev/null; then
alias wezterm='/mnt/c/Users/DaveanandMannie/scoop/apps/wezterm/current/wezterm.exe'
else
alias wezterm='wezterm' # Or point to native binary if needed
fi
alias docker='sudo docker'
alias lg='lazygit'
# [Odoo]
alias erp-dev='cd ~/workspace/pg/erp/'
alias erp-dev-server='erp-dev && source venvs/odoo18/bin/activate && cd odoo && python3 odoo-bin -c ../odoo.conf --dev all'
@@ -18,4 +25,3 @@ alias erp-dev-test='cd ~/workspace/pg/erp && source venvs/odoo18/bin/activate &&
alias erp-portal-server='erp-dev && source venvs/odoo17/bin/activate && cd odoo && python3 odoo-bin -c ../.portalrc --dev all'
alias portal-dev='cd ~/workspace/pg/portal/'
alias lg='lazygit'