about summary refs log tree commit diff stats
path: root/home-manager/soispha/config/neovim/nixvim/plugins/goto-preview
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-08-26 22:52:12 +0200
committerSoispha <soispha@vhack.eu>2023-08-26 22:56:09 +0200
commit4c743a2afb87994be4ff7c2dc76d21c70d31e4de (patch)
tree70922dd5db390641da012085bc674333b53d2ef1 /home-manager/soispha/config/neovim/nixvim/plugins/goto-preview
parentFix(hm/conf/neovim/plugins/colorscheme): Mk todo,fix,&c comments visible (diff)
downloadnixos-config-4c743a2afb87994be4ff7c2dc76d21c70d31e4de.zip
Style(treewide): Format all lua-files makes lua ➛ nix easier
The files were formatted according to the `.editorconfig` file and with
the formatter from [this](1) repo, as it's the only one that fully
understands all keys in the `.editorconfig` file.

The formatting was chosen in this special (and honestly unconventional)
way because moving code from lua to nix is now easier, as the syntax is
nearly identical in some places.
Diffstat (limited to 'home-manager/soispha/config/neovim/nixvim/plugins/goto-preview')
-rw-r--r--home-manager/soispha/config/neovim/nixvim/plugins/goto-preview/lua/goto-preview.lua42
1 files changed, 21 insertions, 21 deletions
diff --git a/home-manager/soispha/config/neovim/nixvim/plugins/goto-preview/lua/goto-preview.lua b/home-manager/soispha/config/neovim/nixvim/plugins/goto-preview/lua/goto-preview.lua
index a3e55a5a..cde50d3e 100644
--- a/home-manager/soispha/config/neovim/nixvim/plugins/goto-preview/lua/goto-preview.lua
+++ b/home-manager/soispha/config/neovim/nixvim/plugins/goto-preview/lua/goto-preview.lua
@@ -1,21 +1,21 @@
-require('goto-preview').setup {
-    width = 120, -- Width of the floating window
-    height = 15, -- Height of the floating window
-    border = { "↖", "─", "┐", "│", "┘", "─", "└", "│" }, -- Border characters of the floating window
-    default_mappings = false, -- Bind default mappings
-    debug = false, -- Print debug information
-    opacity = nil, -- 0-100 opacity level of the floating window where 100 is fully transparent.
-    resizing_mappings = false, -- Binds arrow keys to resizing the floating window.
-    post_open_hook = nil, -- A function taking two arguments, a buffer and a window to be ran as a hook.
-    post_close_hook = nil, -- A function taking two arguments, a buffer and a window to be ran as a hook.
-    references = { -- Configure the telescope UI for slowing the references cycling window.
-        telescope = {} -- require("telescope.themes").get_dropdown({ hide_preview = false })
-    },
-    -- These two configs can also be passed down to the goto-preview definition and implementation calls for one off "peak" functionality.
-    focus_on_open = true,                                      -- Focus the floating window when opening it.
-    dismiss_on_move = false,                                   -- Dismiss the floating window when moving the cursor.
-    force_close = true,                                        -- passed into vim.api.nvim_win_close's second argument. See :h nvim_win_close
-    bufhidden = "wipe",                                        -- the bufhidden option to set on the floating window. See :h bufhidden
-    stack_floating_preview_windows = true,                     -- Whether to nest floating windows
-    preview_window_title = { enable = true, position = "left" }, -- Whether to set the preview window title as the filename
-}
+require("goto-preview").setup({
+  width = 120; -- Width of the floating window
+  height = 15; -- Height of the floating window
+  border = { "↖"; "─"; "┐"; "│"; "┘"; "─"; "└"; "│"; }; -- Border characters of the floating window
+  default_mappings = false; -- Bind default mappings
+  debug = false; -- Print debug information
+  opacity = nil; -- 0-100 opacity level of the floating window where 100 is fully transparent.
+  resizing_mappings = false; -- Binds arrow keys to resizing the floating window.
+  post_open_hook = nil; -- A function taking two arguments, a buffer and a window to be ran as a hook.
+  post_close_hook = nil; -- A function taking two arguments, a buffer and a window to be ran as a hook.
+  references = { -- Configure the telescope UI for slowing the references cycling window.
+    telescope = {}; -- require("telescope.themes").get_dropdown({ hide_preview = false })
+  };
+  -- These two configs can also be passed down to the goto-preview definition and implementation calls for one off "peak" functionality.
+  focus_on_open = true;                                       -- Focus the floating window when opening it.
+  dismiss_on_move = false;                                    -- Dismiss the floating window when moving the cursor.
+  force_close = true;                                         -- passed into vim.api.nvim_win_close's second argument. See :h nvim_win_close
+  bufhidden = "wipe";                                         -- the bufhidden option to set on the floating window. See :h bufhidden
+  stack_floating_preview_windows = true;                      -- Whether to nest floating windows
+  preview_window_title = { enable = true; position = "left"; }; -- Whether to set the preview window title as the filename
+})