feat(nvim): (system) verilog lsp and formatting
This commit is contained in:
parent
77c28ceb4e
commit
cf10e016ef
2 changed files with 5 additions and 5 deletions
|
@ -1,9 +1,6 @@
|
||||||
-- This will need some refactoring as it is mostly a
|
-- This will need some refactoring as it is mostly a
|
||||||
-- copy and paste from the previous single-file .vim config
|
-- copy and paste from the previous single-file .vim config
|
||||||
|
|
||||||
require'lspconfig'.rust_analyzer.setup{}
|
|
||||||
require'lspconfig'.texlab.setup{}
|
|
||||||
require'lspconfig'.svls.setup{}
|
|
||||||
require'lspconfig'.pylsp.setup{
|
require'lspconfig'.pylsp.setup{
|
||||||
settings = {
|
settings = {
|
||||||
formatCommand = {"black"},
|
formatCommand = {"black"},
|
||||||
|
@ -37,7 +34,7 @@ local capabilities = require("cmp_nvim_lsp").default_capabilities()
|
||||||
local lspconfig = require('lspconfig')
|
local lspconfig = require('lspconfig')
|
||||||
|
|
||||||
-- Enable some language servers with the additional completion capabilities offered by nvim-cmp
|
-- Enable some language servers with the additional completion capabilities offered by nvim-cmp
|
||||||
local servers = { 'clangd', 'glsl_analyzer', 'nixd', 'tinymist', 'rust_analyzer', 'vhdl_ls', 'vtsls' }
|
local servers = { 'clangd', 'glsl_analyzer', 'nixd', 'rust_analyzer', 'texlab', 'tinymist', 'verible', 'vhdl_ls', 'vtsls' }
|
||||||
for _, lsp in ipairs(servers) do
|
for _, lsp in ipairs(servers) do
|
||||||
lspconfig[lsp].setup {
|
lspconfig[lsp].setup {
|
||||||
-- on_attach = my_custom_on_attach,
|
-- on_attach = my_custom_on_attach,
|
||||||
|
@ -118,7 +115,9 @@ require("conform").setup({
|
||||||
html = { "prettier", },
|
html = { "prettier", },
|
||||||
javascript = { "prettier", },
|
javascript = { "prettier", },
|
||||||
python = { "black" },
|
python = { "black" },
|
||||||
typst = { "prettypst" }
|
typst = { "prettypst" },
|
||||||
|
verilog = { "verible", "trim_whitespace" },
|
||||||
|
systemverilog = { "verible", "trim_whitespace" }
|
||||||
},
|
},
|
||||||
formatters = {
|
formatters = {
|
||||||
prettypst = {
|
prettypst = {
|
||||||
|
|
|
@ -77,6 +77,7 @@ in
|
||||||
"rustup"
|
"rustup"
|
||||||
"tinymist"
|
"tinymist"
|
||||||
"unzip"
|
"unzip"
|
||||||
|
"verible"
|
||||||
"vhdl-ls"
|
"vhdl-ls"
|
||||||
"vtsls"
|
"vtsls"
|
||||||
"wget"
|
"wget"
|
||||||
|
|
Loading…
Reference in a new issue