feat(nvf): WIP bloating

This commit is contained in:
Mohammad Rafiq 2025-05-22 18:35:38 +08:00
parent 0bee56e7e8
commit 214b8dea90
No known key found for this signature in database
9 changed files with 84 additions and 8 deletions

View file

@ -1,6 +1,36 @@
{ lib }:
{
blink-cmp = {
enable = true;
setupOpts.signature.enabled = true;
friendly-snippets.enable = true;
mappings = {
next = "<Down>"; # FIXME: results in the menu appearing when navigating
previous = "<Up>";
};
sourcePlugins = {
emoji.enable = true;
ripgrep.enable = true;
spell.enable = true;
};
setupOpts = {
completion.documentation.auto_show_delay_ms = 0;
signature.enabled = true;
enabled =
lib.generators.mkLuaInline
# lua
''
--- Disable completion for markdown
function()
return not vim.tbl_contains({"markdown"}, vim.bo.filetype)
and vim.bo.buftype ~= "prompt"
and vim.b.completion ~= false
end
'';
cmdline = {
enabled = true;
sources = null;
completion.menu.auto_show = false;
};
};
};
}

View file

@ -0,0 +1,6 @@
{
enable = true;
#FIXME: List doenst work for some reason
registers = "unnamedplus";
providers.wl-copy.enable = true;
}

View file

@ -8,12 +8,19 @@
programs.nvf = {
enable = true;
settings.vim = {
hideSearchHighlight = true;
undoFile.enable = true;
autocomplete = import ./autocomplete.nix;
fzf-lua.enable = true;
git.enable = true;
autocomplete = import ./autocomplete.nix { inherit lib; };
autopairs.nvim-autopairs.enable = true;
binds = import ./binds.nix;
clipboard = import ./clipboard.nix;
diagnostics = import ./diagnostics.nix;
keymaps = import ./keymaps.nix;
languages = import ./languages.nix;
lsp = import ./lsp.nix;
options = import ./options.nix;
notify = import ./notify.nix;
utility = import ./utility.nix;

View file

@ -0,0 +1,6 @@
{
nvim-lint = {
enable = true;
lint_after_save = true;
};
}

View file

@ -1,4 +1,11 @@
[
{
desc = "";
key = "f";
mode = "n";
action = ":FzfLua files<CR>";
silent = true;
}
{
desc = "Open the file path under the cursor, making the file if it doesn't exist.";
key = "gf";

View file

@ -2,7 +2,27 @@
enableExtraDiagnostics = true;
enableFormat = true;
enableTreesitter = true;
nix.enable = true;
nix.format.type = "nixfmt";
nix.lsp.server = "nixd";
bash.enable = true;
clang.enable = true;
csharp.enable = true;
css.enable = true;
go.enable = true;
html.enable = true;
lua.enable = true;
markdown.enable = true;
markdown.extensions.markview-nvim.enable = true;
nix = {
enable = true;
format.type = "nixfmt";
lsp.server = "nil";
};
python.enable = true;
python.lsp.server = "python-lsp-server";
rust.enable = true;
rust.crates.enable = true;
ts.enable = true;
ts.extensions.ts-error-translator.enable = true;
typst.enable = true;
typst.extensions.typst-preview-nvim.enable = true;
yaml.enable = true;
}

View file

@ -1,3 +1,3 @@
{
nvim-notify.enable = true;
}

View file

@ -1,7 +1,6 @@
{
indent-blankline.enable = true;
fidget-nvim.enable = true;
highlight-undo.enable = true;
nvim-cursorline.enable = true;
nvim-web-devicons.enable = true;
rainbow-delimiters.enable = true;

View file

@ -1,7 +1,8 @@
{ config, ... }:
{ config, inputs, ... }:
{
config = {
nixpkgs.config.allowUnfree = true;
nix.nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
nix.settings = {
experimental-features = [