mirror of
https://git.gay/xqtc/nixos-config
synced 2024-12-29 14:43:45 +01:00
Compare commits
2 commits
b62faa2539
...
d5ef609f6f
Author | SHA1 | Date | |
---|---|---|---|
xqtc | d5ef609f6f | ||
xqtc | 34ac1c621f |
|
@ -30,7 +30,7 @@
|
||||||
colorschemes.catppuccin.enable = true;
|
colorschemes.catppuccin.enable = true;
|
||||||
plugins = {
|
plugins = {
|
||||||
persistence = {
|
persistence = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
navic = {
|
navic = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -136,23 +136,23 @@
|
||||||
copilot-cmp.enable = false;
|
copilot-cmp.enable = false;
|
||||||
neocord.enable = true;
|
neocord.enable = true;
|
||||||
rustaceanvim = {
|
rustaceanvim = {
|
||||||
enable = true;
|
enable = false;
|
||||||
settings = {
|
settings = {
|
||||||
dap.autoloadConfigurations = true;
|
# dap.autoloadConfigurations = true;
|
||||||
dap.adapter = let
|
# dap.adapter = let
|
||||||
code-lldb = pkgs.vscode-extensions.vadimcn.vscode-lldb;
|
# code-lldb = pkgs.vscode-extensions.vadimcn.vscode-lldb;
|
||||||
in {
|
# in {
|
||||||
executable.command = "${code-lldb}/share/vscode/extensions/vadimcn.vscode-lldb/adapter/codelldb";
|
# executable.command = "${code-lldb}/share/vscode/extensions/vadimcn.vscode-lldb/adapter/codelldb";
|
||||||
executable.args = [
|
# executable.args = [
|
||||||
"--liblldb"
|
# "--liblldb"
|
||||||
"${code-lldb}/share/vscode/extensions/vadimcn.vscode-lldb/lldb/lib/liblldb.dylib"
|
# "${code-lldb}/share/vscode/extensions/vadimcn.vscode-lldb/lldb/lib/liblldb.dylib"
|
||||||
"--port"
|
# "--port"
|
||||||
"31337"
|
# "31337"
|
||||||
];
|
# ];
|
||||||
type = "server";
|
# type = "server";
|
||||||
port = "31337";
|
# port = "31337";
|
||||||
host = "127.0.0.1";
|
# host = "127.0.0.1";
|
||||||
};
|
# };
|
||||||
};
|
};
|
||||||
server = {
|
server = {
|
||||||
settings = {
|
settings = {
|
||||||
|
@ -163,7 +163,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
rustaceanvim.settings.server.default_settings.rust-analyzer.diagnostics.disabled = ["inactive-code"];
|
# rustaceanvim.settings.server.default_settings.rust-analyzer.diagnostics.disabled = ["inactive-code"];
|
||||||
lsp = {
|
lsp = {
|
||||||
enable = true;
|
enable = true;
|
||||||
inlayHints = true;
|
inlayHints = true;
|
||||||
|
@ -183,11 +183,17 @@
|
||||||
java-language-server.enable = true;
|
java-language-server.enable = true;
|
||||||
hls.enable = true;
|
hls.enable = true;
|
||||||
eslint.enable = true;
|
eslint.enable = true;
|
||||||
# rust-analyzer = {
|
rust-analyzer = {
|
||||||
# enable = true;
|
enable = true;
|
||||||
# installCargo = false;
|
installCargo = false;
|
||||||
# installRustc = false;
|
installRustc = false;
|
||||||
# };
|
settings = {
|
||||||
|
inlayHints = {
|
||||||
|
closureStyle = "rust_analyzer";
|
||||||
|
};
|
||||||
|
typing.autoClosingAngleBrackets.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
nil_ls.enable = true;
|
nil_ls.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -208,7 +214,8 @@
|
||||||
nixvimInjections = true;
|
nixvimInjections = true;
|
||||||
settings = {
|
settings = {
|
||||||
ensure_installed = "all";
|
ensure_installed = "all";
|
||||||
highlight.enable = true;
|
# highlight.enable = true;
|
||||||
|
highlight.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
treesitter-refactor = {
|
treesitter-refactor = {
|
||||||
|
@ -556,45 +563,45 @@
|
||||||
mode = ["n"];
|
mode = ["n"];
|
||||||
key = "<leader>qs";
|
key = "<leader>qs";
|
||||||
action = ''
|
action = ''
|
||||||
function()
|
function()
|
||||||
require("persistence").load()
|
require("persistence").load()
|
||||||
end
|
end
|
||||||
'';
|
'';
|
||||||
lua = true;
|
lua = true;
|
||||||
options.desc = "Load the session for the current directory";
|
options.desc = "Load the session for the current directory";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
mode = ["n"];
|
mode = ["n"];
|
||||||
key = "<leader>qS";
|
key = "<leader>qS";
|
||||||
action = ''
|
action = ''
|
||||||
function()
|
function()
|
||||||
require("persistence").select()
|
require("persistence").select()
|
||||||
end
|
end
|
||||||
'';
|
'';
|
||||||
lua = true;
|
lua = true;
|
||||||
options.desc = "Select a session to load";
|
options.desc = "Select a session to load";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
mode = ["n"];
|
mode = ["n"];
|
||||||
key = "<leader>ql";
|
key = "<leader>ql";
|
||||||
action = ''
|
action = ''
|
||||||
function()
|
function()
|
||||||
require("persistence").load({ last = true })
|
require("persistence").load({ last = true })
|
||||||
end
|
end
|
||||||
'';
|
'';
|
||||||
lua = true;
|
lua = true;
|
||||||
options.desc = "Load the last session";
|
options.desc = "Load the last session";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
mode = ["n"];
|
mode = ["n"];
|
||||||
key = "<leader>qd";
|
key = "<leader>qd";
|
||||||
action = ''
|
action = ''
|
||||||
function()
|
function()
|
||||||
require("persistence").stop()
|
require("persistence").stop()
|
||||||
end
|
end
|
||||||
'';
|
'';
|
||||||
lua = true;
|
lua = true;
|
||||||
options.desc = "Stop persistence";
|
options.desc = "Stop persistence";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
@ -136,8 +136,19 @@
|
||||||
pulse.enable = true;
|
pulse.enable = true;
|
||||||
# If you want to use JACK applications, uncomment this
|
# If you want to use JACK applications, uncomment this
|
||||||
jack.enable = true;
|
jack.enable = true;
|
||||||
|
extraConfig = {
|
||||||
|
pipewire = {
|
||||||
|
"10-clock-rate" = {
|
||||||
|
"context.properties" = {
|
||||||
|
"default.clock.rate" = 44100;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs.gamemode.enable = true;
|
||||||
|
|
||||||
hardware.bluetooth = {
|
hardware.bluetooth = {
|
||||||
enable = true;
|
enable = true;
|
||||||
powerOnBoot = true;
|
powerOnBoot = true;
|
||||||
|
|
Loading…
Reference in a new issue