mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2025-12-12 11:36:20 +00:00
feat: add neovide adjustments
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
inputs.ags.homeManagerModules.default
|
||||
inputs.nixvim.homeManagerModules.nixvim
|
||||
inputs.anyrun.homeManagerModules.default
|
||||
./programs/neovide.nix
|
||||
./packages
|
||||
./programs
|
||||
./services
|
||||
|
||||
4
home/programs/neovide.nix
Normal file
4
home/programs/neovide.nix
Normal file
@@ -0,0 +1,4 @@
|
||||
{pkgs, ...}: {
|
||||
home.packages = [pkgs.neovide];
|
||||
xdg.configFile."neovide/config.toml".source = ./neovide.toml;
|
||||
}
|
||||
6
home/programs/neovide.toml
Normal file
6
home/programs/neovide.toml
Normal file
@@ -0,0 +1,6 @@
|
||||
maximized = false
|
||||
|
||||
[font]
|
||||
normal = ["JetBrains Mono"]
|
||||
size = 16
|
||||
edging = "subpixelantialias"
|
||||
@@ -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 = ''
|
||||
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";
|
||||
|
||||
Reference in New Issue
Block a user