@@ -90,6 +90,14 @@ in {
|
|||||||
group = "fix_size",
|
group = "fix_size",
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- Optionally, set up a command or auto-command to format on save
|
||||||
|
vim.api.nvim_create_autocmd("BufWritePre", {
|
||||||
|
pattern = "*",
|
||||||
|
callback = function()
|
||||||
|
require("conform").format()
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
-- Highlight when yanking (copying) text
|
-- Highlight when yanking (copying) text
|
||||||
vim.api.nvim_create_autocmd("TextYankPost", {
|
vim.api.nvim_create_autocmd("TextYankPost", {
|
||||||
desc = "Highlight when yanking (copying) text",
|
desc = "Highlight when yanking (copying) text",
|
||||||
@@ -109,7 +117,7 @@ in {
|
|||||||
add_sign("DiagnosticSignHint", " ")
|
add_sign("DiagnosticSignHint", " ")
|
||||||
add_sign("DiagnosticSignInfo", " ")
|
add_sign("DiagnosticSignInfo", " ")
|
||||||
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
plugins = with pkgs.vimPlugins; [
|
plugins = with pkgs.vimPlugins; [
|
||||||
vim-table-mode
|
vim-table-mode
|
||||||
|
|||||||
@@ -47,7 +47,7 @@
|
|||||||
onEdit = true,
|
onEdit = true,
|
||||||
onOpenAndSave = true,
|
onOpenAndSave = true,
|
||||||
} })
|
} })
|
||||||
add_lsp(lspconfig.tsserver, {})
|
add_lsp(lspconfig.ts_ls, {})
|
||||||
add_lsp(lspconfig.typst_lsp, {})
|
add_lsp(lspconfig.typst_lsp, {})
|
||||||
add_lsp(lspconfig.elixirls, { cmd = { "elixir-ls" } })
|
add_lsp(lspconfig.elixirls, { cmd = { "elixir-ls" } })
|
||||||
'';
|
'';
|
||||||
|
|||||||
@@ -11,9 +11,9 @@
|
|||||||
require("conform").setup({
|
require("conform").setup({
|
||||||
default_format_opts = {
|
default_format_opts = {
|
||||||
timeout_ms = 3000,
|
timeout_ms = 3000,
|
||||||
async = false, -- not recommended to change
|
async = false,
|
||||||
quiet = false, -- not recommended to change
|
quiet = false,
|
||||||
lsp_format = "fallback", -- not recommended to change
|
lsp_format = "fallback",
|
||||||
},
|
},
|
||||||
formatters_by_ft = {
|
formatters_by_ft = {
|
||||||
bash = { "shfmt" },
|
bash = { "shfmt" },
|
||||||
@@ -23,8 +23,8 @@
|
|||||||
json = { "fixjson" },
|
json = { "fixjson" },
|
||||||
lua = { "stylua" },
|
lua = { "stylua" },
|
||||||
nix = { "alejandra" },
|
nix = { "alejandra" },
|
||||||
php = { "php_cs_fixer" },
|
php = { "php_cs_fixer" },
|
||||||
python = { "black" },
|
python = { "black" },
|
||||||
rust = { "rustfmt" },
|
rust = { "rustfmt" },
|
||||||
sh = { "shfmt" },
|
sh = { "shfmt" },
|
||||||
typescript = { "prettierd" },
|
typescript = { "prettierd" },
|
||||||
@@ -33,14 +33,6 @@
|
|||||||
["*"] = { "injected" },
|
["*"] = { "injected" },
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Optionally, set up a command or auto-command to format on save
|
|
||||||
vim.api.nvim_create_autocmd("BufWritePre", {
|
|
||||||
pattern = "*",
|
|
||||||
callback = function()
|
|
||||||
require("conform").format()
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -6,8 +6,8 @@
|
|||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
enable_wayland = "true";
|
enable_wayland = "true";
|
||||||
# weztermPkg = pkgs.wezterm;
|
weztermPkg = pkgs.wezterm;
|
||||||
weztermFlake = inputs.wezterm.packages.${pkgs.system}.default;
|
# weztermFlake = inputs.wezterm.packages.${pkgs.system}.default;
|
||||||
inherit (lib) mkIf mkEnableOption;
|
inherit (lib) mkIf mkEnableOption;
|
||||||
cfg = config.modules.terminal.wezterm;
|
cfg = config.modules.terminal.wezterm;
|
||||||
in {
|
in {
|
||||||
@@ -17,7 +17,7 @@ in {
|
|||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
programs.wezterm = {
|
programs.wezterm = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = weztermFlake;
|
package = weztermPkg;
|
||||||
extraConfig =
|
extraConfig =
|
||||||
/*
|
/*
|
||||||
lua
|
lua
|
||||||
|
|||||||
@@ -17,6 +17,10 @@ in {
|
|||||||
"size 843 650,initialTitle:(floatcal)"
|
"size 843 650,initialTitle:(floatcal)"
|
||||||
"move 100%-w-20 40,initialTitle:(floatcal)"
|
"move 100%-w-20 40,initialTitle:(floatcal)"
|
||||||
#windowrulev2 = move 1708 32,class:(floatcal)
|
#windowrulev2 = move 1708 32,class:(floatcal)
|
||||||
|
"float,initialTitle:(runix)"
|
||||||
|
"size 600 400,initialTitle:(runix)"
|
||||||
|
"center,initialTitle:(runix)"
|
||||||
|
"workspace special:runix,initialTitle:(runix)"
|
||||||
"float,class:(org.keepassxc.KeePassXC)"
|
"float,class:(org.keepassxc.KeePassXC)"
|
||||||
"size 843 500,class:(org.keepassxc.KeePassXC)"
|
"size 843 500,class:(org.keepassxc.KeePassXC)"
|
||||||
"move 100%-w-20 40,class:(org.keepassxc.KeePassXC)"
|
"move 100%-w-20 40,class:(org.keepassxc.KeePassXC)"
|
||||||
|
|||||||
Reference in New Issue
Block a user