mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-11-04 12:42:21 +00:00 
			
		
		
		
	
		
			Some checks are pending
		
		
	
	Set up binary cache / cachix (default) (push) Waiting to run
				
			Set up binary cache / cachix (maximal) (push) Waiting to run
				
			Set up binary cache / cachix (nix) (push) Waiting to run
				
			Treewide Checks / Validate flake (push) Waiting to run
				
			Treewide Checks / Check formatting (push) Waiting to run
				
			Treewide Checks / Check source tree for typos (push) Waiting to run
				
			Treewide Checks / Validate documentation builds (push) Waiting to run
				
			Treewide Checks / Validate hyperlinks in documentation sources (push) Waiting to run
				
			Treewide Checks / Validate Editorconfig conformance (push) Waiting to run
				
			Build and deploy documentation / Check latest commit (push) Waiting to run
				
			Build and deploy documentation / publish (push) Blocked by required conditions
				
			Co-authored-by: raf <raf@notashelf.dev>
		
			
				
	
	
		
			47 lines
		
	
	
	
		
			1.3 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			47 lines
		
	
	
	
		
			1.3 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
{
 | 
						|
  config,
 | 
						|
  lib,
 | 
						|
  ...
 | 
						|
}: let
 | 
						|
  inherit (lib.modules) mkRemovedOptionModule;
 | 
						|
  inherit (lib.options) mkOption mkEnableOption;
 | 
						|
  inherit (lib.nvim.types) borderType mkPluginSetupOption;
 | 
						|
  inherit (lib.nvim.lua) mkLuaInline;
 | 
						|
 | 
						|
  uiKindSetupOpts =
 | 
						|
    if config.vim.theme.enable && config.vim.theme.name == "catppuccin"
 | 
						|
    then {
 | 
						|
      ui.kind =
 | 
						|
        mkLuaInline
 | 
						|
        # lua
 | 
						|
        ''
 | 
						|
          require("catppuccin.groups.integrations.lsp_saga").custom_kind()
 | 
						|
        '';
 | 
						|
    }
 | 
						|
    else {};
 | 
						|
in {
 | 
						|
  imports = [
 | 
						|
    (mkRemovedOptionModule ["vim" "lsp" "lspsaga" "mappings"] ''
 | 
						|
      Lspsaga mappings have been removed from nvf, as the original author has made
 | 
						|
      very drastic changes to the API after taking back ownership, and the fork we
 | 
						|
      used is now archived. Please refer to Lspsaga documentation to add keybinds
 | 
						|
      for functionality you have used.
 | 
						|
 | 
						|
      <https://nvimdev.github.io/lspsaga>
 | 
						|
    '')
 | 
						|
  ];
 | 
						|
 | 
						|
  options.vim.lsp.lspsaga = {
 | 
						|
    enable = mkEnableOption "LSP Saga";
 | 
						|
 | 
						|
    setupOpts =
 | 
						|
      mkPluginSetupOption "lspsaga" {
 | 
						|
        border_style = mkOption {
 | 
						|
          type = borderType;
 | 
						|
          default = config.vim.ui.borders.globalStyle;
 | 
						|
          description = "Border type, see {command}`:help nvim_open_win`";
 | 
						|
        };
 | 
						|
      }
 | 
						|
      // uiKindSetupOpts;
 | 
						|
  };
 | 
						|
}
 |