This commit is contained in:
Zackarias Montell
2025-06-10 16:39:03 +02:00
3 changed files with 18 additions and 13 deletions

View File

@@ -407,6 +407,8 @@ require('lazy').setup({
-- Allows extra capabilities provided by blink.cmp
'saghen/blink.cmp',
-- Roslyn
{ 'seblyng/roslyn.nvim', ft = 'cs', opts = {} },
},
config = function()
vim.api.nvim_create_autocmd('LspAttach', {
@@ -564,19 +566,19 @@ require('lazy').setup({
}, -- hybrid mode is default
eslint = {
flags = { debounce_text_changes = 500 },
on_attach = function(client, bufnr)
client.server_capabilities.documentFormattingProvider = true
if client.server_capabilities.documentFormattingProvider then
local au_lsp = vim.api.nvim_create_augroup('eslint_lsp', { clear = true })
vim.api.nvim_create_autocmd('BufWritePre', {
pattern = '*',
callback = function()
vim.lsp.buf.format { async = true }
end,
group = au_lsp,
})
end
end,
-- on_attach = function(client, bufnr)
-- client.server_capabilities.documentFormattingProvider = true
-- if client.server_capabilities.documentFormattingProvider then
-- local au_lsp = vim.api.nvim_create_augroup('eslint_lsp', { clear = true })
-- vim.api.nvim_create_autocmd('BufWritePre', {
-- pattern = '*',
-- callback = function()
-- vim.lsp.buf.format { async = true }
-- end,
-- group = au_lsp,
-- })
-- end
-- end,
},
html = {},
cssls = {},

View File

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