mirror of https://github.com/NvChad/NvChad
fixed colors
parent
100c622866
commit
1fd40eff0c
@ -0,0 +1,21 @@
|
||||
local on_attach=require("plugins.configs.lspconfig").on_attach;
|
||||
local capabilities=require("plugins.configs.lspconfig").capabilities;
|
||||
local lspconfig=require("lspconfig");
|
||||
local util=require "lspconfig/util";
|
||||
|
||||
|
||||
-- lspconfig.rust_analyzer.setup=({
|
||||
-- on_attach=on_attach,
|
||||
-- capabilities=capabilities,
|
||||
-- filetypes={"rust"},
|
||||
-- root_dir=util.root_pattern("Cargo.toml"),
|
||||
-- settings={
|
||||
-- ["rust-analyzer"]={
|
||||
-- cargo={
|
||||
-- allFeatures=true,
|
||||
-- }
|
||||
-- }
|
||||
-- }
|
||||
-- });
|
||||
|
||||
|
@ -0,0 +1,15 @@
|
||||
local on_attach=require("plugins.configs.lspconfig").on_attach;
|
||||
local capabilities=require("plugins.configs.lspconfig").capabilities;
|
||||
|
||||
|
||||
local options={
|
||||
server={
|
||||
on_attach=on_attach,
|
||||
capabilities=capabilities
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
return options;
|
@ -0,0 +1,33 @@
|
||||
|
||||
local M={};
|
||||
|
||||
M.dap={
|
||||
n={
|
||||
["<leader>db"]={
|
||||
"<cmd> DapTogglBreakpoint <CR>",
|
||||
"Toggle breakpoint"
|
||||
},
|
||||
["<leader>dus"]={
|
||||
function ()
|
||||
local widgets=require("dap.ui.widgets");
|
||||
local sidebar=widgets.sidebar(widgets.scopes);
|
||||
sidebar.open();
|
||||
end,
|
||||
"Open debugging sidebar"
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
M.crates={
|
||||
n={
|
||||
["<leader>rcu"]={
|
||||
function ()
|
||||
require("crates").upgrade_all_crates()
|
||||
end,
|
||||
"Update crates"
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
return M;
|
Loading…
Reference in New Issue