Compare commits
3 commits
751dceda4a
...
6fa3768d6d
Author | SHA1 | Date | |
---|---|---|---|
6fa3768d6d | |||
62dbab2600 | |||
22bdd0eb7f |
3 changed files with 10 additions and 4 deletions
|
@ -3,7 +3,7 @@ require('nvim-format-buffer').setup({
|
||||||
format_rules = {
|
format_rules = {
|
||||||
{ pattern = { '*.c', '*.h' }, command = 'clang-format' },
|
{ pattern = { '*.c', '*.h' }, command = 'clang-format' },
|
||||||
{
|
{
|
||||||
pattern = { '*.js', '*.mjs', '*.ts', '*.mts', '*.tsx', '*.vue', '*.css' },
|
pattern = { '*.js', '*.mjs', '*.ts', '*.mts', '*.cjs', '*.tsx', '*.vue', '*.css' },
|
||||||
command = function()
|
command = function()
|
||||||
return 'prettier --stdin-filepath ' .. vim.api.nvim_buf_get_name(0)
|
return 'prettier --stdin-filepath ' .. vim.api.nvim_buf_get_name(0)
|
||||||
end,
|
end,
|
||||||
|
|
|
@ -3,7 +3,8 @@ local cmd = {
|
||||||
bin_name,
|
bin_name,
|
||||||
"--background-index",
|
"--background-index",
|
||||||
"--suggest-missing-includes",
|
"--suggest-missing-includes",
|
||||||
"--enable-config"
|
"--enable-config",
|
||||||
|
"--query-driver=/usr/lib64/ccache/*,/usr/bin/*",
|
||||||
}
|
}
|
||||||
|
|
||||||
local config = vim.fs.find(".clangd", {
|
local config = vim.fs.find(".clangd", {
|
||||||
|
|
|
@ -18,10 +18,15 @@ if next(config) then
|
||||||
settings = {
|
settings = {
|
||||||
["rust-analyzer"] = {
|
["rust-analyzer"] = {
|
||||||
checkOnSave = {
|
checkOnSave = {
|
||||||
command = "clippy"
|
command = "clippy",
|
||||||
|
enable = true
|
||||||
|
},
|
||||||
|
diagnostics = {
|
||||||
|
enable = false,
|
||||||
},
|
},
|
||||||
check = {
|
check = {
|
||||||
command = "check"
|
command = "check",
|
||||||
|
extraArgs = {"--all-features"}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue