aboutsummaryrefslogtreecommitdiff
path: root/.config/nvim/lua/ls.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/ls.lua')
-rw-r--r--.config/nvim/lua/ls.lua69
1 files changed, 69 insertions, 0 deletions
diff --git a/.config/nvim/lua/ls.lua b/.config/nvim/lua/ls.lua
new file mode 100644
index 0000000..5484611
--- /dev/null
+++ b/.config/nvim/lua/ls.lua
@@ -0,0 +1,69 @@
+require 'jabs'.setup {
+ -- Options for the main window
+ position = { 'right', 'bottom' }, -- position = {'<position_x>', '<position_y>'} | <position_x> left, center, right,
+ -- <position_y> top, center, bottom
+ -- Default {'right', 'bottom'}
+
+ relative = 'win', -- win, editor, cursor. Default win
+ clip_popup_size = true, -- clips the popup size to the win (or editor) size. Default true
+
+ width = 50, -- default 50
+ height = 10, -- default 10
+ border = 'shadow', -- none, single, double, rounded, solid, shadow, (or an array or chars). Default shadow
+
+ offset = { -- window position offset
+ top = 2, -- default 0
+ bottom = 2, -- default 0
+ left = 2, -- default 0
+ right = 2, -- default 0
+ },
+
+ sort_mru = true, -- Sort buffers by most recently used (true or false). Default false
+ split_filename = false, -- Split filename into separate components for name and path. Default false
+ split_filename_path_width = 20, -- If split_filename is true, how wide the column for the path is supposed to be, Default 0 (don't show path)
+
+ -- Options for preview window
+ preview_position = 'top', -- top, bottom, left, right. Default top
+ preview = {
+ width = 70, -- default 70
+ height = 30, -- default 30
+ border = 'double', -- none, single, double, rounded, solid, shadow, (or an array or chars). Default double
+ },
+
+ -- Default highlights (must be a valid :highlight)
+ highlight = {
+ current = "Title", -- default StatusLine
+ hidden = "StatusLineNC", -- default ModeMsg
+ split = "WarningMsg", -- default StatusLine
+ alternate = "StatusLine" -- default WarningMsg
+ },
+
+ -- Default symbols
+ symbols = {
+ current = "C", -- default ]]
+ split = "S", -- default ]]
+ alternate = "A", -- default ]]
+ hidden = "H", -- default ﬘]]
+ locked = "L", -- default ]]
+ ro = "R", -- default ]]
+ edited = "E", -- default ]]
+ terminal = "T", -- default ]]
+ default_file = "D", -- Filetype icon if not present in nvim-web-devicons. Default ]]
+ terminal_symbol = ">_" -- Filetype icon for a terminal split. Default ]]
+ },
+
+ -- Keymaps
+ keymap = {
+ close = "<c-d>", -- Close buffer. Default D
+ jump = "<cr>", -- Jump to buffer. Default <cr>
+ h_split = "h", -- Horizontally split buffer. Default s
+ v_split = "v", -- Vertically split buffer. Default v
+ preview = "p", -- Open buffer preview. Default P
+ },
+
+ -- Whether to use nvim-web-devicons next to filenames
+ use_devicons = true -- true or false. Default true
+}
+
+
+Nmap('<c-f>', ':JABSOpen<CR>')