neovim linux

master
Jordan Orelli 2 years ago
parent 00c571febd
commit 645adfdb42

@ -1,3 +1,11 @@
if [[ -f "$HOME/.bashrc" ]]; then
source "$HOME/.bashrc"
fi
if [[ -f "$HOME/.cargo/env" ]]; then
source "$HOME/.cargo/env"
fi
if [[ -f "$HOME/.nix-profile/etc/profile.d/nix.sh" ]]; then
source "$HOME/.nix-profile/etc/profile.d/nix.sh"
fi

@ -26,6 +26,14 @@ files:
nvim/init.vim
Vundle.vim > nvim/bundle/Vundle.vim
[link-files neovim:linux]
when: host.is_linux and host.has('nvim')
target_root: ~/.config
files:
nvim/colors
nvim/lua
nvim/init.vim
[git vundle]
when: host.has('vim') or host.has('nvim')
repo: https://github.com/VundleVim/Vundle.vim.git

@ -1,3 +1,5 @@
nmap <F5> :Cargo run -q <CR>
nmap <F5> :Cargo run<CR>
nmap <F7> :Cargo check<CR>
nmap <F8> :Cargo test<CR>
nmap <C-]> :ALEGoToDefinition<CR>

@ -478,8 +478,7 @@ if !has('nvim')
let g:ale_linters = {'rust': ['analyzer']}
let g:ale_fixers = {'rust': ['rustfmt', 'trim_whitespace', 'remove_trailing_lines']}
let g:rustfmt_autosave = 1
let g:ale_rust_analyzer_executable = "/home/jorelli/analyzer-spy"
let g:ale_rust_cargo_use_clippy = executable('cargo-clippy')
let g:ale_rust_cargo_use_clippy = 1
let g:ale_completion_enabled = 1
set completeopt=menu,menuone,preview,noselect,noinsert
endif

Loading…
Cancel
Save