Skip to content

Commit

Permalink
misc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Sep 23, 2024
1 parent 2c3db85 commit d203561
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions home/.config/fish/functions/check_and_activate_venv.fish
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ function check_and_activate_venv --description 'Check for venv or Poetry env and
end
set check_dir (dirname "$check_dir")
end
cd $current_dir

# Determine the new environment
set -l new_env
Expand Down
1 change: 1 addition & 0 deletions home/.config/nvim/plugin/lspconfig.lua
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ vim.api.nvim_create_autocmd('LspAttach', {
end, { buffer = ev.buf, desc = 'Format' })

-- Enable completion triggered by <c-x><c-o>
-- NOTE: we use mini.completion for this
vim.bo[ev.buf].omnifunc = 'v:lua.vim.lsp.omnifunc'

-- Workspace management
Expand Down
5 changes: 4 additions & 1 deletion home/.vim/config/basic.vim
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ syntax on
let g:ale_python_auto_poetry = 1

" Highlight occurences of selected word
autocmd CursorMoved * exe printf('match IncSearch /\V\<%s\>/', escape(expand('<cword>'), '/\'))
" (only in vim, nvim uses mini.cursorword)
if !has('nvim')
autocmd CursorMoved * exe printf('match IncSearch /\V\<%s\>/', escape(expand('<cword>'), '/\'))
endif

" Show the git diff in vim when commiting
autocmd FileType gitcommit DiffGitCached | wincmd p
Expand Down

0 comments on commit d203561

Please sign in to comment.