Compare commits
4 Commits
3acaf94e3b
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| a0e8d4b2e1 | |||
| 17f6c13632 | |||
| 040ef6d8c5 | |||
| 6acf4ef686 |
@@ -102,7 +102,7 @@ lazy.setup({
|
|||||||
{
|
{
|
||||||
"nvim-neo-tree/neo-tree.nvim",
|
"nvim-neo-tree/neo-tree.nvim",
|
||||||
keys = {
|
keys = {
|
||||||
{ "<leader>e", "<cmd>Neotree toggle<cr>", desc = "NeoTree" },
|
{ "<leader>e", "<cmd>Neotree reveal toggle<cr>", desc = "NeoTree" },
|
||||||
},
|
},
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"nvim-tree/nvim-web-devicons",
|
"nvim-tree/nvim-web-devicons",
|
||||||
@@ -328,12 +328,6 @@ lazy.setup({
|
|||||||
end
|
end
|
||||||
},
|
},
|
||||||
|
|
||||||
-- Copilot!!
|
|
||||||
-- {
|
|
||||||
-- "github/copilot.vim",
|
|
||||||
-- event = { "BufReadPre", "BufNewFile" },
|
|
||||||
-- },
|
|
||||||
|
|
||||||
-- lspconfig is the configuration framework for the nvim lsp client. It has best effort
|
-- lspconfig is the configuration framework for the nvim lsp client. It has best effort
|
||||||
-- configs for every language. Mason.nvim is the plugin that will install the lsp servers
|
-- configs for every language. Mason.nvim is the plugin that will install the lsp servers
|
||||||
-- (and dap servers). Mason-lspconfig is the plugin that will configure the lsp servers
|
-- (and dap servers). Mason-lspconfig is the plugin that will configure the lsp servers
|
||||||
@@ -343,8 +337,7 @@ lazy.setup({
|
|||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
event = { "BufReadPre", "BufNewFile" },
|
event = { "BufReadPre", "BufNewFile" },
|
||||||
config = function()
|
config = function()
|
||||||
require('lspconfig').lua_ls.setup({})
|
V.lsp.enable('lua_ls', 'powershell_es')
|
||||||
require("lspconfig").powershell_es.setup({})
|
|
||||||
|
|
||||||
-- The default borders from nvim-lspconfig, which is what is used to configure the lsp servers
|
-- The default borders from nvim-lspconfig, which is what is used to configure the lsp servers
|
||||||
-- in this configuration, are not visible. This is a workaround to update the borders key in the
|
-- in this configuration, are not visible. This is a workaround to update the borders key in the
|
||||||
@@ -365,24 +358,10 @@ lazy.setup({
|
|||||||
}
|
}
|
||||||
|
|
||||||
-- RUST --
|
-- RUST --
|
||||||
local handlers = {
|
V.lsp.enable('rust_analyzer')
|
||||||
["textDocument/hover"] = V.lsp.with(V.lsp.handlers.hover, { border = border }),
|
|
||||||
["textDocument/signatureHelp"] = V.lsp.with(V.lsp.handlers.signature_help, { border = border }),
|
|
||||||
}
|
|
||||||
require("lspconfig").rust_analyzer.setup({ handlers = handlers })
|
|
||||||
|
|
||||||
-- C# --
|
-- C# --
|
||||||
local omnisharp_extended = require("omnisharp_extended") -- decompilation support
|
V.lsp.config('omnisharp', {
|
||||||
local omnisharp_handlers = {
|
|
||||||
["textDocument/hover"] = V.lsp.with(V.lsp.handlers.hover, { border = border }),
|
|
||||||
["textDocument/signatureHelp"] = V.lsp.with(V.lsp.handlers.signature_help, { border = border }),
|
|
||||||
["textDocument/definition"] = omnisharp_extended.definition_handler,
|
|
||||||
["textDocument/references"] = omnisharp_extended.references_handler,
|
|
||||||
["textDocument/implementation"] = omnisharp_extended.implementation_handler,
|
|
||||||
}
|
|
||||||
|
|
||||||
require("lspconfig").omnisharp.setup({
|
|
||||||
handlers = omnisharp_handlers,
|
|
||||||
enable_editorconfig_support = true,
|
enable_editorconfig_support = true,
|
||||||
enable_ms_build_load_projects_on_demand = false,
|
enable_ms_build_load_projects_on_demand = false,
|
||||||
enable_roslyn_analyzers = true,
|
enable_roslyn_analyzers = true,
|
||||||
@@ -391,6 +370,7 @@ lazy.setup({
|
|||||||
sdk_include_prereleases = true,
|
sdk_include_prereleases = true,
|
||||||
analyze_open_documents_only = true,
|
analyze_open_documents_only = true,
|
||||||
})
|
})
|
||||||
|
V.lsp.enable('omnisharp')
|
||||||
|
|
||||||
-- Add default LSP keybindings
|
-- Add default LSP keybindings
|
||||||
V.api.nvim_create_autocmd('LspAttach', {
|
V.api.nvim_create_autocmd('LspAttach', {
|
||||||
@@ -611,7 +591,7 @@ lazy.setup({
|
|||||||
-- Treesitter
|
-- Treesitter
|
||||||
{
|
{
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
branch = 'master',
|
branch = 'main',
|
||||||
lazy = false,
|
lazy = false,
|
||||||
build = ":TSUpdate",
|
build = ":TSUpdate",
|
||||||
opts_extend = { "ensure_installed" },
|
opts_extend = { "ensure_installed" },
|
||||||
|
|||||||
Reference in New Issue
Block a user