fix: rust indents

This commit is contained in:
2024-07-31 15:47:13 +02:00
parent c5fae2fa06
commit fd3b5b54ef
4 changed files with 5 additions and 8 deletions

View File

@@ -8,7 +8,6 @@ return {
c = { "clang_format" },
cs = { "csharpier" },
javascript = { "prettierd" },
rust = { "rustfmt" },
dart = { "dart_format" },
},
}
@@ -21,10 +20,6 @@ return {
args = { "--style", "{IndentWidth: 4, UseTab: Always, TabWidth: 4}" },
}
conform.formatters.rustfmt = {
args = { "--edition", "2021" },
}
vim.keymap.set("n", "<leader>f", function()
-- pcall(vim.cmd("TailwindSort"))

View File

@@ -57,7 +57,6 @@ return {
ensure_installed = {
"tsserver",
"eslint",
"rust_analyzer",
"lua_ls",
"jsonls",
"html",
@@ -66,6 +65,7 @@ return {
"dockerls",
"bashls",
"marksman",
"rust_analyzer",
},
handlers = {
function(server_name)
@@ -140,6 +140,7 @@ return {
"williamboman/mason.nvim",
dependencies = {},
opts = {
PATH = "append",
ui = {
border = "single",
},

View File

@@ -12,6 +12,7 @@ return {
"vim",
"vimdoc",
"gitcommit",
"rust",
},
tree_docs = {
enable = true,
@@ -34,7 +35,7 @@ return {
},
indent = {
enable = true,
disable = { "yaml" },
disable = { "yaml", "rust" },
},
})
end,

View File

@@ -6,7 +6,7 @@ vim.opt.relativenumber = true
vim.opt.tabstop = 4
vim.opt.softtabstop = 4
vim.opt.shiftwidth = 4
vim.opt.expandtab = true
vim.opt.expandtab = false
vim.opt.smartindent = true
vim.opt.smartcase = true