Compare commits
No commits in common. "7f60e7fcb0586b37886b852eba18b6ed6b041d0c" and "d032e3e274d023e48e5a9505004b360d9582b281" have entirely different histories.
7f60e7fcb0
...
d032e3e274
|
|
@ -22,25 +22,6 @@ modules["mason-lspconfig"].setup_handlers {
|
||||||
modules["lspconfig"][server_name].setup {
|
modules["lspconfig"][server_name].setup {
|
||||||
capabilities = capabilities
|
capabilities = capabilities
|
||||||
}
|
}
|
||||||
end,
|
|
||||||
["omnisharp"] = function ()
|
|
||||||
modules["lspconfig"]["omnisharp"].setup {
|
|
||||||
capabilities = capabilities,
|
|
||||||
on_attach = function (client,buffnr)
|
|
||||||
vim.notify("attaching to CS buffer {" .. buffnr .. "}")
|
|
||||||
local gr = vim.api.nvim_create_augroup("CS-OnAttach",{})
|
|
||||||
vim.api.nvim_create_autocmd({"BufWritePre"}, {
|
|
||||||
group = gr,
|
|
||||||
pattern = {"*.cs"},
|
|
||||||
desc = "(C#) Format before write",
|
|
||||||
callback = function ()
|
|
||||||
vim.lsp.buf.format()
|
|
||||||
end
|
|
||||||
}
|
|
||||||
)
|
|
||||||
vim.notify("Attached to CS buffer")
|
|
||||||
end
|
|
||||||
}
|
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
vim.o.spell = true
|
|
||||||
vim.o.textwidth = 75
|
|
||||||
Loading…
Reference in New Issue
Block a user