first commit
This commit is contained in:
commit
205faf4224
5471 changed files with 973850 additions and 0 deletions
26
config/nvim/lua/neoconf/lsp-config.lua
Normal file
26
config/nvim/lua/neoconf/lsp-config.lua
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
vim.lsp.config("lua_ls", {
|
||||
settings = {
|
||||
Lua = {
|
||||
diagnostics = { globals = { "vim" } },
|
||||
workspace = { library = vim.api.nvim_get_runtime_file("", true) },
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
-- Enable servers (mason-lspconfig handles this automatically for installed ones)
|
||||
-- vim.lsp.enable("lua_ls")
|
||||
|
||||
-- diagnostic
|
||||
vim.diagnostic.config({
|
||||
virtual_text = {
|
||||
prefix = "●", -- Icône avant le message
|
||||
source = "if_many", -- Affiche la source LSP si plusieurs
|
||||
format = function(diag)
|
||||
return string.format("%s: %s", diag.source, diag.message)
|
||||
end,
|
||||
},
|
||||
signs = true,
|
||||
underline = true,
|
||||
update_in_insert = false, -- Évite flicker en insert
|
||||
severity_sort = true,
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue