chore: update colorscheme

* Add export-kitty-colors.lua scripts to colors folder
Exports the current colorscheme to a kitty color scheme

* Modify peel-enhanced.vim theme

* Add lsp signature help
This commit is contained in:
Simon Lasbrugnas 2024-09-19 01:49:59 +02:00
parent 0e0e97ffbc
commit 1a97a8ee59
Signed by untrusted user who does not match committer: simon
GPG key ID: 86039876BA6ED8DE
6 changed files with 45 additions and 4 deletions

View file

@ -0,0 +1,29 @@
-- Export current colorscheme to kitty config format
function ExportColorsKitty()
local fn = vim.fn
local filename = os.getenv("HOME") .. "/.config/kitty/nvim_export.conf"
local file = io.open(filename, "w")
io.output(file)
io.write("# vim:ft=kitty" .. "\n\n")
io.write("# exported from " .. vim.g.colors_name .. "\n\n")
local fg = fn.synIDattr(fn.hlID("Normal"), "fg")
local bg = fn.synIDattr(fn.hlID("Normal"), "bg")
io.write("foreground " .. fg .. "\n")
io.write("background " .. bg .. "\n")
io.write("selection_foreground " .. bg .. "\n")
io.write("selection_background " .. fg .. "\n")
for i = 0,15 do
local var = "g:terminal_color_" .. tostring(i)
if fn.exists(var) == 1 then
local tc = fn.eval(var)
io.write("color" .. tostring(i) .. " " .. tc .. "\n")
if i == 2 then
io.write("cursor " .. tc .. "\n")
end
end
end
io.close(file)
print("Colors exported to " .. filename)
end
ExportColorsKitty()

View file

@ -40,7 +40,7 @@ hi StatusLineNC guifg=#edebe6 guibg=NONE gui=NONE
hi Pmenu guifg=#edebe6 guibg=NONE gui=NONE hi Pmenu guifg=#edebe6 guibg=NONE gui=NONE
hi PmenuSel guifg=NONE guibg=#94c7b6 gui=NONE hi PmenuSel guifg=NONE guibg=#94c7b6 gui=NONE
hi IncSearch guifg=#0c0b0a guibg=#f4d370 gui=NONE hi IncSearch guifg=#0c0b0a guibg=#f4d370 gui=NONE
hi Search guifg=NONE guibg=NONE gui=NONE hi Search guifg=NONE guibg=#404040 gui=NONE
hi Directory guifg=#94c7b6 guibg=NONE gui=NONE hi Directory guifg=#94c7b6 guibg=NONE gui=NONE
hi Folded guifg=#e2dfd7 guibg=NONE gui=NONE hi Folded guifg=#e2dfd7 guibg=NONE gui=NONE
hi Normal guifg=#d6e1c7 guibg=NONE gui=NONE hi Normal guifg=#d6e1c7 guibg=NONE gui=NONE

View file

@ -11,8 +11,10 @@
"indent-blankline.nvim": { "branch": "master", "commit": "18603eb949eba08300799f64027af11ef922283f" }, "indent-blankline.nvim": { "branch": "master", "commit": "18603eb949eba08300799f64027af11ef922283f" },
"lazy.nvim": { "branch": "main", "commit": "aca30f63619a7492ecdea8833a065cf83c80f764" }, "lazy.nvim": { "branch": "main", "commit": "aca30f63619a7492ecdea8833a065cf83c80f764" },
"lsp-zero.nvim": { "branch": "v3.x", "commit": "56db3d5ce5476b183783160e6045f7337ba12b83" }, "lsp-zero.nvim": { "branch": "v3.x", "commit": "56db3d5ce5476b183783160e6045f7337ba12b83" },
"mason-lspconfig.nvim": { "branch": "main", "commit": "25c11854aa25558ee6c03432edfa0df0217324be" }, "lsp_signature.nvim": { "branch": "master", "commit": "fc38521ea4d9ec8dbd4c2819ba8126cea743943b" },
"mason-lspconfig.nvim": { "branch": "main", "commit": "482350b050bd413931c2cdd4857443c3da7d57cb" },
"mason.nvim": { "branch": "main", "commit": "e2f7f9044ec30067bc11800a9e266664b88cda22" }, "mason.nvim": { "branch": "main", "commit": "e2f7f9044ec30067bc11800a9e266664b88cda22" },
"mellow.nvim": { "branch": "main", "commit": "5c8b4eaadf190f646f201322f96f00140b6b1a0b" },
"neodev.nvim": { "branch": "main", "commit": "46aa467dca16cf3dfe27098042402066d2ae242d" }, "neodev.nvim": { "branch": "main", "commit": "46aa467dca16cf3dfe27098042402066d2ae242d" },
"nvim-cmp": { "branch": "main", "commit": "ae644feb7b67bf1ce4260c231d1d4300b19c6f30" }, "nvim-cmp": { "branch": "main", "commit": "ae644feb7b67bf1ce4260c231d1d4300b19c6f30" },
"nvim-lspconfig": { "branch": "master", "commit": "46ce5fd8c081f179a509da423077f8372e63ffc4" }, "nvim-lspconfig": { "branch": "master", "commit": "46ce5fd8c081f179a509da423077f8372e63ffc4" },

View file

@ -14,4 +14,4 @@ vim.opt.rtp:prepend(lazypath)
require("lazy").setup({ { import = "plugins" } }) require("lazy").setup({ { import = "plugins" } })
vim.cmd([[colorscheme peel-enhanced]]) vim.cmd([[colorscheme mellow]])

View file

@ -64,6 +64,15 @@ return {
require("cmp").setup(opts) require("cmp").setup(opts)
end, end,
}, },
{
"ray-x/lsp_signature.nvim",
event = "VeryLazy",
opts = {},
config = function(_, opts) require 'lsp_signature'.setup(opts) end,
keys = {
{ "<C-k>", function() vim.lsp.buf.signature_help() end, desc = "Toggle Signature Help" },
},
},
-- Supermaven (copilot) -- Supermaven (copilot)
{ {
"supermaven-inc/supermaven-nvim", "supermaven-inc/supermaven-nvim",

View file

@ -38,4 +38,5 @@ return {
} }
end, end,
}, },
{ "mellow-theme/mellow.nvim" },
} }