Nvim: many small changes around whole project

This commit is contained in:
Robert Kmieć
2024-03-29 09:33:27 +01:00
parent a2832ed454
commit 687646da32
16 changed files with 291 additions and 99 deletions

View File

@@ -3,18 +3,17 @@ return {
'neovim/nvim-lspconfig',
dependencies = {
-- "SmiteshP/nvim-navbuddy",
{url = "http://git.sr.ht/~p00f/clangd_extensions.nvim"},
"jubnzv/virtual-types.nvim",
--"ray-x/lsp_signature.nvim",
"folke/neodev.nvim",
"artemave/workspace-diagnostics.nvim"
{url = "http://git.sr.ht/~p00f/clangd_extensions.nvim"},
},
config = function()
require("neodev").setup({
library = { plugins = { "nvim-dap-ui" }, types = true },
})
local nvim_lsp = require('lspconfig')
local clangd_extensions = require('clangd_extensions').setup({
require('clangd_extensions').setup({
inlay_hints = {
inline = false,
-- Options other than `highlight' and `priority' only work
@@ -136,7 +135,6 @@ return {
-- })
require("clangd_extensions.inlay_hints").setup_autocmd()
require("clangd_extensions.inlay_hints").set_inlay_hints()
--require("workspace-diagnostics").populate_workspace_diagnostics(ev.buf)
local signs = {
{ name = "DiagnosticSignError", text = "" },
@@ -201,11 +199,6 @@ return {
nvim_lsp.matlab_ls.setup({
cmd = { "matlab-language-server", "--stdio"},
filetypes = { "matlab" },
-- handlers = { [ "workspace/configuration"] = function(_, _, ctx)
-- local client = vim.lsp.get_client_by_id(ctx.client_id)
-- return {client.config.settings.matlab}
-- end
-- },
root_dir = nvim_lsp.util.find_git_ancestor,
single_file_support = true,
settings = {