mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-10 17:24:32 +02:00
treewide: Reformat with nixfmt
This commit is contained in:
parent
c6281260dc
commit
62f32bfc71
459 changed files with 28139 additions and 26377 deletions
|
@ -1,8 +1,5 @@
|
|||
{ pkgs, cmp-sources, ... }:
|
||||
{
|
||||
pkgs,
|
||||
cmp-sources,
|
||||
...
|
||||
}: {
|
||||
all-sources = {
|
||||
plugins = {
|
||||
copilot-lua = {
|
||||
|
@ -14,24 +11,16 @@
|
|||
|
||||
cmp = {
|
||||
enable = true;
|
||||
settings.sources = with pkgs.lib; let
|
||||
disabledSources =
|
||||
optional
|
||||
(pkgs.stdenv.hostPlatform.system == "aarch64-linux")
|
||||
"cmp_tabnine";
|
||||
settings.sources =
|
||||
with pkgs.lib;
|
||||
let
|
||||
disabledSources = optional (pkgs.stdenv.hostPlatform.system == "aarch64-linux") "cmp_tabnine";
|
||||
|
||||
filterFunc = sourceName: !(elem sourceName disabledSources);
|
||||
filterFunc = sourceName: !(elem sourceName disabledSources);
|
||||
|
||||
sourceNames =
|
||||
filter
|
||||
filterFunc
|
||||
(attrNames cmp-sources);
|
||||
in
|
||||
map
|
||||
(
|
||||
sourceName: {name = sourceName;}
|
||||
)
|
||||
sourceNames;
|
||||
sourceNames = filter filterFunc (attrNames cmp-sources);
|
||||
in
|
||||
map (sourceName: { name = sourceName; }) sourceNames;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -3,14 +3,18 @@
|
|||
plugins = {
|
||||
cmp = {
|
||||
enable = true;
|
||||
settings.sources = [
|
||||
{name = "git";}
|
||||
];
|
||||
settings.sources = [ { name = "git"; } ];
|
||||
};
|
||||
|
||||
cmp-git.settings = {
|
||||
filetypes = ["gitcommit" "octo"];
|
||||
remotes = ["upstream" "origin"];
|
||||
filetypes = [
|
||||
"gitcommit"
|
||||
"octo"
|
||||
];
|
||||
remotes = [
|
||||
"upstream"
|
||||
"origin"
|
||||
];
|
||||
enableRemoteUrlRewrites = false;
|
||||
git = {
|
||||
commits = {
|
||||
|
@ -20,9 +24,15 @@
|
|||
};
|
||||
};
|
||||
github = {
|
||||
hosts = [];
|
||||
hosts = [ ];
|
||||
issues = {
|
||||
fields = ["title" "number" "body" "updatedAt" "state"];
|
||||
fields = [
|
||||
"title"
|
||||
"number"
|
||||
"body"
|
||||
"updatedAt"
|
||||
"state"
|
||||
];
|
||||
filter = "all";
|
||||
limit = 100;
|
||||
state = "open";
|
||||
|
@ -35,7 +45,13 @@
|
|||
format.__raw = "require('cmp_git.format').github.mentions";
|
||||
};
|
||||
pull_requests = {
|
||||
fields = ["title" "number" "body" "updatedAt" "state"];
|
||||
fields = [
|
||||
"title"
|
||||
"number"
|
||||
"body"
|
||||
"updatedAt"
|
||||
"state"
|
||||
];
|
||||
limit = 100;
|
||||
state = "open";
|
||||
sort_by.__raw = "require('cmp_git.sort').github.pull_requests";
|
||||
|
@ -43,7 +59,7 @@
|
|||
};
|
||||
};
|
||||
gitlab = {
|
||||
hosts = [];
|
||||
hosts = [ ];
|
||||
issues = {
|
||||
limit = 100;
|
||||
state = "opened";
|
||||
|
@ -126,13 +142,15 @@
|
|||
plugins = {
|
||||
cmp = {
|
||||
enable = true;
|
||||
settings.sources = [
|
||||
{name = "git";}
|
||||
];
|
||||
settings.sources = [ { name = "git"; } ];
|
||||
};
|
||||
|
||||
cmp-git.settings = {
|
||||
remotes = ["upstream" "origin" "foo"];
|
||||
remotes = [
|
||||
"upstream"
|
||||
"origin"
|
||||
"foo"
|
||||
];
|
||||
github = {
|
||||
issues = {
|
||||
filter = "all";
|
||||
|
|
|
@ -2,9 +2,7 @@
|
|||
empty = {
|
||||
plugins.cmp = {
|
||||
enable = true;
|
||||
settings.sources = [
|
||||
{name = "cmp_tabby";}
|
||||
];
|
||||
settings.sources = [ { name = "cmp_tabby"; } ];
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -12,15 +10,13 @@
|
|||
plugins = {
|
||||
cmp = {
|
||||
enable = true;
|
||||
settings.sources = [
|
||||
{name = "cmp_tabby";}
|
||||
];
|
||||
settings.sources = [ { name = "cmp_tabby"; } ];
|
||||
};
|
||||
cmp-tabby = {
|
||||
host = "http://localhost:5000";
|
||||
maxLines = 100;
|
||||
runOnEveryKeyStroke = true;
|
||||
stop = ["\n"];
|
||||
stop = [ "\n" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -61,7 +61,7 @@
|
|||
completion = {
|
||||
keywordLength = 1;
|
||||
keywordPattern = ''[[\%(-\?\d\+\%(\.\d\+\)\?\|\h\w*\%(-\w*\)*\)]]'';
|
||||
autocomplete = ["TextChanged"];
|
||||
autocomplete = [ "TextChanged" ];
|
||||
completeopt = "menu,menuone,noselect";
|
||||
};
|
||||
confirmation = {
|
||||
|
@ -73,7 +73,11 @@
|
|||
};
|
||||
formatting = {
|
||||
expandableIndicator = true;
|
||||
fields = ["abbr" "kind" "menu"];
|
||||
fields = [
|
||||
"abbr"
|
||||
"kind"
|
||||
"menu"
|
||||
];
|
||||
format = ''
|
||||
function(_, vim_item)
|
||||
return vim_item
|
||||
|
@ -100,7 +104,7 @@
|
|||
"order"
|
||||
];
|
||||
};
|
||||
sources = [];
|
||||
sources = [ ];
|
||||
experimental = {
|
||||
ghost_text = false;
|
||||
};
|
||||
|
@ -115,7 +119,16 @@
|
|||
};
|
||||
window = {
|
||||
completion = {
|
||||
border = ["" "" "" "" "" "" "" ""];
|
||||
border = [
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
];
|
||||
winhighlight = "Normal:Pmenu,FloatBorder:Pmenu,CursorLine:PmenuSel,Search:None";
|
||||
scrolloff = 0;
|
||||
colOffset = 0;
|
||||
|
@ -138,14 +151,14 @@
|
|||
enable = true;
|
||||
|
||||
settings.sources = [
|
||||
{name = "path";}
|
||||
{name = "nvim_lsp";}
|
||||
{name = "luasnip";}
|
||||
{ name = "path"; }
|
||||
{ name = "nvim_lsp"; }
|
||||
{ name = "luasnip"; }
|
||||
{
|
||||
name = "buffer";
|
||||
option.get_bufnrs.__raw = "vim.api.nvim_list_bufs";
|
||||
}
|
||||
{name = "neorg";}
|
||||
{ name = "neorg"; }
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
|
@ -7,9 +7,7 @@
|
|||
plugins.cmp = {
|
||||
enable = true;
|
||||
|
||||
settings.sources = [
|
||||
{name = "codeium";}
|
||||
];
|
||||
settings.sources = [ { name = "codeium"; } ];
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -13,15 +13,16 @@
|
|||
};
|
||||
|
||||
copilot-cmp = {
|
||||
event = ["InsertEnter" "LspAttach"];
|
||||
event = [
|
||||
"InsertEnter"
|
||||
"LspAttach"
|
||||
];
|
||||
fixPairs = true;
|
||||
};
|
||||
|
||||
cmp = {
|
||||
enable = true;
|
||||
settings.sources = [
|
||||
{name = "copilot";}
|
||||
];
|
||||
settings.sources = [ { name = "copilot"; } ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
};
|
||||
proxy = "localhost:3128";
|
||||
proxy_strict_ssl = false;
|
||||
workspace_folders = ["~/Projects/myproject"];
|
||||
workspace_folders = [ "~/Projects/myproject" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
short_name = "COP";
|
||||
accept_key = "<c-f>";
|
||||
}
|
||||
{src = "demo";}
|
||||
{ src = "demo"; }
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue