Skip to content

Commit

Permalink
feat(configs): add neovide configs
Browse files Browse the repository at this point in the history
  • Loading branch information
spywhere committed Jul 4, 2024
1 parent cfba837 commit 69e7fac
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 0 deletions.
3 changes: 3 additions & 0 deletions binaries/zsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/zsh

VIM=1 zsh "$@"
6 changes: 6 additions & 0 deletions configs/neovide/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
maximized = true
neovim-bin = "$HOME/.asdf/shims/nvim"

[font]
normal = "JetBrainsMono Nerd Font"
size = 12
6 changes: 6 additions & 0 deletions configs/nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ local registry = require('lib.registry')
local loader = require('lib.loader')

registry.startup(function ()
if vim.g.neovide then
require('plugin.color-scheme')
require('plugin.appearance.now-playing')
loader.explore('neovide', true)
return
end
loader.explore('polyfill')
loader.explore('editor')
loader.explore('language')
Expand Down
27 changes: 27 additions & 0 deletions configs/nvim/lua/neovide/tmux.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
local registry = require('lib.registry')

registry.install {
'spywhere/tmux.nvim',
config = function ()
local tmux = require('tmux')
local cmds = require('tmux.commands')

tmux.prefix('<C-a>')

tmux.bind('|', cmds.split_window { 'v' })
tmux.bind('-', cmds.split_window { 'h' })

tmux.bind('h', cmds.select_pane { 'L' })
tmux.bind('j', cmds.select_pane { 'D' })
tmux.bind('k', cmds.select_pane { 'U' })
tmux.bind('l', cmds.select_pane { 'R' })

tmux.bind('r', cmds.rotate_window {})

tmux.bind('<S-Left>', cmds.previous_window { T = 'root' })
tmux.bind('<S-Right>', cmds.next_window { T = 'root' })

vim.o.shell = string.format('%s/.dots/binaries/zsh', vim.env.HOME)
tmux.start()
end
}
3 changes: 3 additions & 0 deletions setup/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,9 @@ setup_config() {
step " - neomutt"
link neomutt/ .config/neomutt

step " - neovide"
link neovide/ .config/neovide

step " - neovim"
link nvim/ .config/nvim
add_post_install_message "Run 'nvim' for the first time setup"
Expand Down

0 comments on commit 69e7fac

Please sign in to comment.