mirror of
https://github.com/zoriya/flake.git
synced 2026-08-15 18:43:42 +00:00
Update stuff
This commit is contained in:
+35
-25
@@ -19,33 +19,43 @@ vim.lsp.enable({
|
||||
"biome",
|
||||
"tailwindcss",
|
||||
"sqls",
|
||||
"qmlls"
|
||||
-- "roslyn_ls", we use roslyn.nvim plugin instead.
|
||||
"qmlls",
|
||||
"roslyn_ls", --we use roslyn.nvim plugin instead.
|
||||
})
|
||||
|
||||
-- vim.api.nvim_create_autocmd("LspAttach", {
|
||||
-- group = vim.api.nvim_create_augroup("lsp-setup", {}),
|
||||
-- callback = function(ev)
|
||||
-- local client = assert(vim.lsp.get_client_by_id(ev.data.client_id))
|
||||
-- if client:supports_method('textDocument/completion') then
|
||||
-- vim.lsp.completion.enable(true, client.id, ev.buf)
|
||||
-- end
|
||||
-- end,
|
||||
-- })
|
||||
vim.lsp.on_type_formatting.enable()
|
||||
vim.lsp.document_color.enable(true, nil, { style = "virtual" })
|
||||
|
||||
return {
|
||||
-- see https://github.com/seblyng/roslyn.nvim/pull/178
|
||||
{
|
||||
"roslyn.nvim",
|
||||
ft = { "cs", "vb" },
|
||||
opts = {
|
||||
broad_search = true,
|
||||
},
|
||||
after = function(plug)
|
||||
vim.lsp.config("roslyn", {
|
||||
cmd = {
|
||||
'Microsoft.CodeAnalysis.LanguageServer',
|
||||
'--logLevel',
|
||||
'Information',
|
||||
'--extensionLogDirectory',
|
||||
vim.fs.joinpath(vim.uv.os_tmpdir(), 'roslyn_ls/logs'),
|
||||
'--stdio',
|
||||
},
|
||||
})
|
||||
require("roslyn").setup(plug.opts)
|
||||
end,
|
||||
},
|
||||
}
|
||||
return {}
|
||||
-- return {
|
||||
-- -- see https://github.com/seblyng/roslyn.nvim/pull/178
|
||||
-- {
|
||||
-- "roslyn.nvim",
|
||||
-- ft = { "cs", "vb" },
|
||||
-- opts = {
|
||||
-- broad_search = true,
|
||||
-- },
|
||||
-- after = function(plug)
|
||||
-- vim.lsp.config("roslyn", {
|
||||
-- cmd = {
|
||||
-- 'Microsoft.CodeAnalysis.LanguageServer',
|
||||
-- '--logLevel',
|
||||
-- 'Information',
|
||||
-- '--extensionLogDirectory',
|
||||
-- vim.fs.joinpath(vim.uv.os_tmpdir(), 'roslyn_ls/logs'),
|
||||
-- '--stdio',
|
||||
-- },
|
||||
-- })
|
||||
-- require("roslyn").setup(plug.opts)
|
||||
-- end,
|
||||
-- },
|
||||
-- }
|
||||
|
||||
@@ -148,7 +148,7 @@ vim.keymap.set("n", "gD", function() vim.lsp.buf.declaration() end, { desc = "Go
|
||||
vim.keymap.set("n", "grs", function() vim.lsp.buf.type_definition() end, { desc = "Go to type definition" })
|
||||
|
||||
-- vim.keymap.set({ 'i' }, '<C-Space>', function()
|
||||
-- vim.lsp.completion.trigger()
|
||||
-- vim.lsp.completion.get()
|
||||
-- end, { desc = "Trigger completion" })
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user