add kitty conf and auto kitty theme change

This commit is contained in:
2024-05-05 17:41:27 +01:00
parent 1b884b440e
commit 3557e89936
9 changed files with 2746 additions and 3 deletions

View File

@@ -100,12 +100,12 @@ function setup_plugins()
require("auto-dark-mode").setup({
set_dark_mode = function()
vim.opt.background = "dark"
vim.cmd("colorscheme duskfox")
vim.cmd("colorscheme catppuccin-mocha")
end,
set_light_mode = function()
vim.opt.background = "light"
vim.cmd("colorscheme dawnfox")
vim.cmd("colorscheme catppuccin-latte")
end,
})
@@ -374,6 +374,20 @@ function config_vim()
extension = {
typ = "typst",
},
filename = {
["Dockerfile"] = "dockerfile",
["docker-compose.yml"] = "yaml.docker-compose",
["docker-compose.yaml"] = "yaml.docker-compose",
["compose.yml"] = "yaml.docker-compose",
["compose.yaml"] = "yaml.docker-compose",
},
pattern = {
["Dockerfile.*"] = "dockerfile",
["docker%-compose%b..yml"] = "yaml.docker-compose",
["compose%b..yml"] = "yaml.docker-compose",
},
})
local augroup = vim.api.nvim_create_augroup
@@ -384,13 +398,20 @@ function config_vim()
command = ":FormatWrite",
})
vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with(vim.lsp.diagnostic.on_publish_diagnostics, {
vim.diagnostic.config({
virtual_text = false,
update_in_insert = true,
})
local signs = { Error = "󰅚 ", Warn = "󰀪 ", Hint = "󰌶 ", Info = "" }
for type, icon in pairs(signs) do
local hl = "DiagnosticSign" .. type
vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl })
end
end
PLUGINS = {
{ "EdenEast/nightfox.nvim" },
{ "catppuccin/nvim", name = "catppuccin", priority = 1000 },
{ "shortcuts/no-neck-pain.nvim" },
{ "nvim-tree/nvim-web-devicons" },
{ "nvim-tree/nvim-tree.lua" },

View File

@@ -1,6 +1,7 @@
{
"LuaSnip": { "branch": "master", "commit": "b152822e1a4bafb6bdf11a16cc26525cbd95ee00" },
"auto-dark-mode.nvim": { "branch": "master", "commit": "e328dc463d238cb7d690fb4daf068eba732a5a14" },
"catppuccin": { "branch": "main", "commit": "6af91673ceccbd6e073b66c439e7fce239f72d24" },
"cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
"cmp-cmdline": { "branch": "main", "commit": "d250c63aa13ead745e3a40f61fdd3470efde3923" },
"cmp-nvim-lsp": { "branch": "main", "commit": "5af77f54de1b16c34b23cba810150689a3a90312" },