Format all files

This commit is contained in:
2025-07-07 19:11:26 +02:00
parent 80ed32f741
commit a459b74dbe
12 changed files with 134 additions and 105 deletions
+17 -11
View File
@@ -1,6 +1,10 @@
{
programs.nixvim = {
opts.completeopt = ["menu" "menuone" "noselect"];
opts.completeopt = [
"menu"
"menuone"
"noselect"
];
plugins = {
luasnip.enable = true;
@@ -42,16 +46,18 @@
"<C-y>" = "cmp.mapping.confirm({ select = true })";
"<CR>" = "cmp.mapping.confirm({ select = true })";
"<C-Space>" = "cmp.mapping.complete()";
"<C-l>" = ''cmp.mapping(function()
if luasnip.expand_or_locally_jumpable() then
luasnip.expand_or_jump()
end
end, {'i', 's'})'';
"<C-h>" = ''cmp.mapping(function()
if luasnip.locally_jumpable(-1) then
luasnip.jump(-1)
end
end, {'i', 's'})'';
"<C-l>" = ''
cmp.mapping(function()
if luasnip.expand_or_locally_jumpable() then
luasnip.expand_or_jump()
end
end, {'i', 's'})'';
"<C-h>" = ''
cmp.mapping(function()
if luasnip.locally_jumpable(-1) then
luasnip.jump(-1)
end
end, {'i', 's'})'';
};
sources = [
@@ -1,4 +1,5 @@
{ pkgs, ... }: {
{ pkgs, ... }:
{
imports = [
./cmp.nix
./lsp.nix
@@ -13,8 +13,8 @@
icon = "";
}
];
lualine_c = ["filename"];
lualine_x = ["filetype"];
lualine_c = [ "filename" ];
lualine_x = [ "filetype" ];
};
};
};
@@ -1,4 +1,5 @@
{ pkgs, ... }: {
{ pkgs, ... }:
{
programs.nixvim = {
plugins.treesitter = {
enable = true;