mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-01-17 07:43:21 +00:00
Compare commits
No commits in common. "963af1541e336c4eeb2a1846ca0f960ca453a60e" and "335a878a8f89604d7f6bb39d80874c2e227f1d5d" have entirely different histories.
963af1541e
...
335a878a8f
7 changed files with 27 additions and 66 deletions
|
|
@ -296,7 +296,6 @@
|
||||||
|
|
||||||
- Add lint (luacheck) and formatting (stylua) support for Lua.
|
- Add lint (luacheck) and formatting (stylua) support for Lua.
|
||||||
- Add lint (markdownlint-cli2) support for Markdown.
|
- Add lint (markdownlint-cli2) support for Markdown.
|
||||||
- Add catppuccin integration for Bufferline, Lspsaga.
|
|
||||||
|
|
||||||
[tebuevd](https://github.com/tebuevd):
|
[tebuevd](https://github.com/tebuevd):
|
||||||
|
|
||||||
|
|
@ -312,7 +311,3 @@
|
||||||
|
|
||||||
- Fix oil config referencing snacks
|
- Fix oil config referencing snacks
|
||||||
- Add [flash.nvim] plugin to `vim.utility.motion.flash-nvim`
|
- Add [flash.nvim] plugin to `vim.utility.motion.flash-nvim`
|
||||||
|
|
||||||
[rrvsh](https://github.com/rrvsh):
|
|
||||||
|
|
||||||
- Fix namespace of python-lsp-server by changing it to python3Packages
|
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
python-lsp-server = {
|
python-lsp-server = {
|
||||||
package = pkgs.python3Packages.python-lsp-server;
|
package = pkgs.python-lsp-server;
|
||||||
lspConfig = ''
|
lspConfig = ''
|
||||||
lspconfig.pylsp.setup{
|
lspconfig.pylsp.setup{
|
||||||
capabilities = capabilities;
|
capabilities = capabilities;
|
||||||
|
|
|
||||||
|
|
@ -6,19 +6,6 @@
|
||||||
inherit (lib.modules) mkRemovedOptionModule;
|
inherit (lib.modules) mkRemovedOptionModule;
|
||||||
inherit (lib.options) mkOption mkEnableOption;
|
inherit (lib.options) mkOption mkEnableOption;
|
||||||
inherit (lib.nvim.types) borderType mkPluginSetupOption;
|
inherit (lib.nvim.types) borderType mkPluginSetupOption;
|
||||||
inherit (lib.nvim.lua) mkLuaInline;
|
|
||||||
|
|
||||||
uiKindSetupOpts =
|
|
||||||
if config.vim.theme.enable && config.vim.theme.name == "catppuccin"
|
|
||||||
then {
|
|
||||||
ui.kind =
|
|
||||||
mkLuaInline
|
|
||||||
# lua
|
|
||||||
''
|
|
||||||
require("catppuccin.groups.integrations.lsp_saga").custom_kind()
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
else {};
|
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
(mkRemovedOptionModule ["vim" "lsp" "lspsaga" "mappings"] ''
|
(mkRemovedOptionModule ["vim" "lsp" "lspsaga" "mappings"] ''
|
||||||
|
|
@ -34,14 +21,12 @@ in {
|
||||||
options.vim.lsp.lspsaga = {
|
options.vim.lsp.lspsaga = {
|
||||||
enable = mkEnableOption "LSP Saga";
|
enable = mkEnableOption "LSP Saga";
|
||||||
|
|
||||||
setupOpts =
|
setupOpts = mkPluginSetupOption "lspsaga" {
|
||||||
mkPluginSetupOption "lspsaga" {
|
|
||||||
border_style = mkOption {
|
border_style = mkOption {
|
||||||
type = borderType;
|
type = borderType;
|
||||||
default = config.vim.ui.borders.globalStyle;
|
default = config.vim.ui.borders.globalStyle;
|
||||||
description = "Border type, see {command}`:help nvim_open_win`";
|
description = "Border type, see {command}`:help nvim_open_win`";
|
||||||
};
|
};
|
||||||
}
|
};
|
||||||
// uiKindSetupOpts;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
inherit (lib.nvim.lua) toLuaObject;
|
inherit (lib.nvim.lua) toLuaObject;
|
||||||
|
|
||||||
cfg = config.vim.tabline.nvimBufferline;
|
cfg = config.vim.tabline.nvimBufferline;
|
||||||
self = import ./nvim-bufferline.nix {inherit config lib;};
|
self = import ./nvim-bufferline.nix {inherit lib;};
|
||||||
inherit (self.options.vim.tabline.nvimBufferline) mappings;
|
inherit (self.options.vim.tabline.nvimBufferline) mappings;
|
||||||
in {
|
in {
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,4 @@
|
||||||
{
|
{lib, ...}: let
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
inherit (lib.options) mkOption mkEnableOption literalExpression;
|
inherit (lib.options) mkOption mkEnableOption literalExpression;
|
||||||
inherit (lib.types) enum bool either nullOr str int listOf attrs;
|
inherit (lib.types) enum bool either nullOr str int listOf attrs;
|
||||||
inherit (lib.generators) mkLuaInline;
|
inherit (lib.generators) mkLuaInline;
|
||||||
|
|
@ -27,14 +23,7 @@ in {
|
||||||
setupOpts = mkPluginSetupOption "Bufferline-nvim" {
|
setupOpts = mkPluginSetupOption "Bufferline-nvim" {
|
||||||
highlights = mkOption {
|
highlights = mkOption {
|
||||||
type = either attrs luaInline;
|
type = either attrs luaInline;
|
||||||
default =
|
default = {};
|
||||||
if config.vim.theme.enable && config.vim.theme.name == "catppuccin"
|
|
||||||
then
|
|
||||||
mkLuaInline
|
|
||||||
''
|
|
||||||
require("catppuccin.groups.integrations.bufferline").get()
|
|
||||||
''
|
|
||||||
else {};
|
|
||||||
description = ''
|
description = ''
|
||||||
Overrides the highlight groups of bufferline.
|
Overrides the highlight groups of bufferline.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -81,7 +81,6 @@ in {
|
||||||
fidget = true,
|
fidget = true,
|
||||||
alpha = true,
|
alpha = true,
|
||||||
leap = true,
|
leap = true,
|
||||||
lsp_saga = true,
|
|
||||||
markdown = true,
|
markdown = true,
|
||||||
noice = true,
|
noice = true,
|
||||||
notify = true, -- nvim-notify
|
notify = true, -- nvim-notify
|
||||||
|
|
|
||||||
|
|
@ -24,19 +24,12 @@ in {
|
||||||
grammars = mkOption {
|
grammars = mkOption {
|
||||||
type = listOf package;
|
type = listOf package;
|
||||||
default = [];
|
default = [];
|
||||||
example = literalExpression ''
|
|
||||||
pkgs.vimPlugins.nvim-treesitter.builtGrammars; [
|
|
||||||
regex
|
|
||||||
kdl
|
|
||||||
];
|
|
||||||
'';
|
|
||||||
description = ''
|
description = ''
|
||||||
List of treesitter grammars to install. For grammars to be installed properly,
|
List of treesitter grammars to install.
|
||||||
you must use grammars from `pkgs.vimPlugins.nvim-treesitter.builtGrammars`.
|
|
||||||
|
|
||||||
For languages already supported by nvf, you may use
|
For languages already supported by nvf, you may
|
||||||
{option}`vim.language.<lang>.treesitter` options, which will automatically add
|
use the {option}`vim.language.<lang>.treesitter` options, which
|
||||||
the required grammars to this.
|
will automatically add the required grammars to this.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue