diff --git a/lvim/config.lua b/lvim/config.lua index d5e9203..5e80c5f 100644 --- a/lvim/config.lua +++ b/lvim/config.lua @@ -61,6 +61,8 @@ lvim.builtin.which_key.mappings["t"] = { } lvim.builtin.which_key.mappings["g"].g = {"TermExec cmd='gitui&&exit'", "Gitui"} +lvim.builtin.which_key.mappings["s"].B = {"Telescope git_branches", "Checkout branch"} +lvim.builtin.which_key.mappings["s"].b = {"Telescope buffers", "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) diff --git a/to_install.txt b/to_install.txt index 1a14bc7..942ec39 100644 --- a/to_install.txt +++ b/to_install.txt @@ -4,4 +4,3 @@ Installer : - fd - ripgrep - dust -- glow diff --git a/zshrc b/zshrc index f0061de..4190cf4 100644 --- a/zshrc +++ b/zshrc @@ -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