You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
localroot=vim.fn.fnamemodify('./.repro', ':p')
-- set stdpaths to use .reprofor_, nameinipairs({ 'config', 'data', 'state', 'cache' }) dovim.env[('XDG_%s_HOME'):format(name:upper())] =root..'/' ..nameend-- bootstrap lazylocallazypath=root..'/plugins/lazy.nvim'ifnotvim.loop.fs_stat(lazypath) thenvim.fn.system({
'git',
'clone',
'--filter=blob:none',
'--single-branch',
'https://github.com/folke/lazy.nvim.git',
lazypath,
})
endvim.opt.runtimepath:prepend(lazypath)
-- install pluginslocalplugins= {
-- do not remove the colorscheme! it makes testing nicer'folke/tokyonight.nvim',
'mrjones2014/smart-splits.nvim',
-- add any other pugins here
}
require('lazy').setup(plugins, {
root=root..'/plugins',
})
require('smart-splits').setup({
-- add any options here
})
-- recommended mappings-- resizing splits-- these keymaps will also accept a range,-- for example `10<A-h>` will `resize_left` by `(10 * config.default_amount)`vim.keymap.set('n', '<A-h>', require('smart-splits').resize_left)
vim.keymap.set('n', '<A-j>', require('smart-splits').resize_down)
vim.keymap.set('n', '<A-k>', require('smart-splits').resize_up)
vim.keymap.set('n', '<A-l>', require('smart-splits').resize_right)
-- moving between splitsvim.keymap.set('n', '<C-h>', require('smart-splits').move_cursor_left)
vim.keymap.set('n', '<C-j>', require('smart-splits').move_cursor_down)
vim.keymap.set('n', '<C-k>', require('smart-splits').move_cursor_up)
vim.keymap.set('n', '<C-l>', require('smart-splits').move_cursor_right)
-- swapping buffers between windowsvim.keymap.set('n', '<leader><leader>h', require('smart-splits').swap_buf_left)
vim.keymap.set('n', '<leader><leader>j', require('smart-splits').swap_buf_down)
vim.keymap.set('n', '<leader><leader>k', require('smart-splits').swap_buf_up)
vim.keymap.set('n', '<leader><leader>l', require('smart-splits').swap_buf_right)
-- add anything else herevim.opt.termguicolors=true-- do not remove the colorscheme! it makes testing nicervim.cmd([[colorscheme tokyonight]])
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Beta Was this translation helpful? Give feedback.
All reactions