From 9bbe6371313d83065cdfe02bb0913f7bc5906d87 Mon Sep 17 00:00:00 2001
From: Matei Adriel <rafaeladriel11@gmail.com>
Date: Thu, 16 Mar 2023 17:39:46 +0100
Subject: [PATCH] Fixed some hydra stuff, added formatopt to config and fixed
 typo in purs.lua

---
 dotfiles/neovim/README.md                         | 2 +-
 dotfiles/neovim/ftplugin/purescript.lua           | 2 +-
 dotfiles/neovim/lua/my/options.lua                | 6 ++++--
 dotfiles/neovim/lua/my/plugins/hydra.lua          | 4 +---
 home/adrielus/features/desktop/common/firefox.nix | 5 +++++
 5 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/dotfiles/neovim/README.md b/dotfiles/neovim/README.md
index b388a2f..c77520a 100644
--- a/dotfiles/neovim/README.md
+++ b/dotfiles/neovim/README.md
@@ -164,7 +164,7 @@ Idris keybinds live in the `<leader>I` namespace.
 
 | Keybind    | Description         |
 | ---------- | ------------------- |
-| C-w        | Enter [w]indow mode |
+| C-W        | Enter [w]indow mode |
 | \<leader>v | Enter [v]enn mode   |
 
 #### Window mode
diff --git a/dotfiles/neovim/ftplugin/purescript.lua b/dotfiles/neovim/ftplugin/purescript.lua
index 5d9cba8..407fadc 100644
--- a/dotfiles/neovim/ftplugin/purescript.lua
+++ b/dotfiles/neovim/ftplugin/purescript.lua
@@ -16,4 +16,4 @@ vim.keymap.set(
 
 vim.opt.expandtab = true -- Use spaces for the tab char
 
-require("my.abbreviations.fp")
+require("my.abbreviations.fp").setup()
diff --git a/dotfiles/neovim/lua/my/options.lua b/dotfiles/neovim/lua/my/options.lua
index 82c9c77..bb121f3 100644
--- a/dotfiles/neovim/lua/my/options.lua
+++ b/dotfiles/neovim/lua/my/options.lua
@@ -10,6 +10,9 @@ function M.setup()
   vim.opt.list = true -- Show some invisible characters
   vim.opt.cmdheight = 0 -- Hide command line when it's not getting used
 
+  -- tcqj are there by default, and "r" automatically continues comments on enter
+  vim.opt.formatoptions = "tcqjr"
+
   -- Line numbers
   vim.opt.number = true -- Show line numbers
   vim.opt.relativenumber = true -- Relative line numbers
@@ -25,12 +28,11 @@ function M.setup()
   vim.opt.ignorecase = true -- Ignore case
   vim.opt.smartcase = true -- Do not ignore case with capitals
 
-
   vim.opt.splitbelow = true -- Put new windows below current
   vim.opt.splitright = true -- Put new windows right of current
 
   vim.opt.wrap = false -- Disable line wrap (by default)
-  vim.opt.wildmode = { 'list', 'longest' } -- Command-line completion mode
+  vim.opt.wildmode = { "list", "longest" } -- Command-line completion mode
   vim.opt.completeopt = { "menu", "menuone", "noselect" }
 
   -- Set leader
diff --git a/dotfiles/neovim/lua/my/plugins/hydra.lua b/dotfiles/neovim/lua/my/plugins/hydra.lua
index 6e310d8..f327ace 100644
--- a/dotfiles/neovim/lua/my/plugins/hydra.lua
+++ b/dotfiles/neovim/lua/my/plugins/hydra.lua
@@ -55,8 +55,6 @@ function M.config()
     },
   })
 
-  vim.keymap.set("n", "<C-w>", "<Nop>")
-
   Hydra({
     name = "Windows",
     hint = window_hint,
@@ -68,7 +66,7 @@ function M.config()
       },
     },
     mode = "n",
-    body = "<C-w>",
+    body = "<C-S-w>",
     heads = {
       { "h", "<C-w>h" },
       { "j", "<C-w>j" },
diff --git a/home/adrielus/features/desktop/common/firefox.nix b/home/adrielus/features/desktop/common/firefox.nix
index 87aaafd..910461b 100644
--- a/home/adrielus/features/desktop/common/firefox.nix
+++ b/home/adrielus/features/desktop/common/firefox.nix
@@ -130,6 +130,11 @@ in
 
         "Google".metaData.alias = "@g";
       };
+
+      settings = {
+        # Required for figma to be able to export to svg
+        "dom.events.asyncClipboard.clipboardItem" = true;
+      };
     };
 
     apps = {