From 7cca5541771ce99ff88279583906693007feb0e8 Mon Sep 17 00:00:00 2001 From: Xander Swan Date: Wed, 3 Dec 2025 10:00:41 -0500 Subject: Pasta --- .config/nvim/lua/plugin/lsp.lua | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) (limited to '.config/nvim/lua/plugin/lsp.lua') diff --git a/.config/nvim/lua/plugin/lsp.lua b/.config/nvim/lua/plugin/lsp.lua index 1545519..88d5c91 100644 --- a/.config/nvim/lua/plugin/lsp.lua +++ b/.config/nvim/lua/plugin/lsp.lua @@ -13,6 +13,15 @@ lsp.ensure_installed { lspconfig.gdscript.setup {} +lspconfig.omnisharp.setup { + cmd = { + "/usr/bin/omnisharp", + "--languageserver", + "--hostPID", + tostring(vim.fn.getpid()) + } +} + local cmp = require("cmp") local cmp_select = { behavior = cmp.SelectBehavior.Select } local cmp_mappings = lsp.defaults.cmp_mappings { @@ -27,19 +36,17 @@ lsp.setup_nvim_cmp { } lsp.set_preferences { - suggest_lsp_servers = false, - sign_icons = { - error = "E", - warn = "W", - hint = "H", - info = "I", - } } lsp.on_attach(function(_, buffer) local opts = { buffer=buffer, remap=false } vim.keymap.set("n", "ld", function() vim.lsp.buf.definition() end, opts) + vim.keymap.set("n", "h", function() vim.lsp.buf.hover() end, opts) + vim.keymap.set("n", "la", function() vim.lsp.buf.code_action() end, opts) + vim.keymap.set("n", "lrf", function() vim.lsp.buf.references() end, opts) + vim.keymap.set("n", "lrn", function() vim.lsp.buf.rename() end, opts) + vim.keymap.set("n", "ls", function() vim.lsp.buf.signature_help() end, opts) end) lsp.setup() -- cgit v1.3-2-g0d8e