transparent background, signature_help with c-g
This commit is contained in:
parent
7b6a433e5a
commit
b730bca0de
27
init.lua
27
init.lua
|
@ -463,6 +463,11 @@ require('lazy').setup({
|
||||||
vim.api.nvim_create_autocmd('LspAttach', {
|
vim.api.nvim_create_autocmd('LspAttach', {
|
||||||
group = vim.api.nvim_create_augroup('kickstart-lsp-attach', { clear = true }),
|
group = vim.api.nvim_create_augroup('kickstart-lsp-attach', { clear = true }),
|
||||||
callback = function(event)
|
callback = function(event)
|
||||||
|
vim.keymap.set('i', '<C-g>', 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
|
-- 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.
|
-- 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!
|
-- No, but seriously. Please read `:help ins-completion`, it is really good!
|
||||||
mapping = cmp.mapping.preset.insert {
|
mapping = cmp.mapping.preset.insert {
|
||||||
-- Select the [n]ext item
|
-- Select the [n]ext item
|
||||||
-- ['<C-n>'] = cmp.mapping.select_next_item(),
|
['<C-n>'] = cmp.mapping.select_next_item(),
|
||||||
-- Select the [p]revious item
|
-- Select the [p]revious item
|
||||||
-- ['<C-p>'] = cmp.mapping.select_prev_item(),
|
['<C-p>'] = cmp.mapping.select_prev_item(),
|
||||||
|
|
||||||
-- Scroll the documentation window [b]ack / [f]orward
|
-- Scroll the documentation window [b]ack / [f]orward
|
||||||
['<C-b>'] = cmp.mapping.scroll_docs(-4),
|
['<C-b>'] = cmp.mapping.scroll_docs(-4),
|
||||||
|
@ -741,8 +746,8 @@ require('lazy').setup({
|
||||||
-- If you prefer more traditional completion keymaps,
|
-- If you prefer more traditional completion keymaps,
|
||||||
-- you can uncomment the following lines
|
-- you can uncomment the following lines
|
||||||
-- ['<CR>'] = cmp.mapping.confirm { select = true },
|
-- ['<CR>'] = cmp.mapping.confirm { select = true },
|
||||||
['<Tab>'] = cmp.mapping.select_next_item(),
|
-- ['<Tab>'] = cmp.mapping.select_next_item(),
|
||||||
['<S-Tab>'] = cmp.mapping.select_prev_item(),
|
-- ['<S-Tab>'] = cmp.mapping.select_prev_item(),
|
||||||
|
|
||||||
-- Manually trigger a completion from nvim-cmp.
|
-- Manually trigger a completion from nvim-cmp.
|
||||||
-- Generally you don't need this, because nvim-cmp will display
|
-- Generally you don't need this, because nvim-cmp will display
|
||||||
|
@ -795,6 +800,20 @@ require('lazy').setup({
|
||||||
'folke/tokyonight.nvim',
|
'folke/tokyonight.nvim',
|
||||||
priority = 1000, -- Make sure to load this before all the other start plugins.
|
priority = 1000, -- Make sure to load this before all the other start plugins.
|
||||||
init = function()
|
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.
|
-- Load the colorscheme here.
|
||||||
-- Like many other themes, this one has different styles, and you could load
|
-- Like many other themes, this one has different styles, and you could load
|
||||||
-- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'.
|
-- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'.
|
||||||
|
|
Loading…
Reference in New Issue