Neovim fixes
This commit is contained in:
parent
25f5dc6d6d
commit
dec0d75a6d
|
@ -74,11 +74,10 @@ in {
|
|||
pkgs.wl-clipboard
|
||||
pkgs.jq
|
||||
];
|
||||
|
||||
services.hyprpaper = {
|
||||
enable = true;
|
||||
settings = {
|
||||
ipc = "on";
|
||||
ipc = "off";
|
||||
splash = false;
|
||||
preload = [ "${./files/wallpaper.png}" ];
|
||||
wallpaper = [
|
||||
|
|
|
@ -54,20 +54,25 @@
|
|||
-google-*,
|
||||
-llvm*,
|
||||
-zircon-*,
|
||||
-bugprone-easily-swappable-parameters
|
||||
-readability-identifier-length
|
||||
-bugprone-easily-swappable-parameters,
|
||||
-readability-identifier-length,
|
||||
-readability-avoid-const-params-in-decls,
|
||||
-readability-magic-numbers
|
||||
-bugprone-narrowing-conversions
|
||||
-modernize-use-trailing-return-type
|
||||
-cppcoreguidelines-pro-type-union-access
|
||||
-modernize-use-nodiscard
|
||||
-cppcoreguidelines-narrowing-conversions
|
||||
-cppcoreguidelines-avoid-magic-numbers
|
||||
-Wsign-compare
|
||||
-hicpp-uppercase-literal-suffix
|
||||
-readability-uppercase-literal-suffix
|
||||
-readability-named-parameter
|
||||
-readability-magic-numbers,
|
||||
-bugprone-narrowing-conversions,
|
||||
-modernize-use-trailing-return-type,
|
||||
-cppcoreguidelines-pro-type-union-access,
|
||||
-modernize-use-nodiscard,
|
||||
-cppcoreguidelines-narrowing-conversions,
|
||||
-cppcoreguidelines-avoid-magic-numbers,
|
||||
-Wsign-compare,
|
||||
-hicpp-uppercase-literal-suffix,
|
||||
-readability-uppercase-literal-suffix,
|
||||
-readability-named-parameter,
|
||||
-readability-braces-around-statements,
|
||||
-hicpp-uppercase-literal-suffix,
|
||||
-bugprone-easily-swappable-parameters,
|
||||
-hicpp-special-member-functions,
|
||||
-readability-identifier-length,
|
||||
-performance-avoid-endl"
|
||||
WarningsAsErrors: '''
|
||||
HeaderFilterRegex: '''
|
||||
|
|
|
@ -23,4 +23,5 @@ return {
|
|||
keys = {
|
||||
{'<leader>c', '<cmd>Telescope neoclip<cr>'},
|
||||
},
|
||||
lazy = false
|
||||
}
|
||||
|
|
|
@ -53,6 +53,10 @@ return {
|
|||
ui = {
|
||||
hl_groups = {
|
||||
ObsidianRefText = { fg = "#61afef" },
|
||||
},
|
||||
checkboxes = {
|
||||
[" "] = { char = "", hl_group = "ObsidianTodo" },
|
||||
["x"] = { char = "", hl_group = "ObsidianDone" },
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
@ -1,3 +1,14 @@
|
|||
vim.api.nvim_create_autocmd("BufRead", {
|
||||
callback = function(ev)
|
||||
if vim.bo[ev.buf].buftype == "quickfix" then
|
||||
vim.schedule(function()
|
||||
vim.cmd([[cclose]])
|
||||
vim.cmd([[Trouble qflist open focus=true]])
|
||||
end)
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
||||
return {
|
||||
'folke/trouble.nvim',
|
||||
dependencies = {"nvim-tree/nvim-web-devicons"},
|
||||
|
@ -6,14 +17,31 @@ return {
|
|||
close = {"q", "<Esc>"},
|
||||
jump = {"<cr>"},
|
||||
toggle_fold = {"<tab>"},
|
||||
}
|
||||
},
|
||||
warn_no_results = false,
|
||||
open_no_results = true,
|
||||
auto_focus = true,
|
||||
max_items = 100000000000000,
|
||||
},
|
||||
keys = {
|
||||
{
|
||||
"<leader>d",
|
||||
"<cmd>Trouble diagnostics toggle<cr>",
|
||||
"<cmd>Trouble diagnostics toggle focus=true<cr>",
|
||||
desc = "Diagnostics (Trouble)",
|
||||
},
|
||||
{
|
||||
"<leader>q",
|
||||
"<cmd>Trouble close<cr>",
|
||||
desc = "Close Trouble",
|
||||
},
|
||||
{
|
||||
"<C-/>",
|
||||
function ()
|
||||
vim.cmd(":vimgrep // %")
|
||||
vim.cmd(":Trouble quickfix focus=true")
|
||||
end,
|
||||
desc = "Send search to Trouble",
|
||||
},
|
||||
},
|
||||
lazy = true
|
||||
lazy = false
|
||||
}
|
||||
|
|
|
@ -34,7 +34,8 @@ local function should_load(path)
|
|||
end
|
||||
|
||||
function teaching.load()
|
||||
vim.cmd("NvimTreeFindFileToggle")
|
||||
-- vim.cmd("NvimTreeFindFileToggle")
|
||||
require("trouble").toggle({ mode = "diagnostics" })
|
||||
local scan = require("plenary.scandir").scan_dir('.')
|
||||
local cwd = vim.fn.getcwd()
|
||||
for _, v in ipairs(scan) do
|
||||
|
@ -47,7 +48,6 @@ function teaching.load()
|
|||
end
|
||||
end
|
||||
vim.api.nvim_set_current_dir(cwd)
|
||||
require("trouble").open("diagnostics")
|
||||
end
|
||||
|
||||
vim.api.nvim_create_user_command("AP", teaching.load, {})
|
||||
|
|
|
@ -65,6 +65,7 @@
|
|||
initExtra = ''
|
||||
LOCAL_SEARCH_DIRS=(~/.dotfiles/)
|
||||
REMOTE_SEARCH_DIRS=(~/Workspace/ /home/server/Storage/Shared/ /home/server/Storage/Thomas/)
|
||||
export LD_LIBRARY_PATH=${pkgs.sqlite.out}/lib:$LD_LIBRARY_PATH
|
||||
'';
|
||||
|
||||
initExtraFirst = ''
|
||||
|
|
|
@ -1,53 +1,61 @@
|
|||
{ inputs, config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
(import ../Common/default.nix { inherit inputs pkgs; })
|
||||
(import ../Common/desktop.nix { inherit inputs pkgs config; })
|
||||
(import ../Common/nfs.nix { inherit inputs pkgs config; })
|
||||
];
|
||||
imports = [
|
||||
(import ../Common/default.nix { inherit inputs pkgs; })
|
||||
(import ../Common/desktop.nix { inherit inputs pkgs config; })
|
||||
(import ../Common/nfs.nix { inherit inputs pkgs config; })
|
||||
];
|
||||
|
||||
# AMD CPU
|
||||
boot.blacklistedKernelModules = [ "k10temp" ];
|
||||
boot.extraModulePackages = [ config.boot.kernelPackages.zenpower ];
|
||||
boot.kernelModules = [ "zenpower amd_pstate=active" ];
|
||||
boot.kernelParams = ["amd_pstate=active"];
|
||||
# AMD CPU
|
||||
boot.blacklistedKernelModules = [ "k10temp" ];
|
||||
boot.extraModulePackages = [ config.boot.kernelPackages.zenpower ];
|
||||
boot.kernelModules = [ "zenpower amd_pstate=active" ];
|
||||
boot.kernelParams = ["amd_pstate=active"];
|
||||
|
||||
# AMD CPU & GPU
|
||||
boot.initrd.kernelModules = [ "amdgpu" ];
|
||||
services.logind.extraConfig = ''HandlePowerKey=suspend'';
|
||||
# AMD CPU & GPU
|
||||
boot.initrd.kernelModules = [ "amdgpu" ];
|
||||
services.logind.extraConfig = ''HandlePowerKey=suspend'';
|
||||
|
||||
# services.ollama = {
|
||||
# enable = true;
|
||||
# };
|
||||
# services.ollama = {
|
||||
# enable = true;
|
||||
# };
|
||||
|
||||
hardware.graphics.extraPackages = with pkgs; [
|
||||
rocmPackages.clr.icd
|
||||
];
|
||||
systemd.tmpfiles.rules = [
|
||||
"L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}"
|
||||
];
|
||||
networking.wg-quick.interfaces = {
|
||||
wg0 = {
|
||||
address = [ "10.0.0.10/24" " 2a02:a03f:83ad:2101::2/128" ];
|
||||
dns = [ "10.0.0.1" "fdc9:281f:04d7:9ee9::1" ];
|
||||
privateKeyFile = "/home/user/.secrets/Wireguard/Kell.key";
|
||||
listenPort = 51820;
|
||||
peers = [{
|
||||
publicKey = "/9ppjm3yeD0duDvxrqgcHscHmftXko+0s2RbivNEy2c=";
|
||||
allowedIPs = [ "10.0.0.1/8" ];
|
||||
endpoint = "192.168.1.1:13231";
|
||||
}];
|
||||
# hardware.graphics.extraPackages = with pkgs; [
|
||||
# rocmPackages.clr.icd
|
||||
# ];
|
||||
# systemd.tmpfiles.rules = [
|
||||
# "L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}"
|
||||
# ];
|
||||
|
||||
networking.wg-quick.interfaces = {
|
||||
wg0 = {
|
||||
address = [ "10.0.0.10/24" " 2a02:a03f:83ad:2101::2/128" ];
|
||||
dns = [ "10.0.0.1" "fdc9:281f:04d7:9ee9::1" ];
|
||||
privateKeyFile = "/home/user/.secrets/Wireguard/Kell.key";
|
||||
listenPort = 51820;
|
||||
peers = [{
|
||||
publicKey = "/9ppjm3yeD0duDvxrqgcHscHmftXko+0s2RbivNEy2c=";
|
||||
allowedIPs = [ "10.0.0.1/8" ];
|
||||
endpoint = "192.168.1.1:13231";
|
||||
}];
|
||||
};
|
||||
};
|
||||
};
|
||||
programs.gnupg.agent.enable = true;
|
||||
networking.wireless.iwd.enable = true;
|
||||
networking.wireless.iwd.settings = {
|
||||
IPv6 = {
|
||||
Enabled = true;
|
||||
programs.gnupg.agent.enable = true;
|
||||
networking.wireless.iwd.enable = true;
|
||||
networking.wireless.iwd.settings = {
|
||||
IPv6 = {
|
||||
Enabled = true;
|
||||
};
|
||||
Settings = {
|
||||
AutoConnect = true;
|
||||
};
|
||||
};
|
||||
Settings = {
|
||||
AutoConnect = true;
|
||||
|
||||
services.sunshine = {
|
||||
enable = true;
|
||||
autoStart = true;
|
||||
capSysAdmin = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue