Setup better defaults for terminal and widget windows.

main
Joshua Potter 2023-11-23 07:04:20 -07:00
parent 54510be14f
commit 12ff0c21d6
2 changed files with 8 additions and 1 deletions

View File

@ -20,7 +20,10 @@ let
plugin = utils.pluginGit
"e154fdb6d70b3765d71f296e718b29d8b7026a63"
"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 = {

View File

@ -107,6 +107,10 @@ function M.buffer_map()
vim.cmd(any_sidebar_open() and 'leftabove split' or 'vertical topleft split')
sidebar.open()
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