Compare commits
2 commits
aeb02c42de
...
e64a4c0f86
| Author | SHA1 | Date | |
|---|---|---|---|
| e64a4c0f86 | |||
| aa57f34011 |
6 changed files with 70 additions and 11 deletions
|
|
@ -107,7 +107,9 @@
|
||||||
(add-to-list 'exec-path "~/.local/bin")
|
(add-to-list 'exec-path "~/.local/bin")
|
||||||
(setenv "PATH" (concat (getenv "PATH") ":/home/" (user-login-name) "/.local/bin"))
|
(setenv "PATH" (concat (getenv "PATH") ":/home/" (user-login-name) "/.local/bin"))
|
||||||
|
|
||||||
|
;; --- Verilog / SystemVerilog ---
|
||||||
(after! verilog-mode
|
(after! verilog-mode
|
||||||
|
;; Indentation
|
||||||
(setq verilog-indent-level 4
|
(setq verilog-indent-level 4
|
||||||
verilog-indent-level-module 4
|
verilog-indent-level-module 4
|
||||||
verilog-indent-level-declaration 4
|
verilog-indent-level-declaration 4
|
||||||
|
|
@ -116,11 +118,30 @@
|
||||||
verilog-cexp-indent 4
|
verilog-cexp-indent 4
|
||||||
verilog-auto-newline nil)
|
verilog-auto-newline nil)
|
||||||
|
|
||||||
(setq lsp-clients-verilog-ls-server 'verible-verilog-ls)
|
;; verilog-ext: enhanced SystemVerilog support (tree-sitter, navigation, highlighting)
|
||||||
|
(when (featurep 'verilog-ext)
|
||||||
|
(verilog-ext-mode-setup))
|
||||||
|
|
||||||
;; Ensure all buffers use 4 spaces and no literal tabs
|
;; flycheck-verilator: custom checker for Verilator linting
|
||||||
|
(when (featurep 'flycheck)
|
||||||
|
(flycheck-define-checker verilog-verilator
|
||||||
|
"A Verilog/SystemVerilog syntax checker using Verilator."
|
||||||
|
:command ("verilator" "--lint-only" "-Wall" "-Wno-DECLFILENAME"
|
||||||
|
"--language" "1800-2017" source-original)
|
||||||
|
:error-patterns
|
||||||
|
((error line-start "%Error" (optional "-" (one-or-more (any alpha ?_)))
|
||||||
|
": " (file-name) ":" line ":" column ": " (message) line-end)
|
||||||
|
(warning line-start "%Warning" (optional "-" (one-or-more (any alpha ?_)))
|
||||||
|
": " (file-name) ":" line ":" column ": " (message) line-end))
|
||||||
|
:modes (verilog-mode verilog-ts-mode))
|
||||||
|
(add-to-list 'flycheck-checkers 'verilog-verilator t))
|
||||||
|
|
||||||
|
;; Verilator compile command for quick syntax/lint checks (M-x compile)
|
||||||
|
(setq compile-command "verilator --lint-only -Wall --language 1800-2017 "))
|
||||||
|
|
||||||
|
;; Global: 4 spaces, no tabs
|
||||||
(setq-default tab-width 4
|
(setq-default tab-width 4
|
||||||
indent-tabs-mode nil))
|
indent-tabs-mode nil)
|
||||||
|
|
||||||
;; --- Chisel / Scala ---
|
;; --- Chisel / Scala ---
|
||||||
(after! scala-mode
|
(after! scala-mode
|
||||||
|
|
@ -132,10 +153,9 @@
|
||||||
(setq lsp-metals-server-args '("-J-Dmetals.http=on-Dmetals.at-least-java-21=true")
|
(setq lsp-metals-server-args '("-J-Dmetals.http=on-Dmetals.at-least-java-21=true")
|
||||||
lsp-metals-enable-http t))
|
lsp-metals-enable-http t))
|
||||||
|
|
||||||
(after! lsp-verilog
|
;; Verible LSP: Eglot picks it up automatically from PATH.
|
||||||
(setq lsp-verilog-server 'verible-ls)
|
;; The default Doom Eglot config registers verible-verilog-ls for verilog-mode.
|
||||||
;; Optional: specify the path if it's not in your standard PATH
|
;; No extra config needed — just ensure verible-verilog-ls is on PATH.
|
||||||
(setq lsp-clients-verible-ls-executable "/usr/local/bin/verible-verilog-ls"))
|
|
||||||
|
|
||||||
(map! :leader
|
(map! :leader
|
||||||
(:prefix ("o" . "open")
|
(:prefix ("o" . "open")
|
||||||
|
|
|
||||||
|
|
@ -108,7 +108,7 @@ hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW
|
||||||
pdf ; pdf enhancements
|
pdf ; pdf enhancements
|
||||||
;;terraform ; infrastructure as code
|
;;terraform ; infrastructure as code
|
||||||
;;tmux ; an API for interacting with tmux
|
;;tmux ; an API for interacting with tmux
|
||||||
(tree-sitter +python +rust +c +cc +verilog)
|
(tree-sitter +python +rust +c +cc +zig +verilog)
|
||||||
;;upload ; map local to remote projects via ssh/ftp
|
;;upload ; map local to remote projects via ssh/ftp
|
||||||
|
|
||||||
:os
|
:os
|
||||||
|
|
@ -180,7 +180,7 @@ hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW
|
||||||
;;terra ; Earth and Moon in alignment for performance.
|
;;terra ; Earth and Moon in alignment for performance.
|
||||||
;;web ; the tubes
|
;;web ; the tubes
|
||||||
;;yaml ; JSON, but readable
|
;;yaml ; JSON, but readable
|
||||||
zig ; C, but simpler
|
(zig +lsp +tree-sitter) ; C, but simpler
|
||||||
(verilog +lsp)
|
(verilog +lsp)
|
||||||
|
|
||||||
:email
|
:email
|
||||||
|
|
|
||||||
|
|
@ -52,3 +52,7 @@
|
||||||
;; (unpin! pinned-package another-pinned-package)
|
;; (unpin! pinned-package another-pinned-package)
|
||||||
;; ...Or *all* packages (NOT RECOMMENDED; will likely break things)
|
;; ...Or *all* packages (NOT RECOMMENDED; will likely break things)
|
||||||
;; (unpin! t)
|
;; (unpin! t)
|
||||||
|
|
||||||
|
|
||||||
|
;; --- Verilog / SystemVerilog ---
|
||||||
|
(package! verilog-ext)
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,14 @@
|
||||||
"model": "deepseek-v4-pro",
|
"model": "deepseek-v4-pro",
|
||||||
"autoupdate": true,
|
"autoupdate": true,
|
||||||
|
|
||||||
|
"mcp": {
|
||||||
|
"riscv-udb": {
|
||||||
|
"type": "local",
|
||||||
|
"command": ["riscv-udb-mcp"],
|
||||||
|
"enabled": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
// Activating the full team layer ONLY inside this profile directory
|
// Activating the full team layer ONLY inside this profile directory
|
||||||
"plugin": [
|
"plugin": [
|
||||||
"oh-my-openagent",
|
"oh-my-openagent",
|
||||||
|
|
@ -23,6 +31,13 @@
|
||||||
"**/build/**": "deny",
|
"**/build/**": "deny",
|
||||||
"*": "allow"
|
"*": "allow"
|
||||||
},
|
},
|
||||||
"bash": "allow"
|
"bash": "allow",
|
||||||
|
"lsp" : "allow"
|
||||||
|
},
|
||||||
|
"lsp": {
|
||||||
|
"clangd": {
|
||||||
|
"command": ["clangd", "--background-index", "--clang-tidy"],
|
||||||
|
"extensions": [".c", ".cpp", ".cc", ".cxx", ".h", ".hpp"]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
5
opencode/.config/opencode-team/tui.json
Normal file
5
opencode/.config/opencode-team/tui.json
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"plugin": [
|
||||||
|
"oh-my-openagent"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
@ -2,6 +2,14 @@
|
||||||
"$schema": "https://opencode.ai/config.json",
|
"$schema": "https://opencode.ai/config.json",
|
||||||
"autoupdate": true,
|
"autoupdate": true,
|
||||||
|
|
||||||
|
"mcp": {
|
||||||
|
"riscv-udb": {
|
||||||
|
"type": "local",
|
||||||
|
"command": ["riscv-udb-mcp"],
|
||||||
|
"enabled": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
"plugin": [],
|
"plugin": [],
|
||||||
|
|
||||||
"permission": {
|
"permission": {
|
||||||
|
|
@ -18,6 +26,13 @@
|
||||||
"**/build/**": "deny",
|
"**/build/**": "deny",
|
||||||
"*": "allow"
|
"*": "allow"
|
||||||
},
|
},
|
||||||
"bash": "allow"
|
"bash": "allow",
|
||||||
|
"lsp" : "allow"
|
||||||
|
},
|
||||||
|
"lsp" : {
|
||||||
|
"clangd": {
|
||||||
|
"command": ["clangd", "--background-index", "--clang-tidy"],
|
||||||
|
"extensions": [".c", ".cpp", ".cc", ".cxx", ".h", ".hpp"]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue