mirror of https://github.com/mitchell/dotfiles.git
Minor changes to nvim cfg, fish key binds, and provision_linux
This commit is contained in:
parent
19cb58d961
commit
124ea84991
|
@ -4,8 +4,7 @@ function fish_user_key_bindings
|
||||||
bind --mode insert ,j 'joplin; commandline -f repaint'
|
bind --mode insert ,j 'joplin; commandline -f repaint'
|
||||||
bind --mode insert ,p 'nvim +"Telescope git_files"; commandline -f repaint'
|
bind --mode insert ,p 'nvim +"Telescope git_files"; commandline -f repaint'
|
||||||
bind --mode insert ,f 'nvim +"Telescope find_files"; commandline -f repaint'
|
bind --mode insert ,f 'nvim +"Telescope find_files"; commandline -f repaint'
|
||||||
bind --mode insert ,m 'nvim +Neotree; commandline -f repaint'
|
bind --mode insert ,n 'nvim +Neotree; commandline -f repaint'
|
||||||
bind --mode insert ,v 'neovide; commandline -f repaint'
|
bind --mode insert ,v 'neovide; commandline -f repaint'
|
||||||
bind --mode insert ,n 'n; commandline -f repaint'
|
|
||||||
bind --mode insert ,s 'sysz; commandline -f repaint'
|
bind --mode insert ,s 'sysz; commandline -f repaint'
|
||||||
end
|
end
|
||||||
|
|
|
@ -4,17 +4,15 @@
|
||||||
|
|
||||||
function n --wraps nnn --description 'support nnn quit and change directory'
|
function n --wraps nnn --description 'support nnn quit and change directory'
|
||||||
# Block nesting of nnn in subshells
|
# Block nesting of nnn in subshells
|
||||||
if test -n "$NNNLVL"
|
if test -n "$NNNLVL" -a "$NNNLVL" -ge 1
|
||||||
if [ (expr $NNNLVL + 0) -ge 1 ]
|
echo "nnn is already running"
|
||||||
echo "nnn is already running"
|
return
|
||||||
return
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# The default behaviour is to cd on quit (nnn checks if NNN_TMPFILE is set)
|
# The behaviour is set to cd on quit (nnn checks if NNN_TMPFILE is set)
|
||||||
# To cd on quit only on ^G, remove the "-x" as in:
|
# If NNN_TMPFILE is set to a custom path, it must be exported for nnn to
|
||||||
# set NNN_TMPFILE "$XDG_CONFIG_HOME/nnn/.lastd"
|
# see. To cd on quit only on ^G, remove the "-x" from both lines below,
|
||||||
# NOTE: NNN_TMPFILE is fixed, should not be modified
|
# without changing the paths.
|
||||||
if test -n "$XDG_CONFIG_HOME"
|
if test -n "$XDG_CONFIG_HOME"
|
||||||
set -x NNN_TMPFILE "$XDG_CONFIG_HOME/nnn/.lastd"
|
set -x NNN_TMPFILE "$XDG_CONFIG_HOME/nnn/.lastd"
|
||||||
else
|
else
|
||||||
|
@ -27,7 +25,9 @@ function n --wraps nnn --description 'support nnn quit and change directory'
|
||||||
# stty lwrap undef
|
# stty lwrap undef
|
||||||
# stty lnext undef
|
# stty lnext undef
|
||||||
|
|
||||||
nnn -de $argv
|
# The command function allows one to alias this function to `nnn` without
|
||||||
|
# making an infinitely recursive alias
|
||||||
|
command nnn $argv
|
||||||
|
|
||||||
if test -e $NNN_TMPFILE
|
if test -e $NNN_TMPFILE
|
||||||
source $NNN_TMPFILE
|
source $NNN_TMPFILE
|
||||||
|
|
|
@ -2,6 +2,8 @@ vim.cmd("set runtimepath^=~/.vim runtimepath+=~/.vim/after")
|
||||||
vim.cmd("let &packpath = &runtimepath")
|
vim.cmd("let &packpath = &runtimepath")
|
||||||
vim.cmd("source ~/.vimrc")
|
vim.cmd("source ~/.vimrc")
|
||||||
|
|
||||||
|
vim.g.coq_settings = { auto_start = true }
|
||||||
|
|
||||||
vim.g.neovide_scale_factor = 0.7
|
vim.g.neovide_scale_factor = 0.7
|
||||||
vim.opt.guifont = { "JetBrainsMono Nerd Font", "h13" }
|
vim.opt.guifont = { "JetBrainsMono Nerd Font", "h13" }
|
||||||
|
|
||||||
|
@ -31,6 +33,9 @@ require('noice').setup({
|
||||||
["cmp.entry.get_documentation"] = true,
|
["cmp.entry.get_documentation"] = true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
popupmenu = {
|
||||||
|
enabled = false,
|
||||||
|
},
|
||||||
presets = {
|
presets = {
|
||||||
long_message_to_split = true, -- long messages will be sent to a split
|
long_message_to_split = true, -- long messages will be sent to a split
|
||||||
},
|
},
|
||||||
|
|
1
.vimrc
1
.vimrc
|
@ -94,6 +94,7 @@ inoremap <leader>j <Esc>
|
||||||
|
|
||||||
let mapleader = ','
|
let mapleader = ','
|
||||||
nnoremap <leader>f <cmd>ALEFix<cr>
|
nnoremap <leader>f <cmd>ALEFix<cr>
|
||||||
|
nnoremap <leader>a <cmd>ALEToggle<cr>
|
||||||
|
|
||||||
if has('nvim')
|
if has('nvim')
|
||||||
nnoremap <leader>n <cmd>Neotree<cr>
|
nnoremap <leader>n <cmd>Neotree<cr>
|
||||||
|
|
|
@ -90,7 +90,6 @@ function desktop_env -d 'Install base desktop utilities and configure theme'
|
||||||
feh \
|
feh \
|
||||||
rofi \
|
rofi \
|
||||||
kitty \
|
kitty \
|
||||||
qutebrowser \
|
|
||||||
wget \
|
wget \
|
||||||
unzip \
|
unzip \
|
||||||
physlock \
|
physlock \
|
||||||
|
|
Loading…
Reference in New Issue