summaryrefslogtreecommitdiff
path: root/lua/user/jaq.lua
diff options
context:
space:
mode:
authorVito G. Graffagnino <vito@graffagnino.xyz>2022-10-08 11:57:32 +0100
committerVito G. Graffagnino <vito@graffagnino.xyz>2022-10-08 11:57:32 +0100
commitab8abc7f22d2345690b469a5e3bde9f3d63ac180 (patch)
tree8034ed8a16e9712f9f244a3d0ffc26466defa2de /lua/user/jaq.lua
parent02af2c0299b923946092a49cdbae20ba837cb4be (diff)
Fixed orgmode error message relating to treesitter. Added another latex
template. Tidied up a number of other files
Diffstat (limited to 'lua/user/jaq.lua')
-rw-r--r--lua/user/jaq.lua80
1 files changed, 80 insertions, 0 deletions
diff --git a/lua/user/jaq.lua b/lua/user/jaq.lua
new file mode 100644
index 0000000..9ea672e
--- /dev/null
+++ b/lua/user/jaq.lua
@@ -0,0 +1,80 @@
+M = {}
+local status_ok, jaq_nvim = pcall(require, "jaq-nvim")
+if not status_ok then
+ return
+end
+
+jaq_nvim.setup {
+ -- Commands used with 'Jaq'
+ cmds = {
+ -- Default UI used (see `Usage` for options)
+ default = "term",
+
+ -- Uses external commands such as 'g++' and 'cargo'
+ external = {
+ typescript = "deno run %",
+ javascript = "node %",
+ -- markdown = "glow %",
+ python = "ipython %",
+ -- rust = "rustc % && ./$fileBase && rm $fileBase",
+ rust = "cargo run",
+ cpp = "g++ % -o $fileBase && ./$fileBase",
+ go = "go run %",
+ sh = "sh %",
+ },
+
+ -- Uses internal commands such as 'source' and 'luafile'
+ internal = {
+ -- lua = "luafile %",
+ -- vim = "source %",
+ },
+ },
+
+ behavior = {
+ -- Default type
+ default = "terminal",
+
+ -- Start in insert mode
+ startinsert = false,
+
+ -- Use `wincmd p` on startup
+ wincmd = false,
+
+ -- Auto-save files
+ autosave = false,
+ },
+
+ -- UI settings
+ ui = {
+ -- Floating Window / FTerm settings
+ float = {
+ -- Floating window border (see ':h nvim_open_win')
+ border = "none",
+
+ -- Num from `0 - 1` for measurements
+ height = 0.8,
+ width = 0.8,
+ x = 0.5,
+ y = 0.5,
+
+ -- Highlight group for floating window/border (see ':h winhl')
+ border_hl = "FloatBorder",
+ float_hl = "Normal",
+
+ -- Floating Window Transparency (see ':h winblend')
+ blend = 0,
+ },
+
+ terminal = {
+ -- Position of terminal
+ position = "vert",
+
+ -- Open the terminal without line numbers
+ line_no = false,
+
+ -- Size of terminal
+ size = 60,
+ },
+ },
+}
+return M