diff --git a/extra.nix b/extra.nix index af04257..113ad0d 100644 --- a/extra.nix +++ b/extra.nix @@ -18,6 +18,11 @@ inputs: let vim = { viAlias = true; vimAlias = true; + debugMode = { + enable = true; + level = 20; + logFile = "/tmp/nvim.log"; + }; }; vim.lsp = { @@ -61,9 +66,14 @@ inputs: let }; }; - vim.statusline.lualine = { - enable = true; - theme = "catppuccin"; + vim.statusline = { + lualine = { + enable = false; + theme = "catppuccin"; + }; + heirline = { + enable = true; + }; }; vim.theme = { diff --git a/modules/basic/config.nix b/modules/basic/config.nix index 3c34cf2..dd0c7d3 100644 --- a/modules/basic/config.nix +++ b/modules/basic/config.nix @@ -28,6 +28,12 @@ in { vim.nnoremap = mkIf cfg.mapLeaderSpace {"" = "";}; vim.configRC.basic = nvim.dag.entryAfter ["globalsScript"] '' + " Debug mode settings + ${optionalString cfg.debugMode.enable '' + set verbose=${toString cfg.debugMode.level} + set verbosefile=${cfg.debugMode.logFile} + ''} + " Settings that are set for everything set encoding=utf-8 set mouse=${cfg.mouseSupport} diff --git a/modules/basic/module.nix b/modules/basic/module.nix index e1f5dff..479dcab 100644 --- a/modules/basic/module.nix +++ b/modules/basic/module.nix @@ -9,6 +9,20 @@ with builtins; let cfg = config.vim; in { options.vim = { + debugMode = { + enable = mkEnableOption "Enable debug mode"; + level = mkOption { + type = types.int; + default = 20; + description = "Set the debug level"; + }; + logFile = mkOption { + type = types.path; + default = "/tmp/nvim.log"; + description = "Set the log file"; + }; + }; + colourTerm = mkOption { type = types.bool; default = true;