Merge branch 'main' of https://git.zacke.dev/wholteza/consultant-windows
This commit is contained in:
@@ -12,3 +12,5 @@
|
||||
s = status
|
||||
[credential "https://git.zacke.dev"]
|
||||
provider = generic
|
||||
[push]
|
||||
autoSetupRemote = true
|
||||
|
||||
@@ -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 = {},
|
||||
|
||||
@@ -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" },
|
||||
|
||||
Reference in New Issue
Block a user