Use clippy with ra

This commit is contained in:
2023-08-15 16:50:49 +02:00
parent 5163ae312d
commit 33da164086
3 changed files with 14 additions and 4 deletions

View File

@@ -61,6 +61,8 @@ lvim.builtin.which_key.mappings["t"] = {
}
lvim.builtin.which_key.mappings["g"].g = {"<cmd>TermExec cmd='gitui&&exit'<CR>", "Gitui"}
lvim.builtin.which_key.mappings["s"].B = {"<cmd>Telescope git_branches<CR>", "Checkout branch"}
lvim.builtin.which_key.mappings["s"].b = {"<cmd>Telescope buffers<CR>", "Buffer"}
-- TODO: User Config for predefined plugins
-- After changing plugin config exit and reopen LunarVim, Run :PackerInstall :PackerCompile
@@ -186,7 +188,8 @@ lvim.plugins = {
{
"iamcco/markdown-preview.nvim",
build = function() vim.fn["mkdp#util#install"]() end,
}, -- :Rust
},
-- :Rust
{
'saecki/crates.nvim',
-- ft = {"toml"},
@@ -239,6 +242,13 @@ lvim.plugins = {
},
},
server = {
settings = {
["rust-analyzer"] = {
checkOnSave = {
command = "clippy",
}
}
},
on_init = require("lvim.lsp").common_on_init,
on_attach = function(client, bufnr)
require("lvim.lsp").common_on_attach(client, bufnr)

View File

@@ -4,4 +4,3 @@ Installer :
- fd
- ripgrep
- dust
- glow

5
zshrc
View File

@@ -3,9 +3,10 @@
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
export PATH=/home/jika/Scripts/:/home/jika/.cargo/bin:$PATH
export PATH="/home/jika/Scripts/:/home/jika/.cargo/bin:$PATH"
export PATH="/home/jika/.local/bin:/home/jika/.deno/bin:$PATH"
export RR_STATION="teo"
export RUSTC_WRAPPER=~/.cargo/bin/sccache
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
@@ -94,7 +95,7 @@ source $ZSH/oh-my-zsh.sh
# export ARCHFLAGS="-arch x86_64"
#
export RUSTC_WRAPPER=~/.cargo/bin/sccache
# Set personal aliases, overriding those provided by oh-my-zsh libs,
# plugins, and themes. Aliases can be placed here, though oh-my-zsh