Setup better defaults for terminal and widget windows.
parent
54510be14f
commit
12ff0c21d6
|
@ -20,7 +20,10 @@ let
|
||||||
plugin = utils.pluginGit
|
plugin = utils.pluginGit
|
||||||
"e154fdb6d70b3765d71f296e718b29d8b7026a63"
|
"e154fdb6d70b3765d71f296e718b29d8b7026a63"
|
||||||
"mfussenegger/nvim-dap";
|
"mfussenegger/nvim-dap";
|
||||||
config = config.programs.neovim.nvim-dap;
|
config = ''
|
||||||
|
require('dap').defaults.fallback.terminal_win_cmd = 'below 10split new'
|
||||||
|
${config.programs.neovim.nvim-dap};
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
nvim-lspconfig = {
|
nvim-lspconfig = {
|
||||||
|
|
|
@ -107,6 +107,10 @@ function M.buffer_map()
|
||||||
vim.cmd(any_sidebar_open() and 'leftabove split' or 'vertical topleft split')
|
vim.cmd(any_sidebar_open() and 'leftabove split' or 'vertical topleft split')
|
||||||
sidebar.open()
|
sidebar.open()
|
||||||
vim.fn.win_gotoid(win_id)
|
vim.fn.win_gotoid(win_id)
|
||||||
|
-- Update state of windows.
|
||||||
|
vim.api.nvim_win_set_option(sidebar.win, 'colorcolumn', '')
|
||||||
|
vim.api.nvim_win_set_option(sidebar.win, 'list', false)
|
||||||
|
vim.api.nvim_win_set_option(sidebar.win, 'wrap', false)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue