cursor: add cursor editor
This commit is contained in:
		
							parent
							
								
									07b509750b
								
							
						
					
					
						commit
						5e3260a57e
					
				
					 4 changed files with 70 additions and 0 deletions
				
			
		
							
								
								
									
										15
									
								
								user/cursor/cursor.desktop
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								user/cursor/cursor.desktop
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,15 @@
 | 
			
		|||
[Desktop Entry]
 | 
			
		||||
Name=Cursor
 | 
			
		||||
Exec=/home/lelgenio/.local/bin/cursor --enable-features=UseOzonePlatform --ozone-platform-hint=wayland %F
 | 
			
		||||
Path=/home/lelgenio/.local/bin
 | 
			
		||||
Icon=/home/lelgenio/.icons/cursor.png
 | 
			
		||||
Type=Application
 | 
			
		||||
Categories=Utility;Development;
 | 
			
		||||
StartupWMClass=Cursor
 | 
			
		||||
X-AppImage-Version=latest
 | 
			
		||||
Comment=Cursor is an AI-first coding environment.
 | 
			
		||||
MimeType=x-scheme-handler/cursor;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
[Desktop Action new-empty-window]
 | 
			
		||||
Exec=/home/lelgenio/.local/bin/cursor --enable-features=UseOzonePlatformc --ozone-platform-hint --new-window %F
 | 
			
		||||
							
								
								
									
										20
									
								
								user/cursor/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								user/cursor/default.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,20 @@
 | 
			
		|||
{
 | 
			
		||||
  pkgs,
 | 
			
		||||
  lib,
 | 
			
		||||
  ...
 | 
			
		||||
}:
 | 
			
		||||
{
 | 
			
		||||
  options.cursor = {
 | 
			
		||||
    enable = lib.mkEnableOption { };
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  config = lib.mkIf config.cursor.enable {
 | 
			
		||||
    home.file = {
 | 
			
		||||
      "${config.home.homeDirectory}/.local/share/applications/cursor.desktop".source = ./cursor.desktop;
 | 
			
		||||
      "${config.home.homeDirectory}/.config/Cusor/User/keybindings.json".source =
 | 
			
		||||
        config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/projects/nixos-config/user/cursor/keybindings.json";
 | 
			
		||||
      "${config.home.homeDirectory}/.config/Cursor/User/settings.json".source =
 | 
			
		||||
        config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/projects/nixos-config/user/cursor/settings.json";
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										1
									
								
								user/cursor/keybindings.json
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								user/cursor/keybindings.json
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1 @@
 | 
			
		|||
[]
 | 
			
		||||
							
								
								
									
										34
									
								
								user/cursor/settings.json
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								user/cursor/settings.json
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,34 @@
 | 
			
		|||
{
 | 
			
		||||
    "terminal.integrated.sendKeybindingsToShell": true,
 | 
			
		||||
    "window.titleBarStyle": "custom",
 | 
			
		||||
    "workbench.preferredDarkColorTheme": "GitHub Dark",
 | 
			
		||||
    "workbench.preferredLightColorTheme": "GitHub Light",
 | 
			
		||||
    "window.autoDetectColorScheme": true,
 | 
			
		||||
    "workbench.colorTheme": "GitHub Dark",
 | 
			
		||||
    "git.autofetch": true,
 | 
			
		||||
    "git.confirmSync": false,
 | 
			
		||||
    "editor.suggest.snippetsPreventQuickSuggestions": false,
 | 
			
		||||
    "update.mode": "none",
 | 
			
		||||
    "intelephense.files.exclude": [
 | 
			
		||||
        "**/.git/**",
 | 
			
		||||
        "**/.svn/**",
 | 
			
		||||
        "**/.hg/**",
 | 
			
		||||
        "**/CVS/**",
 | 
			
		||||
        "**/.DS_Store/**",
 | 
			
		||||
        "**/node_modules/**",
 | 
			
		||||
        "**/bower_components/**",
 | 
			
		||||
        "**/vendor/**/{Tests,tests}/**",
 | 
			
		||||
        "**/.history/**",
 | 
			
		||||
        "**/vendor/**/vendor/**",
 | 
			
		||||
        "**/.direnv/**"
 | 
			
		||||
    ],
 | 
			
		||||
    "intelephense.format.braces": "k&r",
 | 
			
		||||
    "window.commandCenter": 1,
 | 
			
		||||
    "files.exclude": {
 | 
			
		||||
        "**/.deps": true,
 | 
			
		||||
        "**/.direnv": true
 | 
			
		||||
    },
 | 
			
		||||
    "diffEditor.renderSideBySide": false,
 | 
			
		||||
    "laravel-pint.enable": true,
 | 
			
		||||
    "editor.formatOnSave": true
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue