Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix omnisharp lsp and remove deprecated options in plugins #4

Merged
merged 5 commits into from
Jan 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 0 additions & 29 deletions .github/workflows/super-linter.yml

This file was deleted.

8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ Unity versions are extremely appreciated!
First of all make sure that you have installed **Neovim >= 0.8.0**. You can do
that by following this [guide][neovim_installation].

For C# Language Server Protocol (LSP) support, **[omnisharp-roslyn](https://github.com/OmniSharp/omnisharp-roslyn)** is used.
Omnisharp is built using **[Mono](https://www.mono-project.com/)** on OSX/Linux therefore **Mono >= 6.4**
has to be globally installed. Mono can be officially installed from here:

**[Mono installation guide](https://www.mono-project.com/download/stable/#download-lin)**

The below dependencies should be properly installed, please take a look at
respective links for an up-to-date installation instructions.

Expand Down Expand Up @@ -70,7 +76,7 @@ Some plugins require external tools to be installed.
For a start, make sure the latest versions of these are installed:

1. Git
2. NPM
2. (optional) NPM

Type `:checkhealth` in a Neovim instance to check for missing dependencies.
Plugins with missing dependencies should be clearly identified and a simple
Expand Down
8 changes: 2 additions & 6 deletions after/plugin/indent_blankline.lua
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
local status_ok, indent_blankline = pcall(require, 'indent_blankline')
local status_ok, indent_blankline = pcall(require, 'ibl')
if not status_ok then
print('Plugin not loaded: ', 'indent_blankline')
return
end
indent_blankline.setup {
-- for example, context is off by default, use this to turn it on
show_current_context = false,
show_current_context_start = true,
}
indent_blankline.setup {}
14 changes: 8 additions & 6 deletions after/plugin/lsp_related/lspconfig.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ mason.setup {
}
-- Add your language server(s) here
local servers = {}
--------------------------------- ADD LINTERS AND FORMATTERS HERE -------------------------------------------
------------------------------------- ADD LINTERS AND FORMATTERS HERE ---------------------------------------
local linters_and_formatters = {
'black',
'ruff',
Expand All @@ -57,7 +57,7 @@ local linters_and_formatters = {
'markdownlint',
}
-------------------------------------------------------------------------------------------------------------
------------------------------------- ADD YOUR DEBUGGER(S) HERE ---------------------------------------------
----------------------------------------- ADD YOUR DEBUGGER(S) HERE -----------------------------------------
local debuggers = {
'debugpy',
}
Expand Down Expand Up @@ -94,10 +94,13 @@ local default_config = { -- Default config for all language servers
on_attach = on_attach,
capabilities = capabilities,
}
-------------------------------- ADD YOUR LANGUAGE SERVER(S) HERE -------------------------------------------
------------------------------------- ADD YOUR LANGUAGE SERVER(S) HERE --------------------------------------
-- Replace with your own path to Omnisharp executable
local omnisharp_executable = "omnisharp";
servers['omnisharp'] = { -- Configuration for omnisharp
-- On OSX/Linux, use omnisharp-mono and make sure Mono >= 6.4.0 is installed
-- On Windows, use omnisharp and make sure .NET SDK >= 6.0 is installed
-- Read README at official omnisharp repo: https://github.com/OmniSharp/omnisharp-roslyn
local omnisharp_executable = "omnisharp-mono";
servers['omnisharp_mono'] = { -- Configuration for omnisharp
on_attach = on_attach,
capabilities = capabilities,
handlers = {
Expand Down Expand Up @@ -138,7 +141,6 @@ servers['tsserver'] = default_config
-- Ensure installed servers
local ensure_installed = {}
for lsp, _ in pairs(servers) do
-- we want omnisharp-mono installed not omnisharp
table.insert(ensure_installed, lsp)
end
for _, linter_or_formatter in pairs(linters_and_formatters) do -- Ensure linters and formatters are installed
Expand Down
1 change: 0 additions & 1 deletion after/plugin/nvim_tree.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ nvim_tree.setup { -- BEGIN_DEFAULT_OPTS
cursorline = true,
debounce_delay = 15,
width = 30,
hide_root_folder = false,
side = "right",
preserve_window_proportions = false,
number = false,
Expand Down