focus.lua
This commit is contained in:
parent
6b32dcdd6c
commit
3caa66b68a
|
@ -6,6 +6,7 @@
|
||||||
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
|
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
|
||||||
"cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" },
|
"cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" },
|
||||||
"fidget.nvim": { "branch": "main", "commit": "7dc62b9ce32ac0f21cfb510f243644ce28a39299" },
|
"fidget.nvim": { "branch": "main", "commit": "7dc62b9ce32ac0f21cfb510f243644ce28a39299" },
|
||||||
|
"focus.nvim": { "branch": "master", "commit": "c83be53de558f6f0824c8cefcad61719c87ce157" },
|
||||||
"friendly-snippets": { "branch": "main", "commit": "53d3df271d031c405255e99410628c26a8f0d2b0" },
|
"friendly-snippets": { "branch": "main", "commit": "53d3df271d031c405255e99410628c26a8f0d2b0" },
|
||||||
"gitsigns.nvim": { "branch": "main", "commit": "d195f0c35ced5174d3ecce1c4c8ebb3b5bc23fa9" },
|
"gitsigns.nvim": { "branch": "main", "commit": "d195f0c35ced5174d3ecce1c4c8ebb3b5bc23fa9" },
|
||||||
"indent-blankline.nvim": { "branch": "master", "commit": "7206c77cb931f79885fc47f88ae18f99148392eb" },
|
"indent-blankline.nvim": { "branch": "master", "commit": "7206c77cb931f79885fc47f88ae18f99148392eb" },
|
||||||
|
|
|
@ -0,0 +1,37 @@
|
||||||
|
return {
|
||||||
|
'nvim-focus/focus.nvim',
|
||||||
|
version = '*',
|
||||||
|
config = function ()
|
||||||
|
require("focus").setup({
|
||||||
|
enable = true, -- Enable module
|
||||||
|
commands = true, -- Create Focus commands
|
||||||
|
autoresize = {
|
||||||
|
enable = false, -- Enable or disable auto-resizing of splits
|
||||||
|
width = 0, -- Force width for the focused window
|
||||||
|
height = 0, -- Force height for the focused window
|
||||||
|
minwidth = 0, -- Force minimum width for the unfocused window
|
||||||
|
minheight = 0, -- Force minimum height for the unfocused window
|
||||||
|
height_quickfix = 10, -- Set the height of quickfix panel
|
||||||
|
},
|
||||||
|
split = {
|
||||||
|
bufnew = false, -- Create blank buffer for new split windows
|
||||||
|
tmux = false, -- Create tmux splits instead of neovim splits
|
||||||
|
},
|
||||||
|
ui = {
|
||||||
|
number = false, -- Display line numbers in the focussed window only
|
||||||
|
relativenumber = true, -- Display relative line numbers in the focussed window only
|
||||||
|
hybridnumber = true, -- Display hybrid line numbers in the focussed window only
|
||||||
|
absolutenumber_unfocussed = true, -- Preserve absolute numbers in the unfocussed windows
|
||||||
|
|
||||||
|
cursorline = true, -- Display a cursorline in the focussed window only
|
||||||
|
cursorcolumn = false, -- Display cursorcolumn in the focussed window only
|
||||||
|
colorcolumn = {
|
||||||
|
enable = false, -- Display colorcolumn in the foccused window only
|
||||||
|
list = '+1', -- Set the comma-saperated list for the colorcolumn
|
||||||
|
},
|
||||||
|
signcolumn = true, -- Display signcolumn in the focussed window only
|
||||||
|
winhighlight = false, -- Auto highlighting for focussed/unfocussed windows
|
||||||
|
}
|
||||||
|
})
|
||||||
|
end
|
||||||
|
}
|
Loading…
Reference in New Issue