From 7adcbdf8a9406f27a68c79ba42a8deca3ca8a7c9 Mon Sep 17 00:00:00 2001 From: Kinesin Data Technologies Incorporated Date: Wed, 22 Nov 2023 05:36:55 -0500 Subject: [PATCH] Adding lsp_signature --- init.lua | 51 +++++++++++++++++++++++++++++---------------------- 1 file changed, 29 insertions(+), 22 deletions(-) diff --git a/init.lua b/init.lua index e4b84eb..4ef63aa 100644 --- a/init.lua +++ b/init.lua @@ -125,8 +125,15 @@ require('lazy').setup({ }, }, + { + "ray-x/lsp_signature.nvim", + event = "VeryLazy", + opts = {}, + config = function(_, opts) require 'lsp_signature'.setup(opts) end + }, + -- Useful plugin to show you pending keybinds. - { 'folke/which-key.nvim', opts = {} }, + { 'folke/which-key.nvim', opts = {} }, { -- Adds git related signs to the gutter, as well as utilities for managing changes 'lewis6991/gitsigns.nvim', @@ -744,10 +751,10 @@ vim.keymap.set("v", "", "SlimeRegionSend") vim.keymap.set("n", "v", ":SlimeConfig") vim.api.nvim_create_autocmd("FileType", { - pattern = "python", - callback = function() - vim.g.slime_python_ipython = 1 - end + pattern = "python", + callback = function() + vim.g.slime_python_ipython = 1 + end }) vim.keymap.set("n", "ga", ":EasyAlign") @@ -757,7 +764,7 @@ local builtin = require('telescope.builtin') vim.keymap.set('n', 'ff', builtin.find_files, {}) vim.keymap.set('n', '', builtin.git_files, {}) vim.keymap.set('n', 'ps', function() - builtin.grep_string({ search = vim.fn.input("Grep > ") }) + builtin.grep_string({ search = vim.fn.input("Grep > ") }) end) -- Define a function to highlight the current search term @@ -780,22 +787,22 @@ vim.keymap.set("n", "m5", function() highlight_search_term("Matchadd_5") vim.keymap.set("n", "mc", function() vim.fn.clearmatches() end) local colors = { - base03 = '#002b36', - base02 = '#073642', - base01 = '#586e75', - base00 = '#657b83', - base0 = '#839496', - base1 = '#93a1a1', - base2 = '#eee8d5', - base3 = '#fdf6e3', - yellow = '#b58900', - orange = '#cb4b16', - red = '#dc322f', - magenta = '#d33682', - violet = '#6c71c4', - blue = '#268bd2', - cyan = '#2aa198', - green = '#859900', + base03 = '#002b36', + base02 = '#073642', + base01 = '#586e75', + base00 = '#657b83', + base0 = '#839496', + base1 = '#93a1a1', + base2 = '#eee8d5', + base3 = '#fdf6e3', + yellow = '#b58900', + orange = '#cb4b16', + red = '#dc322f', + magenta = '#d33682', + violet = '#6c71c4', + blue = '#268bd2', + cyan = '#2aa198', + green = '#859900', } vim.api.nvim_set_hl(0, "Matchadd_1", { bg = colors.blue, fg = 0 })