Compare commits
3 Commits
d032e3e274
...
7f60e7fcb0
| Author | SHA1 | Date | |
|---|---|---|---|
| 7f60e7fcb0 | |||
| 40eeea3bd9 | |||
| c898cad0df |
|
|
@ -22,6 +22,25 @@ modules["mason-lspconfig"].setup_handlers {
|
|||
modules["lspconfig"][server_name].setup {
|
||||
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
|
||||
}
|
||||
|
||||
|
|
|
|||
2
ftplugin/markdown.lua
Normal file
2
ftplugin/markdown.lua
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
vim.o.spell = true
|
||||
vim.o.textwidth = 75
|
||||
Loading…
Reference in New Issue
Block a user