From 0779eba4cc19f7516b497f0f45586f2c4faf0982 Mon Sep 17 00:00:00 2001 From: Mohammad Rafiq Date: Tue, 20 May 2025 13:06:56 +0800 Subject: [PATCH] feat(nvf): add some plugins --- modules/home/cli/editor/nvf/autocomplete.nix | 6 ++++++ modules/home/cli/editor/nvf/default.nix | 3 +++ modules/home/cli/editor/nvf/languages.nix | 8 ++++++++ modules/home/cli/editor/nvf/lsp.nix | 9 +++++++++ 4 files changed, 26 insertions(+) create mode 100644 modules/home/cli/editor/nvf/autocomplete.nix create mode 100644 modules/home/cli/editor/nvf/languages.nix create mode 100644 modules/home/cli/editor/nvf/lsp.nix diff --git a/modules/home/cli/editor/nvf/autocomplete.nix b/modules/home/cli/editor/nvf/autocomplete.nix new file mode 100644 index 0000000..0adaead --- /dev/null +++ b/modules/home/cli/editor/nvf/autocomplete.nix @@ -0,0 +1,6 @@ +{ + blink-cmp = { + enable = true; + setupOpts.signature.enabled = true; + }; +} diff --git a/modules/home/cli/editor/nvf/default.nix b/modules/home/cli/editor/nvf/default.nix index b030b32..7e72a7d 100644 --- a/modules/home/cli/editor/nvf/default.nix +++ b/modules/home/cli/editor/nvf/default.nix @@ -6,6 +6,9 @@ enable = true; settings.vim = { keymaps = import ./keymaps.nix; + lsp = import ./lsp.nix; + languages = import ./languages.nix; + autocomplete = import ./autocomplete.nix; utility.yazi-nvim = { enable = true; mappings = { diff --git a/modules/home/cli/editor/nvf/languages.nix b/modules/home/cli/editor/nvf/languages.nix new file mode 100644 index 0000000..9fe5d1f --- /dev/null +++ b/modules/home/cli/editor/nvf/languages.nix @@ -0,0 +1,8 @@ +{ + enableExtraDiagnostics = true; + enableFormat = true; + enableTreesitter = true; + nix.enable = true; + nix.format.type = "nixfmt"; + nix.lsp.server = "nixd"; +} diff --git a/modules/home/cli/editor/nvf/lsp.nix b/modules/home/cli/editor/nvf/lsp.nix new file mode 100644 index 0000000..f6810b7 --- /dev/null +++ b/modules/home/cli/editor/nvf/lsp.nix @@ -0,0 +1,9 @@ +{ + enable = true; + formatOnSave = true; + inlayHints.enable = true; + lightbulb.enable = true; + lspkind.enable = true; + null-ls.enable = true; + otter-nvim.enable = true; +}