In progress - need some rework of this repo but wanted to push config updates.
This commit is contained in:
parent
e7a6bacc19
commit
db84ac3c37
3 changed files with 50 additions and 28 deletions
|
@ -41,7 +41,7 @@ bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOU
|
|||
floating_modifier $mod
|
||||
|
||||
# start a terminal
|
||||
bindsym $mod+Return exec urxvt
|
||||
bindsym $mod+Return exec alacritty
|
||||
|
||||
# kill focused window
|
||||
bindsym $mod+Shift+q kill
|
||||
|
@ -89,9 +89,9 @@ bindsym $mod+v split v
|
|||
bindsym $mod+f fullscreen toggle
|
||||
|
||||
# change container layout (stacked, tabbed, toggle split)
|
||||
bindsym $mod+s layout stacking
|
||||
#bindsym $mod+s layout stacking
|
||||
bindsym $mod+w layout tabbed
|
||||
bindsym $mod+e layout toggle split
|
||||
#bindsym $mod+e layout toggle split
|
||||
|
||||
# toggle tiling / floating
|
||||
bindsym $mod+Shift+space floating toggle
|
||||
|
|
|
@ -67,6 +67,9 @@ Plug 'scalameta/nvim-metals', { 'for': ['scala', 'sbt'] }
|
|||
" LaTeX Support
|
||||
Plug 'lervag/vimtex', { 'for': ['tex'] }
|
||||
|
||||
" Odin Support
|
||||
Plug 'Tetralux/odin.vim'
|
||||
|
||||
" =============================================================================
|
||||
" Visual enhancements
|
||||
" =============================================================================
|
||||
|
@ -74,6 +77,8 @@ Plug 'lervag/vimtex', { 'for': ['tex'] }
|
|||
Plug 'sainnhe/gruvbox-material'
|
||||
" Plug 'rebelot/kanagawa.nvim'
|
||||
|
||||
Plug 'nvim-lualine/lualine.nvim'
|
||||
|
||||
Plug 'kyazdani42/nvim-web-devicons'
|
||||
Plug 'folke/lsp-colors.nvim'
|
||||
|
||||
|
@ -138,6 +143,9 @@ set updatetime=200
|
|||
" noinsert = do not insert text for a match until user selects one
|
||||
" noselect = do not select a match from the menu automatically
|
||||
set completeopt=menu,menuone,noinsert,noselect
|
||||
|
||||
" Enable completions as you type.
|
||||
let g:completion_enable_auto_popup = 1
|
||||
" }}
|
||||
|
||||
" === Indentation === {{
|
||||
|
@ -197,6 +205,7 @@ nnoremap <C-p> <cmd>Telescope find_files<cr>
|
|||
nnoremap ; <cmd>Telescope buffers<cr>
|
||||
nnoremap <leader>fg <cmd>Telescope live_grep<cr>
|
||||
nnoremap <leader>fh <cmd>Telescope help_tags<cr>
|
||||
nnoremap <leader>fm <cmd>Telescope metals commands<cr>
|
||||
|
||||
" Trouble bindings
|
||||
nnoremap <leader>xx <cmd>TroubleToggle<cr>
|
||||
|
@ -313,9 +322,11 @@ metals_config = require("metals").bare_config()
|
|||
|
||||
metals_config.settings = {
|
||||
showImplicitArguments = true,
|
||||
serverVersion = "0.11.1",
|
||||
showInferredType = true
|
||||
}
|
||||
|
||||
metals_config.init_options.statusBarProvider = "on"
|
||||
|
||||
metals_config.capabilities = capabilities
|
||||
|
||||
vim.cmd([[augroup lsp]])
|
||||
|
@ -330,7 +341,7 @@ EOF
|
|||
lua <<EOF
|
||||
require'nvim-treesitter.configs'.setup {
|
||||
-- One of "all", "maintained", or a list of languages
|
||||
ensure_installed = { "c", "zig", "bash", "scala" },
|
||||
ensure_installed = { "c", "zig", "bash", "scala", "yaml" },
|
||||
|
||||
-- Install languages synchronously (only applied to `ensure_installed`)
|
||||
sync_install = false,
|
||||
|
@ -355,3 +366,13 @@ require'nvim-treesitter.configs'.setup {
|
|||
}
|
||||
EOF
|
||||
" }}
|
||||
|
||||
" === Lualine Configuration === {{
|
||||
lua <<EOF
|
||||
local lualine_gruvbox = require'lualine.themes.gruvbox'
|
||||
|
||||
require('lualine').setup {
|
||||
options = { theme = lualine_gruvbox },
|
||||
}
|
||||
EOF
|
||||
" }}
|
||||
|
|
|
@ -44,7 +44,7 @@ else
|
|||
if $logging_enabled; then
|
||||
echo "[warn] Custom PS1 for bash missing at " \
|
||||
"'$ps1_startup_file': " \
|
||||
"see git@git.sr.ht:~eidolon/scripts" >> $log_file
|
||||
"see git@git.sr.ht:~eidolon/scripts" >> "$log_file"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
@ -107,7 +107,7 @@ else
|
|||
if $logging_enabled; then
|
||||
echo "[warn] SSH Agent startup code missing at " \
|
||||
"'$ssh_agent_startup_file': " \
|
||||
"see git@git.sr.ht:~eidolon/scripts" >> $log_file
|
||||
"see git@git.sr.ht:~eidolon/scripts" >> "$log_file"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
@ -116,9 +116,10 @@ fi
|
|||
# =============================================================================
|
||||
if command -v exa > /dev/null 2>&1; then
|
||||
alias ls='exa'
|
||||
alias ll='exa -l'
|
||||
else
|
||||
if $logging_enabled; then
|
||||
echo "[warn] exa is not setup! Using the system ls" >> $log_file
|
||||
echo "[warn] exa is not setup! Using the system ls" >> "$log_file"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
@ -126,7 +127,7 @@ if command -v nvim > /dev/null 2>&1; then
|
|||
alias vim='nvim'
|
||||
else
|
||||
if $logging_enabled; then
|
||||
echo "[warn] Neovim is not setup! Using the system vim" >> $log_file
|
||||
echo "[warn] Neovim is not setup! Using the system vim" >> "$log_file"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue