csharp and neotree diags
This commit is contained in:
@ -1,18 +1,15 @@
|
|||||||
return {
|
return {
|
||||||
url = "https://git.sr.ht/~whynothugo/lsp_lines.nvim",
|
url = "https://git.sr.ht/~whynothugo/lsp_lines.nvim",
|
||||||
name = "lsp_lines.nvim",
|
name = "lsp_lines.nvim",
|
||||||
lazy = false,
|
|
||||||
config = function()
|
config = function()
|
||||||
vim.diagnostic.config({
|
vim.diagnostic.config({
|
||||||
virtual_lines = { only_current_line = true },
|
-- virtual_lines = { only_current_line = true },
|
||||||
-- virtual_lines = true,
|
virtual_lines = true,
|
||||||
|
update_on_insert = false,
|
||||||
update_in_insert = false,
|
|
||||||
virtual_text = false,
|
virtual_text = false,
|
||||||
})
|
})
|
||||||
|
|
||||||
require("lsp_lines").setup()
|
require("lsp_lines").setup()
|
||||||
-- require("lsp_lines").toggle()
|
|
||||||
end,
|
end,
|
||||||
keys = {
|
keys = {
|
||||||
{
|
{
|
||||||
|
@ -54,6 +54,46 @@ return {
|
|||||||
["rust_analyzer"] = function()
|
["rust_analyzer"] = function()
|
||||||
require("rust-tools").setup({})
|
require("rust-tools").setup({})
|
||||||
end,
|
end,
|
||||||
|
["omnisharp_mono"] = function()
|
||||||
|
require("lspconfig").omnisharp_mono.setup({
|
||||||
|
-- cmd = { "dotnet", "/path/to/omnisharp/OmniSharp.dll" },
|
||||||
|
|
||||||
|
-- Enables support for reading code style, naming convention and analyzer
|
||||||
|
-- settings from .editorconfig.
|
||||||
|
enable_editorconfig_support = true,
|
||||||
|
|
||||||
|
-- If true, MSBuild project system will only load projects for files that
|
||||||
|
-- were opened in the editor. This setting is useful for big C# codebases
|
||||||
|
-- and allows for faster initialization of code navigation features only
|
||||||
|
-- for projects that are relevant to code that is being edited. With this
|
||||||
|
-- setting enabled OmniSharp may load fewer projects and may thus display
|
||||||
|
-- incomplete reference lists for symbols.
|
||||||
|
enable_ms_build_load_projects_on_demand = false, -- default false
|
||||||
|
|
||||||
|
-- Enables support for roslyn analyzers, code fixes and rulesets.
|
||||||
|
enable_roslyn_analyzers = true, -- default false
|
||||||
|
|
||||||
|
-- Specifies whether 'using' directives should be grouped and sorted during
|
||||||
|
-- document formatting.
|
||||||
|
organize_imports_on_format = true, -- default false
|
||||||
|
|
||||||
|
-- Enables support for showing unimported types and unimported extension
|
||||||
|
-- methods in completion lists. When committed, the appropriate using
|
||||||
|
-- directive will be added at the top of the current file. This option can
|
||||||
|
-- have a negative impact on initial completion responsiveness,
|
||||||
|
-- particularly for the first few completion sessions after opening a
|
||||||
|
-- solution.
|
||||||
|
enable_import_completion = true, -- default false
|
||||||
|
|
||||||
|
-- Specifies whether to include preview versions of the .NET SDK when
|
||||||
|
-- determining which version to use for project loading.
|
||||||
|
sdk_include_prereleases = true,
|
||||||
|
|
||||||
|
-- Only run analyzers against open files when 'enableRoslynAnalyzers' is
|
||||||
|
-- true
|
||||||
|
analyze_open_documents_only = true, -- default false
|
||||||
|
})
|
||||||
|
end,
|
||||||
["lua_ls"] = function()
|
["lua_ls"] = function()
|
||||||
require("lspconfig").lua_ls.setup({
|
require("lspconfig").lua_ls.setup({
|
||||||
settings = {
|
settings = {
|
||||||
@ -71,9 +111,13 @@ return {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
workspace = {
|
workspace = {
|
||||||
checkThirdParty = false, --# stop a anoying dialog on startup
|
checkThirdParty = false, -- stop a annoying dialog on startup
|
||||||
-- Make the server aware of Neovim runtime files
|
-- Make the server aware of Neovim runtime files
|
||||||
library = vim.api.nvim_get_runtime_file("", true),
|
-- library = vim.api.nvim_get_runtime_file("", true),
|
||||||
|
library = {
|
||||||
|
[vim.fn.expand("$VIMRUNTIME/lua")] = true,
|
||||||
|
[vim.fn.expand("$VIMRUNTIME/lua/vim/lsp")] = true,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
-- Do not send telemetry data containing a randomized but unique identifier
|
-- Do not send telemetry data containing a randomized but unique identifier
|
||||||
telemetry = {
|
telemetry = {
|
||||||
|
@ -4,6 +4,13 @@ return {
|
|||||||
branch = "v2.x",
|
branch = "v2.x",
|
||||||
config = function()
|
config = function()
|
||||||
require("neo-tree").setup({
|
require("neo-tree").setup({
|
||||||
|
sources = {
|
||||||
|
"filesystem",
|
||||||
|
"buffers",
|
||||||
|
"git_status",
|
||||||
|
"diagnostics",
|
||||||
|
-- ...and any additional source
|
||||||
|
},
|
||||||
hijack_netrw_behavior = "open_current",
|
hijack_netrw_behavior = "open_current",
|
||||||
window = {
|
window = {
|
||||||
mappings = {
|
mappings = {
|
||||||
@ -14,17 +21,11 @@ return {
|
|||||||
end,
|
end,
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"nvim-lua/plenary.nvim",
|
"nvim-lua/plenary.nvim",
|
||||||
|
"mrbjarksen/neo-tree-diagnostics.nvim",
|
||||||
"MunifTanjim/nui.nvim",
|
"MunifTanjim/nui.nvim",
|
||||||
},
|
},
|
||||||
lazy = false,
|
|
||||||
keys = {
|
keys = {
|
||||||
{ "<C-n>", ":Neotree filesystem reveal toggle reveal_force_cwd<cr>", desc = "Open NeoTree" },
|
{ "<C-n>", ":Neotree filesystem reveal toggle reveal_force_cwd<cr>", desc = "Open NeoTree" },
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"mrbjarksen/neo-tree-diagnostics.nvim",
|
|
||||||
dependencies = { "nvim-neo-tree/neo-tree.nvim" },
|
|
||||||
keys = {
|
|
||||||
{ "<Leader>xd", "<Cmd>Neotree diagnostics reveal bottom<CR>" },
|
{ "<Leader>xd", "<Cmd>Neotree diagnostics reveal bottom<CR>" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -10,7 +10,7 @@ return {
|
|||||||
warning = " ",
|
warning = " ",
|
||||||
hint = " ",
|
hint = " ",
|
||||||
information = " ",
|
information = " ",
|
||||||
other = "?",
|
other = " ",
|
||||||
},
|
},
|
||||||
use_diagnostic_signs = false, -- enabling this will use the signs defined in your lsp client
|
use_diagnostic_signs = false, -- enabling this will use the signs defined in your lsp client
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user