mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
nvim: config upgrade and add verilog support
This commit is contained in:
parent
05c0b65b3b
commit
7540d37422
6 changed files with 77 additions and 11 deletions
9
home/dot_config/nvim/lsp/svls.lua
Normal file
9
home/dot_config/nvim/lsp/svls.lua
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
-- SystemVerilog
|
||||
--[[ Installation
|
||||
cargo install svls
|
||||
--]]
|
||||
return {
|
||||
cmd = { "svls" },
|
||||
filetypes = { "systemverilog", "verilog" },
|
||||
root_markers = { ".svls.toml" }
|
||||
}
|
||||
|
|
@ -3,5 +3,6 @@ local signs = require("config.icons").diagnostics
|
|||
-- This provides the diagnostics signs near the line numbers
|
||||
for type, icon in pairs(signs) do
|
||||
local hl = "DiagnosticSign" .. type
|
||||
vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = "" })
|
||||
-- vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = "" })
|
||||
vim.diagnostic.config(hl, { text = icon, texthl = hl, numhl = "" })
|
||||
end
|
||||
|
|
|
|||
|
|
@ -6,17 +6,8 @@ return {
|
|||
{ import = "plugins.lang.beancount" },
|
||||
{ import = "plugins.lang.tex" },
|
||||
{ import = "plugins.lang.lua" },
|
||||
{ import = "plugins.lang.verilog" },
|
||||
{ import = "plugins.lang.treesitter" },
|
||||
{ import = "plugins.mod.trouble-nvim" },
|
||||
-- Remove mason and use system package manager
|
||||
-- {
|
||||
-- "williamboman/mason.nvim",
|
||||
-- cmd = "Mason",
|
||||
-- build = ":MasonUpdate",
|
||||
-- -- opts_extend = { "ensure_installed" },
|
||||
-- opts = {
|
||||
-- -- ensure_installed = require("config.servers").servers,
|
||||
-- },
|
||||
-- },
|
||||
{ import = "plugins.mod.conform-nvim" },
|
||||
}
|
||||
|
|
|
|||
8
home/dot_config/nvim/lua/plugins/lang/verilog.lua
Normal file
8
home/dot_config/nvim/lua/plugins/lang/verilog.lua
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
vim.api.nvim_create_autocmd({ "BufRead", "BufNewFile" }, {
|
||||
pattern = "*.v",
|
||||
callback = function()
|
||||
vim.bo.filetype = "verilog"
|
||||
end,
|
||||
})
|
||||
|
||||
return {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue