separator

This commit is contained in:
Christian Nieves
2025-02-20 02:59:34 -06:00
parent 2e945be118
commit 55b8aab06a
2 changed files with 70 additions and 31 deletions

View File

@ -6,12 +6,12 @@ return {
opts = { opts = {
options = { options = {
separator_style = "slope", separator_style = "slope",
offsets = { { -- offsets = { {
filetype = "neo-tree", -- filetype = "neo-tree",
text = "NeoTree", -- text = "NeoTree",
highlight = "Directory", -- highlight = "Directory",
separator = true, -- use a "true" to enable the default, or set your own character -- separator = true, -- use a "true" to enable the default, or set your own character
}, }, -- }, },
mode = "tabs", mode = "tabs",
diagnostics = "nvim_lsp", diagnostics = "nvim_lsp",
-- diagnostics_indicator = function(count, level, diagnostics_dict, context) -- diagnostics_indicator = function(count, level, diagnostics_dict, context)

View File

@ -2,9 +2,48 @@ return {
{ "ron-rs/ron.vim" }, { "ron-rs/ron.vim" },
{ {
"mrcjkb/rustaceanvim", "mrcjkb/rustaceanvim",
version = "^5", -- Recommended version = vim.fn.has("nvim-0.10.0") == 0 and "^4" or false,
lazy = false, -- This plugin is already lazy ft = { "rust" },
keys = {}, config = function(_, opts)
vim.g.rustaceanvim = vim.tbl_deep_extend("keep", vim.g.rustaceanvim or {}, opts or {})
end,
opts = {
server = {
default_settings = {
-- rust-analyzer language server configuration
["rust-analyzer"] = {
cargo = {
allFeatures = true,
loadOutDirsFromCheck = true,
buildScripts = {
enable = true,
},
},
procMacro = {
enable = true,
ignored = {
["async-trait"] = { "async_trait" },
["napi-derive"] = { "napi" },
["async-recursion"] = { "async_recursion" },
},
},
files = {
excludeDirs = {
".direnv",
".git",
".github",
".gitlab",
"bin",
"node_modules",
"target",
"venv",
".venv",
},
},
},
},
},
},
}, },
{ {
"saecki/crates.nvim", "saecki/crates.nvim",