# nixos-config - My current NixOS configuration # # Copyright (C) 2025 Benedikt Peetz # SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of my nixos-config. # # You should have received a copy of the License along with this program. # If not, see . { lib, config, ... }: let cfg = config.soispha.programs.nvim; in { # TODO: change the nvim path, when I change the path with lf home-manager.users.soispha.programs.nixvim = lib.mkIf cfg.enable { plugins.lf = { enable = true; settings = { default_actions = { "" = "tab drop"; "" = "tabedit"; "" = "vsplit"; "" = "split"; }; default_action = "drop"; winblend = 10; dir = ""; direction = "float"; border = "rounded"; height.__raw = "vim.fn.float2nr(vim.fn.round(0.75 * vim.o.lines))"; width.__raw = "vim.fn.float2nr(vim.fn.round(0.75 * vim.o.columns))"; escape_quit = true; focus_on_open = true; mappings = true; tmux = false; default_file_manager = true; disable_netrw_warning = true; highlights = { Normal = {link = "Normal";}; NormalFloat = {link = "Normal";}; FloatBorder = { guifg = "#cdcbe0"; guibg = "#191726"; }; }; layout_mapping = ""; views = [ { width = 0.800; height = 0.800; } { width = 0.600; height = 0.600; } { width = 0.950; height = 0.950; } { width = 0.500; height = 0.500; col = 0; row = 0; } { width = 0.500; height = 0.500; col = 0; row = 0.5; } { width = 0.500; height = 0.500; col = 0.5; row = 0; } { width = 0.500; height = 0.500; col = 0.5; row = 0.5; } ]; }; }; }; }