Minor changes to nvim cfg, fish key binds, and provision_linux

This commit is contained in:
mitchell 2023-07-14 16:24:37 -04:00
parent 19cb58d961
commit 124ea84991
5 changed files with 17 additions and 13 deletions

View File

@ -4,8 +4,7 @@ function fish_user_key_bindings
bind --mode insert ,j 'joplin; 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 ,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 ,n 'n; commandline -f repaint'
bind --mode insert ,s 'sysz; commandline -f repaint'
end

View File

@ -4,17 +4,15 @@
function n --wraps nnn --description 'support nnn quit and change directory'
# Block nesting of nnn in subshells
if test -n "$NNNLVL"
if [ (expr $NNNLVL + 0) -ge 1 ]
echo "nnn is already running"
return
end
if test -n "$NNNLVL" -a "$NNNLVL" -ge 1
echo "nnn is already running"
return
end
# The default behaviour is to cd on quit (nnn checks if NNN_TMPFILE is set)
# To cd on quit only on ^G, remove the "-x" as in:
# set NNN_TMPFILE "$XDG_CONFIG_HOME/nnn/.lastd"
# NOTE: NNN_TMPFILE is fixed, should not be modified
# The behaviour is set to cd on quit (nnn checks if NNN_TMPFILE is set)
# If NNN_TMPFILE is set to a custom path, it must be exported for nnn to
# see. To cd on quit only on ^G, remove the "-x" from both lines below,
# without changing the paths.
if test -n "$XDG_CONFIG_HOME"
set -x NNN_TMPFILE "$XDG_CONFIG_HOME/nnn/.lastd"
else
@ -27,7 +25,9 @@ function n --wraps nnn --description 'support nnn quit and change directory'
# stty lwrap 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
source $NNN_TMPFILE

View File

@ -2,6 +2,8 @@ vim.cmd("set runtimepath^=~/.vim runtimepath+=~/.vim/after")
vim.cmd("let &packpath = &runtimepath")
vim.cmd("source ~/.vimrc")
vim.g.coq_settings = { auto_start = true }
vim.g.neovide_scale_factor = 0.7
vim.opt.guifont = { "JetBrainsMono Nerd Font", "h13" }
@ -31,6 +33,9 @@ require('noice').setup({
["cmp.entry.get_documentation"] = true,
},
},
popupmenu = {
enabled = false,
},
presets = {
long_message_to_split = true, -- long messages will be sent to a split
},

1
.vimrc
View File

@ -94,6 +94,7 @@ inoremap <leader>j <Esc>
let mapleader = ','
nnoremap <leader>f <cmd>ALEFix<cr>
nnoremap <leader>a <cmd>ALEToggle<cr>
if has('nvim')
nnoremap <leader>n <cmd>Neotree<cr>

View File

@ -90,7 +90,6 @@ function desktop_env -d 'Install base desktop utilities and configure theme'
feh \
rofi \
kitty \
qutebrowser \
wget \
unzip \
physlock \