mirror of
https://github.com/halfdan/dotfiles.git
synced 2025-09-10 19:56:24 +00:00
Several changes
This commit is contained in:
@@ -57,11 +57,14 @@ nnoremap('Q', '<Nop>')
|
||||
nnoremap('<Leader>hl', ':nohl<CR>')
|
||||
|
||||
-- Vim Test
|
||||
nnoremap('<leader>t', ':TestNearest<CR>')
|
||||
nnoremap('<leader>T', ':TestFile<CR>')
|
||||
nnoremap('<leader>a', ':TestSuite<CR>')
|
||||
nnoremap('<leader>l', ':TestLast<CR>')
|
||||
nnoremap('<leader>g', ':TestVisit<CR>')
|
||||
nnoremap('<leader>tt', ':TestNearest<CR>')
|
||||
nnoremap('<leader>tT', ':TestFile<CR>')
|
||||
nnoremap('<leader>ta', ':TestSuite<CR>')
|
||||
nnoremap('<leader>tl', ':TestLast<CR>')
|
||||
nnoremap('<leader>tg', ':TestVisit<CR>')
|
||||
|
||||
-- Reload init.lua
|
||||
nnoremap('<leader>sv', ':source $MYVIMRC<CR>')
|
||||
|
||||
vim.cmd("nnoremap <silent> <C-p> :Lspsaga diagnostic_jump_prev<CR>")
|
||||
vim.cmd("nnoremap <silent> <C-n> :Lspsaga diagnostic_jump_next<CR>")
|
||||
|
5
.config/nvim/after/plugin/neotest.lua
Normal file
5
.config/nvim/after/plugin/neotest.lua
Normal file
@@ -0,0 +1,5 @@
|
||||
require("neotest").setup({
|
||||
adapters = {
|
||||
require("neotest-vim-test")({ allow_file_types = { "haskell", "elixir" } }),
|
||||
},
|
||||
})
|
@@ -2,7 +2,7 @@ local dap = require('dap')
|
||||
|
||||
dap.adapters.mix_task = {
|
||||
type = 'executable',
|
||||
command = '/Users/fbecker18/opt/elixir-ls/bin/debugger.sh', -- debugger.bat for windows
|
||||
command = '/home/halfdan/opt/elixir-ls/bin/debugger.sh', -- debugger.bat for windows
|
||||
args = {}
|
||||
}
|
||||
|
||||
|
112
.config/tmux/tmux.conf
Normal file
112
.config/tmux/tmux.conf
Normal file
@@ -0,0 +1,112 @@
|
||||
######################################################################
|
||||
# START OF PLUGINS
|
||||
######################################################################
|
||||
|
||||
# Plugin manager for tmux
|
||||
set -g @plugin 'tmux-plugins/tpm'
|
||||
|
||||
# Simple tmux options for anyone
|
||||
set -g @plugin 'tmux-plugins/tmux-sensible'
|
||||
|
||||
#set -g @plugin 'odedlaz/tmux-onedark-theme'
|
||||
|
||||
# Gruvbox theme
|
||||
set -g @plugin 'egel/tmux-gruvbox'
|
||||
set -g @tmux-gruvbox 'dark' # or 'light'
|
||||
|
||||
# Persistent tmux envs across system restarts
|
||||
set -g @plugin 'tmux-plugins/tmux-resurrect'
|
||||
|
||||
# Continuous saving of tmux environment
|
||||
set -g @plugin 'tmux-plugins/tmux-continuum'
|
||||
|
||||
#######################################################
|
||||
# TMUX-CONTINUUM
|
||||
#######################################################
|
||||
|
||||
# Enables restoral of saved tmux config
|
||||
set -g @continuum-restore 'on'
|
||||
|
||||
# How often to save a tmux layout
|
||||
set -g @continuum-save-interval '10'
|
||||
|
||||
#######################################################
|
||||
# TMUX-RESURRECT
|
||||
#######################################################
|
||||
|
||||
# Capture contents of each pane
|
||||
set -g @resurrect-capture-pane-contents 'on'
|
||||
|
||||
# Set to resurrect neovim sessions
|
||||
set -g @resurrect-strategy-nvim 'session'
|
||||
|
||||
# Processes to resurrect
|
||||
set -g @resurrect-processes '~julia'
|
||||
|
||||
#######################################################
|
||||
# TMUX-SENSIBLE
|
||||
#######################################################
|
||||
|
||||
# Increase scrollback buffer size
|
||||
set -g history-limit 5000
|
||||
|
||||
######################################################################
|
||||
# END OF PLUGINS
|
||||
######################################################################
|
||||
|
||||
|
||||
|
||||
|
||||
######################################################################
|
||||
# START OF GENERAL CONFIGURATIONS
|
||||
######################################################################
|
||||
|
||||
# Turn on interactivity with mouse
|
||||
set -g mouse on
|
||||
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'copy-mode -e; send-keys -M'"
|
||||
|
||||
# Enables italics in tmux
|
||||
#set -g default-terminal "tmux-256color"
|
||||
set -g default-terminal "screen-256color"
|
||||
|
||||
# Terminal type configuration
|
||||
set -ga terminal-overrides ",screen-256color:RGB"
|
||||
|
||||
# Start window numbering at specific num
|
||||
set -g base-index 1
|
||||
|
||||
# Renumber windows on window close
|
||||
set -g renumber-windows on
|
||||
|
||||
#######################################################
|
||||
# KEY BINDING
|
||||
#######################################################
|
||||
|
||||
# hjkl pane traversal
|
||||
bind h select-pane -L
|
||||
bind j select-pane -D
|
||||
bind k select-pane -U
|
||||
bind l select-pane -R
|
||||
|
||||
# Remap prefix from 'C-b' to 'C-a'
|
||||
unbind C-b
|
||||
set-option -g prefix C-a
|
||||
bind-key C-a send-prefix
|
||||
|
||||
# Bind popup display commands
|
||||
# bind t popup -KER "topydo columns"
|
||||
# bind d popup -h80% -w80% -KR "gcalcli --calendar \"JZ Calendar\" calw"
|
||||
# bind s popup -h80% -w80% -KER "spt"
|
||||
# bind C-t popup -KR "$SHELL"
|
||||
|
||||
bind-key -r f run-shell "tmux neww ~/.local/bin/tmux-sessionizer"
|
||||
|
||||
######################################################################
|
||||
# END OF GENERAL CONFIGURATIONS
|
||||
######################################################################
|
||||
|
||||
|
||||
|
||||
|
||||
# Initialize tpm plugin manager - DO NOT MOVE
|
||||
run '~/.tmux/plugins/tpm/tpm'
|
@@ -30,6 +30,7 @@
|
||||
//"custom/arrow1",
|
||||
//"custom/alsa",
|
||||
"pulseaudio",
|
||||
"bluetooth",
|
||||
//"sndio",
|
||||
//"custom/arrow2",
|
||||
"network",
|
||||
|
Reference in New Issue
Block a user