Move back diag to line endings

This commit is contained in:
2025-05-26 14:24:49 +02:00
parent 7d7b8135bc
commit f6a22b72d3
2 changed files with 30 additions and 27 deletions

View File

@@ -407,6 +407,8 @@ require('lazy').setup({
-- Allows extra capabilities provided by blink.cmp -- Allows extra capabilities provided by blink.cmp
'saghen/blink.cmp', 'saghen/blink.cmp',
-- Roslyn
{ 'seblyng/roslyn.nvim', ft = 'cs', opts = {} },
}, },
config = function() config = function()
vim.api.nvim_create_autocmd('LspAttach', { vim.api.nvim_create_autocmd('LspAttach', {
@@ -522,20 +524,20 @@ require('lazy').setup({
[vim.diagnostic.severity.HINT] = '󰌶 ', [vim.diagnostic.severity.HINT] = '󰌶 ',
}, },
} or {}, } or {},
-- virtual_text = { virtual_text = {
-- source = 'if_many', source = 'if_many',
-- spacing = 2, spacing = 2,
-- format = function(diagnostic) format = function(diagnostic)
-- local diagnostic_message = { local diagnostic_message = {
-- [vim.diagnostic.severity.ERROR] = diagnostic.message, [vim.diagnostic.severity.ERROR] = diagnostic.message,
-- [vim.diagnostic.severity.WARN] = diagnostic.message, [vim.diagnostic.severity.WARN] = diagnostic.message,
-- [vim.diagnostic.severity.INFO] = diagnostic.message, [vim.diagnostic.severity.INFO] = diagnostic.message,
-- [vim.diagnostic.severity.HINT] = diagnostic.message, [vim.diagnostic.severity.HINT] = diagnostic.message,
-- } }
-- return diagnostic_message[diagnostic.severity] return diagnostic_message[diagnostic.severity]
-- end, end,
-- }, },
virtual_lines = true, -- virtual_lines = true,
} }
local servers = { local servers = {
@@ -564,19 +566,19 @@ require('lazy').setup({
}, -- hybrid mode is default }, -- hybrid mode is default
eslint = { eslint = {
flags = { debounce_text_changes = 500 }, flags = { debounce_text_changes = 500 },
on_attach = function(client, bufnr) -- on_attach = function(client, bufnr)
client.server_capabilities.documentFormattingProvider = true -- client.server_capabilities.documentFormattingProvider = true
if client.server_capabilities.documentFormattingProvider then -- if client.server_capabilities.documentFormattingProvider then
local au_lsp = vim.api.nvim_create_augroup('eslint_lsp', { clear = true }) -- local au_lsp = vim.api.nvim_create_augroup('eslint_lsp', { clear = true })
vim.api.nvim_create_autocmd('BufWritePre', { -- vim.api.nvim_create_autocmd('BufWritePre', {
pattern = '*', -- pattern = '*',
callback = function() -- callback = function()
vim.lsp.buf.format { async = true } -- vim.lsp.buf.format { async = true }
end, -- end,
group = au_lsp, -- group = au_lsp,
}) -- })
end -- end
end, -- end,
}, },
html = {}, html = {},
cssls = {}, cssls = {},

View File

@@ -30,6 +30,7 @@
"nvim-treesitter": { "branch": "master", "commit": "066fd6505377e3fd4aa219e61ce94c2b8bdb0b79" }, "nvim-treesitter": { "branch": "master", "commit": "066fd6505377e3fd4aa219e61ce94c2b8bdb0b79" },
"nvim-web-devicons": { "branch": "master", "commit": "1fb58cca9aebbc4fd32b086cb413548ce132c127" }, "nvim-web-devicons": { "branch": "master", "commit": "1fb58cca9aebbc4fd32b086cb413548ce132c127" },
"plenary.nvim": { "branch": "master", "commit": "857c5ac632080dba10aae49dba902ce3abf91b35" }, "plenary.nvim": { "branch": "master", "commit": "857c5ac632080dba10aae49dba902ce3abf91b35" },
"roslyn.nvim": { "branch": "main", "commit": "8dc729a651ae980088246caf651e5ff24e21077a" },
"telescope-fzf-native.nvim": { "branch": "main", "commit": "1f08ed60cafc8f6168b72b80be2b2ea149813e55" }, "telescope-fzf-native.nvim": { "branch": "main", "commit": "1f08ed60cafc8f6168b72b80be2b2ea149813e55" },
"telescope-ui-select.nvim": { "branch": "master", "commit": "6e51d7da30bd139a6950adf2a47fda6df9fa06d2" }, "telescope-ui-select.nvim": { "branch": "master", "commit": "6e51d7da30bd139a6950adf2a47fda6df9fa06d2" },
"telescope.nvim": { "branch": "master", "commit": "b4da76be54691e854d3e0e02c36b0245f945c2c7" }, "telescope.nvim": { "branch": "master", "commit": "b4da76be54691e854d3e0e02c36b0245f945c2c7" },