about summary refs log tree commit diff stats
path: root/hm/soispha/conf/nvim/plgs/flatten-nvim/lua/flatten-nvim.lua
diff options
context:
space:
mode:
Diffstat (limited to 'hm/soispha/conf/nvim/plgs/flatten-nvim/lua/flatten-nvim.lua')
-rw-r--r--hm/soispha/conf/nvim/plgs/flatten-nvim/lua/flatten-nvim.lua42
1 files changed, 21 insertions, 21 deletions
diff --git a/hm/soispha/conf/nvim/plgs/flatten-nvim/lua/flatten-nvim.lua b/hm/soispha/conf/nvim/plgs/flatten-nvim/lua/flatten-nvim.lua
index 8db7d293..42ea1eb6 100644
--- a/hm/soispha/conf/nvim/plgs/flatten-nvim/lua/flatten-nvim.lua
+++ b/hm/soispha/conf/nvim/plgs/flatten-nvim/lua/flatten-nvim.lua
@@ -21,16 +21,16 @@ require("flatten").setup({
     ---Called to determine if a nested session should wait for the host to close the file.
     ---param argv: a list of all the arguments in the nested session
     ---@type fun(argv: table): boolean
-    should_block = require("flatten").default_should_block;
+    should_block = require("flatten").default_should_block,
 
     ---If this returns true, the nested session will be opened.
     ---If false, default behavior is used, and
     ---config.nest_if_no_args is respected.
     ---@type fun(host: channel):boolean
-    should_nest = require("flatten").default_should_nest;
+    should_nest = require("flatten").default_should_nest,
 
     ---Called before a nested session is opened.
-    pre_open = function() end;
+    pre_open = function() end,
 
     ---Called after a nested session is opened.
     ---@param bufnr buffer
@@ -42,27 +42,27 @@ require("flatten").setup({
       -- If the file is a git commit, create one-shot autocmd to delete its buffer on write
       if filetype == "gitcommit" or filetype == "gitrebase" then
         vim.api.nvim_create_autocmd("BufWritePost", {
-          buffer = bufnr;
-          once = true;
+          buffer = bufnr,
+          once = true,
           callback = vim.schedule_wrap(function()
             vim.api.nvim_buf_delete(bufnr, {})
-          end);
+          end),
         })
       end
-    end;
+    end,
 
     ---Called when a nested session is done waiting for the host.
     ---@param filetype string
-    block_end = function(filetype) end;
-  };
+    block_end = function(filetype) end,
+  },
   -- <String, Bool> dictionary of filetypes that should be blocking
   block_for = {
-    gitcommit = true;
-  };
+    gitcommit = true,
+  },
   -- Command passthrough
-  allow_cmd_passthrough = true;
+  allow_cmd_passthrough = true,
   -- Allow a nested session to open if Neovim is opened without arguments
-  nest_if_no_args = false;
+  nest_if_no_args = false,
   -- Window options
   window = {
     -- Options:
@@ -75,7 +75,7 @@ require("flatten").setup({
     -- OpenHandler    -> allows you to handle file opening yourself (see Types)
     --
     -- TODO: Open gitcommit filetypes in the current buffer, everything else in a new tab <2023-08-29>
-    open = "split";
+    open = "split",
 
     -- Options:
     -- vsplit         -> opens files in diff vsplits
@@ -83,24 +83,24 @@ require("flatten").setup({
     -- tab_vsplit     -> creates a new tabpage, and opens diff vsplits
     -- tab_split      -> creates a new tabpage, and opens diff splits
     -- OpenHandler    -> allows you to handle file opening yourself (see Types)
-    diff = "tab_vsplit";
+    diff = "tab_vsplit",
 
     -- Affects which file gets focused when opening multiple at once
     -- Options:
     -- "first"        -> open first file of new files (default)
     -- "last"         -> open last file of new files
-    focus = "first";
-  };
+    focus = "first",
+  },
   -- Override this function to use a different socket to connect to the host
   -- On the host side this can return nil or the socket address.
   -- On the guest side this should return the socket address
   -- or a non-zero channel id from `sockconnect`
   -- flatten.nvim will detect if the address refers to this instance of nvim, to determine if this is a host or a guest
-  pipe_path = require"flatten".default_pipe_path;
+  pipe_path = require("flatten").default_pipe_path,
   -- The `default_pipe_path` will treat the first nvim instance within a single kitty/wezterm session as the host
   -- You can configure this behaviour using the following:
   one_per = {
-    kitty = true;   -- Flatten all instance in the current Kitty session
-    wezterm = true; -- Flatten all instance in the current Wezterm session
-  };
+    kitty = true, -- Flatten all instance in the current Kitty session
+    wezterm = true, -- Flatten all instance in the current Wezterm session
+  },
 })