mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-06 02:11:33 +00:00
Merge branch 'main' into more-option-stuff
This commit is contained in:
commit
dab409685d
11 changed files with 110 additions and 14 deletions
|
@ -130,7 +130,6 @@ in {
|
|||
|
||||
(mkIf cfg.lsp.enable {
|
||||
vim.lsp.lspconfig.enable = true;
|
||||
|
||||
vim.lsp.lspconfig.sources.dart-lsp = servers.${cfg.lsp.server}.lspConfig;
|
||||
})
|
||||
|
||||
|
|
|
@ -71,7 +71,7 @@ in {
|
|||
cmd = ${
|
||||
if isList cfg.lsp.package
|
||||
then expToLua cfg.lsp.package
|
||||
else ''{"${cfg.lsp.package}/bin/haskell-language-server-wrapper"}''
|
||||
else ''{"${cfg.lsp.package}/bin/haskell-language-server-wrapper", "--lsp"}''
|
||||
},
|
||||
on_attach = function(client, bufnr, ht)
|
||||
default_on_attach(client, bufnr, ht)
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
imports = [
|
||||
./noice
|
||||
./modes
|
||||
./nvim-ufo
|
||||
./notifications
|
||||
./smartcolumn
|
||||
./colorizer
|
||||
|
|
20
modules/plugins/ui/nvim-ufo/config.nix
Normal file
20
modules/plugins/ui/nvim-ufo/config.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.modules) mkIf;
|
||||
|
||||
cfg = config.vim.ui.nvim-ufo;
|
||||
in {
|
||||
config = mkIf cfg.enable {
|
||||
vim = {
|
||||
startPlugins = ["promise-async"];
|
||||
lazy.plugins.nvim-ufo = {
|
||||
package = "nvim-ufo";
|
||||
setupModule = "ufo";
|
||||
inherit (cfg) setupOpts;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
6
modules/plugins/ui/nvim-ufo/default.nix
Normal file
6
modules/plugins/ui/nvim-ufo/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./nvim-ufo.nix
|
||||
./config.nix
|
||||
];
|
||||
}
|
9
modules/plugins/ui/nvim-ufo/nvim-ufo.nix
Normal file
9
modules/plugins/ui/nvim-ufo/nvim-ufo.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{lib, ...}: let
|
||||
inherit (lib.options) mkEnableOption;
|
||||
inherit (lib.nvim.types) mkPluginSetupOption;
|
||||
in {
|
||||
options.vim.ui.nvim-ufo = {
|
||||
enable = mkEnableOption "nvim-ufo";
|
||||
setupOpts = mkPluginSetupOption "nvim-ufo" {};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue