tweaks to <leader>n and use clippy with rust
This commit is contained in:
parent
e3bad09e9f
commit
ad0d5db776
3 changed files with 12 additions and 1 deletions
|
@ -15,7 +15,7 @@ require("catppuccin").setup({
|
|||
return {
|
||||
TreesitterContext = { bg = colors.mantle },
|
||||
TreesitterContextLineNumber = { bg = colors.mantle },
|
||||
TreesitterContextBottom = { style = { "underline" } },
|
||||
-- TreesitterContextBottom = { style = { "underline" } },
|
||||
MultiCursor = { bg = colors.red },
|
||||
VM_Cursor = { bg = colors.red },
|
||||
}
|
||||
|
|
|
@ -130,9 +130,11 @@ local function clean_screen()
|
|||
if vim.o.number then
|
||||
vim.diagnostic.show()
|
||||
vim.opt.signcolumn = "yes"
|
||||
vim.cmd("syntax on")
|
||||
else
|
||||
vim.diagnostic.hide()
|
||||
vim.opt.signcolumn = "no"
|
||||
vim.cmd("syntax off")
|
||||
end
|
||||
end
|
||||
|
||||
|
|
9
lua/user/lsp/settings/rust_analyzer.lua
Normal file
9
lua/user/lsp/settings/rust_analyzer.lua
Normal file
|
@ -0,0 +1,9 @@
|
|||
return {
|
||||
settings = {
|
||||
["rust-analyzer"] = {
|
||||
checkOnSave = {
|
||||
command = "clippy",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
Loading…
Reference in a new issue