Compare commits
No commits in common. "15dfb33122734cf99e5023f97289a7ab694780f2" and "75be58861b06463f196dbd493b99c0b010a6cc35" have entirely different histories.
15dfb33122
...
75be58861b
|
@ -15,7 +15,7 @@
|
||||||
my.programs.hyprland.nvidiaSupport = true;
|
my.programs.hyprland.nvidiaSupport = true;
|
||||||
|
|
||||||
# KERNEL
|
# KERNEL
|
||||||
boot.kernelPackages = pkgs.linuxPackages_6_1; # HACK to get nvidia kernel package to build
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
|
||||||
# BOOT
|
# BOOT
|
||||||
boot = {
|
boot = {
|
||||||
|
|
|
@ -48,7 +48,6 @@ in
|
||||||
withPython3 = true;
|
withPython3 = true;
|
||||||
extraLuaConfig = builtins.readFile ./init.lua;
|
extraLuaConfig = builtins.readFile ./init.lua;
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [
|
||||||
alejandra
|
|
||||||
black
|
black
|
||||||
isort
|
isort
|
||||||
nil
|
nil
|
||||||
|
|
|
@ -211,12 +211,6 @@ require("formatter").setup({
|
||||||
yaml = {
|
yaml = {
|
||||||
require("formatter.filetypes.yaml").yamlfmt,
|
require("formatter.filetypes.yaml").yamlfmt,
|
||||||
},
|
},
|
||||||
|
|
||||||
-- HACK to use specific formatters only when specified
|
|
||||||
alejandra = {
|
|
||||||
require("formatter.filetypes.nix").alejandra,
|
|
||||||
},
|
|
||||||
|
|
||||||
-- Use the special "*" filetype for defining formatter configurations on
|
-- Use the special "*" filetype for defining formatter configurations on
|
||||||
-- any filetype
|
-- any filetype
|
||||||
["*"] = {
|
["*"] = {
|
||||||
|
@ -226,21 +220,6 @@ require("formatter").setup({
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
vim.api.nvim_create_user_command("Fmt", function(opts)
|
|
||||||
local params = vim.split(opts.args, "%s+", { trimempty = true })
|
|
||||||
local filetype = vim.bo.filetype
|
|
||||||
vim.cmd("set filetype=" .. params[1]) -- fake filetype
|
|
||||||
vim.cmd(":Format")
|
|
||||||
vim.cmd("set filetype=" .. filetype) -- restore original filetype
|
|
||||||
end, {
|
|
||||||
nargs = 1,
|
|
||||||
complete = function()
|
|
||||||
local languages = {
|
|
||||||
nix = { "alejandra" },
|
|
||||||
}
|
|
||||||
return languages[vim.bo.filetype] or {}
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
wk.register({
|
wk.register({
|
||||||
["="] = { "<cmd>Format<cr>", "format (formatter)" },
|
["="] = { "<cmd>Format<cr>", "format (formatter)" },
|
||||||
}, { noremap = true, silent = true })
|
}, { noremap = true, silent = true })
|
||||||
|
|
Loading…
Reference in New Issue