init: c# lsp, this sucks

This commit is contained in:
kossLAN 2025-05-19 20:09:18 -04:00
parent 8da6a29bda
commit 2fe32beed2
Signed by: kossLAN
SSH key fingerprint: SHA256:bdV0x+wdQHGJ6LgmstH3KV8OpWY+OOFmJcPcB0wQPV8
3 changed files with 20 additions and 3 deletions

16
nvim/ftplugin/cs.lua Normal file
View file

@ -0,0 +1,16 @@
if vim.fn.executable('OmniSharp') ~= 1 then
return
end
vim.bo.tabstop = 4
vim.bo.shiftwidth = 4
vim.bo.expandtab = true
local lsp = require('user.lsp')
vim.lsp.start {
name = 'roslyn',
cmd = { 'OmniSharp', '-z', 'DotNet:enablePackageRestore=false', '--encoding', 'utf-8', '--languageserver' },
capabilities = lsp.make_client_capabilities(),
on_attach = lsp.on_attach,
}