feat(nvf): WIP bloating
This commit is contained in:
parent
0bee56e7e8
commit
214b8dea90
9 changed files with 84 additions and 8 deletions
|
@ -1,6 +1,36 @@
|
||||||
|
{ lib }:
|
||||||
{
|
{
|
||||||
blink-cmp = {
|
blink-cmp = {
|
||||||
enable = true;
|
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;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
6
modules/home/cli/editor/nvf/clipboard.nix
Normal file
6
modules/home/cli/editor/nvf/clipboard.nix
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
enable = true;
|
||||||
|
#FIXME: List doenst work for some reason
|
||||||
|
registers = "unnamedplus";
|
||||||
|
providers.wl-copy.enable = true;
|
||||||
|
}
|
|
@ -8,12 +8,19 @@
|
||||||
programs.nvf = {
|
programs.nvf = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings.vim = {
|
settings.vim = {
|
||||||
|
hideSearchHighlight = true;
|
||||||
undoFile.enable = 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;
|
binds = import ./binds.nix;
|
||||||
|
clipboard = import ./clipboard.nix;
|
||||||
|
diagnostics = import ./diagnostics.nix;
|
||||||
keymaps = import ./keymaps.nix;
|
keymaps = import ./keymaps.nix;
|
||||||
languages = import ./languages.nix;
|
languages = import ./languages.nix;
|
||||||
lsp = import ./lsp.nix;
|
lsp = import ./lsp.nix;
|
||||||
|
|
||||||
options = import ./options.nix;
|
options = import ./options.nix;
|
||||||
notify = import ./notify.nix;
|
notify = import ./notify.nix;
|
||||||
utility = import ./utility.nix;
|
utility = import ./utility.nix;
|
||||||
|
|
6
modules/home/cli/editor/nvf/diagnostics.nix
Normal file
6
modules/home/cli/editor/nvf/diagnostics.nix
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
nvim-lint = {
|
||||||
|
enable = true;
|
||||||
|
lint_after_save = true;
|
||||||
|
};
|
||||||
|
}
|
|
@ -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.";
|
desc = "Open the file path under the cursor, making the file if it doesn't exist.";
|
||||||
key = "gf";
|
key = "gf";
|
||||||
|
|
|
@ -2,7 +2,27 @@
|
||||||
enableExtraDiagnostics = true;
|
enableExtraDiagnostics = true;
|
||||||
enableFormat = true;
|
enableFormat = true;
|
||||||
enableTreesitter = true;
|
enableTreesitter = true;
|
||||||
nix.enable = true;
|
bash.enable = true;
|
||||||
nix.format.type = "nixfmt";
|
clang.enable = true;
|
||||||
nix.lsp.server = "nixd";
|
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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
{
|
{
|
||||||
nvim-notify.enable = true;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
{
|
{
|
||||||
indent-blankline.enable = true;
|
indent-blankline.enable = true;
|
||||||
fidget-nvim.enable = true;
|
fidget-nvim.enable = true;
|
||||||
highlight-undo.enable = true;
|
|
||||||
nvim-cursorline.enable = true;
|
nvim-cursorline.enable = true;
|
||||||
nvim-web-devicons.enable = true;
|
nvim-web-devicons.enable = true;
|
||||||
rainbow-delimiters.enable = true;
|
rainbow-delimiters.enable = true;
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
{ config, ... }:
|
{ config, inputs, ... }:
|
||||||
{
|
{
|
||||||
config = {
|
config = {
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
nix.nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
|
||||||
|
|
||||||
nix.settings = {
|
nix.settings = {
|
||||||
experimental-features = [
|
experimental-features = [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue