feat: add neovide adjustments

This commit is contained in:
2024-01-16 18:08:56 +01:00
parent ae65e1d2d8
commit 87cb4e44e7
4 changed files with 36 additions and 3 deletions

View File

@@ -18,6 +18,7 @@
inputs.ags.homeManagerModules.default
inputs.nixvim.homeManagerModules.nixvim
inputs.anyrun.homeManagerModules.default
./programs/neovide.nix
./packages
./programs
./services

View File

@@ -0,0 +1,4 @@
{pkgs, ...}: {
home.packages = [pkgs.neovide];
xdg.configFile."neovide/config.toml".source = ./neovide.toml;
}

View File

@@ -0,0 +1,6 @@
maximized = false
[font]
normal = ["JetBrains Mono"]
size = 16
edging = "subpixelantialias"

View File

@@ -188,12 +188,20 @@ in {
minimap_close_buftypes = ["nofile"];
minimap_block_filetypes = ["NvimTree"];
catppuccin_debug = true;
mapleader = ";";
mergetool_layout = "mr";
mergetool_prefer_revision = "local";
guifont = "JetBrains_Mono:h12";
neovide_transparency = 0.8;
neovide_padding_top = 10;
neovide_padding_bottom = 10;
neovide_padding_left = 10;
neovide_padding_right = 10;
neovide_floating_blur_amount_x = 10;
neovide_floating_blur_amount_y = 10;
};
clipboard = {
@@ -202,7 +210,9 @@ in {
};
extraConfigVim = ''
hi Normal guibg=NONE ctermbg=NONE
if !exists("g:neovide")
hi Normal guibg=NONE ctermbg=NONE
endif
set noshowmode
'';
@@ -212,6 +222,17 @@ in {
require("rest-nvim").setup({})
require("actions-preview").setup({})
if vim.g.neovide then
vim.api.nvim_create_autocmd("ColorScheme", {
pattern = "*",
callback = function()
local flavour = require("catppuccin").options.background[vim.o.background]
local palette = require("catppuccin.palettes").get_palette(flavour)
vim.cmd("hi Normal guibg=" .. palette.base)
end,
})
end
local signs = {
{ name = "DiagnosticSignError", text = "" },
{ name = "DiagnosticSignWarn", text = "" },
@@ -257,6 +278,7 @@ in {
colorschemes.catppuccin = {
enable = true;
terminalColors = true;
transparentBackground = true;
background = {
dark = "frappe";