From b730bca0def0b604fa3ba4739ff1be3f0b904db3 Mon Sep 17 00:00:00 2001 From: Dynocoder Date: Mon, 9 Sep 2024 15:14:26 -0400 Subject: [PATCH] transparent background, signature_help with c-g --- init.lua | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/init.lua b/init.lua index ab5b22d7..d6698103 100644 --- a/init.lua +++ b/init.lua @@ -463,6 +463,11 @@ require('lazy').setup({ vim.api.nvim_create_autocmd('LspAttach', { group = vim.api.nvim_create_augroup('kickstart-lsp-attach', { clear = true }), callback = function(event) + vim.keymap.set('i', '', function() + vim.lsp.buf.signature_help() + end, { buffer = event.buf }) + -- + -- NOTE: Remember that Lua is a real programming language, and as such it is possible -- to define small helper and utility functions so you don't have to repeat yourself. -- @@ -725,9 +730,9 @@ require('lazy').setup({ -- No, but seriously. Please read `:help ins-completion`, it is really good! mapping = cmp.mapping.preset.insert { -- Select the [n]ext item - -- [''] = cmp.mapping.select_next_item(), + [''] = cmp.mapping.select_next_item(), -- Select the [p]revious item - -- [''] = cmp.mapping.select_prev_item(), + [''] = cmp.mapping.select_prev_item(), -- Scroll the documentation window [b]ack / [f]orward [''] = cmp.mapping.scroll_docs(-4), @@ -741,8 +746,8 @@ require('lazy').setup({ -- If you prefer more traditional completion keymaps, -- you can uncomment the following lines -- [''] = cmp.mapping.confirm { select = true }, - [''] = cmp.mapping.select_next_item(), - [''] = cmp.mapping.select_prev_item(), + -- [''] = cmp.mapping.select_next_item(), + -- [''] = cmp.mapping.select_prev_item(), -- Manually trigger a completion from nvim-cmp. -- Generally you don't need this, because nvim-cmp will display @@ -795,6 +800,20 @@ require('lazy').setup({ 'folke/tokyonight.nvim', priority = 1000, -- Make sure to load this before all the other start plugins. init = function() + require('tokyonight').setup { + transparent = true, + styles = { + -- Style to be applied to different syntax groups + -- Value is any valid attr-list value for `:help nvim_set_hl` + comments = { italic = true }, + keywords = { italic = true }, + functions = {}, + variables = {}, + -- Background styles. Can be "dark", "transparent" or "normal" + sidebars = 'transparent', -- style for sidebars, see below + floats = 'transparent', -- style for floating windows + }, + } -- Load the colorscheme here. -- Like many other themes, this one has different styles, and you could load -- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'.