feat: add a bunch of plugins
This commit is contained in:
		
							parent
							
								
									92dcce1c43
								
							
						
					
					
						commit
						e08990b2db
					
				
					 9 changed files with 36 additions and 22 deletions
				
			
		| 
						 | 
				
			
			@ -11,17 +11,14 @@
 | 
			
		|||
    ./plugins/cmp/cmp.nix
 | 
			
		||||
    ./plugins/cmp/copilot.nix
 | 
			
		||||
 | 
			
		||||
    # Snippets
 | 
			
		||||
    ./plugins/snippets/luasnip.nix
 | 
			
		||||
 | 
			
		||||
    # Editor plugins and configurations
 | 
			
		||||
    ./plugins/editor/bufdelete.nix
 | 
			
		||||
    ./plugins/editor/comment.nix
 | 
			
		||||
    ./plugins/editor/neo-tree.nix
 | 
			
		||||
    ./plugins/editor/treesitter.nix
 | 
			
		||||
 | 
			
		||||
    # UI plugins
 | 
			
		||||
    ./plugins/ui/lualine.nix
 | 
			
		||||
    ./plugins/ui/neo-tree.nix
 | 
			
		||||
    ./plugins/ui/web-devicons.nix
 | 
			
		||||
 | 
			
		||||
    # LSP and formatting
 | 
			
		||||
| 
						 | 
				
			
			@ -35,7 +32,10 @@
 | 
			
		|||
 | 
			
		||||
    # Utils
 | 
			
		||||
    ./plugins/utils/markdown-preview.nix
 | 
			
		||||
    ./plugins/utils/obsidian.nix
 | 
			
		||||
    ./plugins/utils/render-markdown.nix
 | 
			
		||||
    ./plugins/utils/telescope.nix
 | 
			
		||||
    ./plugins/utils/todo-comments.nix
 | 
			
		||||
    ./plugins/utils/whichkey.nix
 | 
			
		||||
  ];
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -6,6 +6,7 @@
 | 
			
		|||
    showmode = false; # Do not show the mode we're editing in.
 | 
			
		||||
    swapfile = false; # Disable vim swapfile.
 | 
			
		||||
    clipboard = "unnamedplus"; # Use the clipboard for all operations.
 | 
			
		||||
    conceallevel = 1; # Show concealed characters (like markdown).
 | 
			
		||||
 | 
			
		||||
    # Tabs & Spaces
 | 
			
		||||
    tabstop = 2; # Set the width of a tab character.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -20,8 +20,8 @@
 | 
			
		|||
          name = "path";
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        { # Command line
 | 
			
		||||
          name = "cmdline";
 | 
			
		||||
        { # Markdown
 | 
			
		||||
          name = "render_markdown";
 | 
			
		||||
        }
 | 
			
		||||
      ];
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,5 +0,0 @@
 | 
			
		|||
{ ... }:
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -1,9 +0,0 @@
 | 
			
		|||
{...}: {
 | 
			
		||||
  plugins.luasnip = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
    settings = {
 | 
			
		||||
      enable_autosnippets = true;
 | 
			
		||||
      store_selection_keys = "<Tab>";
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										17
									
								
								config/plugins/utils/obsidian.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								config/plugins/utils/obsidian.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,17 @@
 | 
			
		|||
{...}: {
 | 
			
		||||
  plugins.obsidian = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
    settings = {
 | 
			
		||||
      completion = {
 | 
			
		||||
        nvim_cmp = true;
 | 
			
		||||
      };
 | 
			
		||||
      new_notes_location = "current_dir";
 | 
			
		||||
      workspaces = [
 | 
			
		||||
        {
 | 
			
		||||
          name = "vault";
 | 
			
		||||
          path = "/home/sajenim/.obsidian_vault";
 | 
			
		||||
        }
 | 
			
		||||
      ];
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										5
									
								
								config/plugins/utils/render-markdown.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								config/plugins/utils/render-markdown.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,5 @@
 | 
			
		|||
{...}: {
 | 
			
		||||
  plugins.render-markdown = {
 | 
			
		||||
    enable = true;    
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										5
									
								
								config/plugins/utils/todo-comments.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								config/plugins/utils/todo-comments.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,5 @@
 | 
			
		|||
{...}: {
 | 
			
		||||
  plugins.todo-comments = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
  }; 
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue