mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-01-18 08:08:40 +00:00
Compare commits
No commits in common. "bb3ca63d21cd05c197e2df9da6ee2c7eaa8e7672" and "fc6c11631be694d0563464c6086f3b8b5a982e9f" have entirely different histories.
bb3ca63d21
...
fc6c11631b
4 changed files with 29 additions and 32 deletions
|
|
@ -306,12 +306,12 @@
|
||||||
- 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.
|
- Add catppuccin integration for Bufferline, Lspsaga.
|
||||||
- Add `neo-tree`, `snacks.explorer` integrations to `bufferline`.
|
- Add neo-tree integration for Bufferline.
|
||||||
- Add more applicable filetypes to illuminate denylist.
|
- Add more applicable filetypes to illuminate denylist.
|
||||||
- Disable mini.indentscope for applicable filetypes.
|
- Disable mini.indentscope for applicable filetypes.
|
||||||
- Fix fzf-lua having a hard dependency on fzf.
|
- Fix fzf-lua having a hard dependency on fzf.
|
||||||
- Enable inlay hints support - `config.vim.lsp.inlayHints`.
|
- Enable inlay hints support - `config.vim.lsp.inlayHints`.
|
||||||
- Add `neo-tree`, `snacks.picker` extensions to `lualine`.
|
- Add `neo-tree` extension to `lualine`.
|
||||||
|
|
||||||
[tebuevd](https://github.com/tebuevd):
|
[tebuevd](https://github.com/tebuevd):
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{lib, ...}: let
|
{lib, ...}: let
|
||||||
inherit (lib.options) mkOption mkEnableOption;
|
inherit (lib.options) mkOption mkEnableOption;
|
||||||
inherit (lib.types) listOf str int nullOr;
|
inherit (lib.types) attrsOf str int nullOr;
|
||||||
inherit (lib.generators) mkLuaInline;
|
inherit (lib.generators) mkLuaInline;
|
||||||
inherit (lib.nvim.types) luaInline mkPluginSetupOption;
|
inherit (lib.nvim.types) luaInline mkPluginSetupOption;
|
||||||
inherit (lib.nvim.config) batchRenameOptions;
|
inherit (lib.nvim.config) batchRenameOptions;
|
||||||
|
|
@ -70,7 +70,7 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
sources = mkOption {
|
sources = mkOption {
|
||||||
type = nullOr (listOf luaInline);
|
type = nullOr (attrsOf luaInline);
|
||||||
default = null;
|
default = null;
|
||||||
description = "Sources for null-ls to register";
|
description = "Sources for null-ls to register";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -14,28 +14,17 @@
|
||||||
bCfg = config.vim.ui.breadcrumbs;
|
bCfg = config.vim.ui.breadcrumbs;
|
||||||
in {
|
in {
|
||||||
config = mkMerge [
|
config = mkMerge [
|
||||||
{
|
(mkIf config.vim.filetree.nvimTree.enable {
|
||||||
vim.statusline.lualine.setupOpts.extensions =
|
vim.statusline.lualine.setupOpts = {
|
||||||
(lib.optionals config.vim.filetree.nvimTree.enable ["nvim-tree"])
|
extensions = ["nvim-tree"];
|
||||||
++ (lib.optionals config.vim.filetree.neo-tree.enable ["neo-tree"])
|
};
|
||||||
++ (lib.optionals config.vim.utility.snacks-nvim.enable [
|
})
|
||||||
{
|
|
||||||
# same extensions as nerdtree / neo-tree
|
(mkIf config.vim.filetree.neo-tree.enable {
|
||||||
# https://github.com/nvim-lualine/lualine.nvim/blob/master/lua/lualine/extensions/nerdtree.lua
|
vim.statusline.lualine.setupOpts = {
|
||||||
# https://github.com/nvim-lualine/lualine.nvim/blob/master/lua/lualine/extensions/neo-tree.lua
|
extensions = ["neo-tree"];
|
||||||
sections = {
|
};
|
||||||
lualine_a = mkLuaInline ''
|
})
|
||||||
{
|
|
||||||
function()
|
|
||||||
return vim.fn.fnamemodify(vim.fn.getcwd(), ":~")
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
filetypes = ["snacks_picker_list" "snacks_picker_input"];
|
|
||||||
}
|
|
||||||
]);
|
|
||||||
}
|
|
||||||
|
|
||||||
(mkIf (bCfg.enable && bCfg.lualine.winbar.enable && bCfg.source == "nvim-navic") {
|
(mkIf (bCfg.enable && bCfg.lualine.winbar.enable && bCfg.source == "nvim-navic") {
|
||||||
vim.statusline.lualine.setupOpts = {
|
vim.statusline.lualine.setupOpts = {
|
||||||
|
|
|
||||||
|
|
@ -272,12 +272,20 @@ in {
|
||||||
|
|
||||||
offsets = mkOption {
|
offsets = mkOption {
|
||||||
type = listOf attrs;
|
type = listOf attrs;
|
||||||
default = map (filetype: {
|
default = [
|
||||||
inherit filetype;
|
{
|
||||||
text = "File Explorer";
|
filetype = "NvimTree";
|
||||||
highlight = "Directory";
|
text = "File Explorer";
|
||||||
separator = true;
|
highlight = "Directory";
|
||||||
}) ["NvimTree" "neo-tree" "snacks_layout_box"];
|
separator = true;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
filetype = "neo-tree";
|
||||||
|
text = "File Explorer";
|
||||||
|
highlight = "Directory";
|
||||||
|
separator = true;
|
||||||
|
}
|
||||||
|
];
|
||||||
description = "The windows to offset bufferline above, see `:help bufferline-offset`";
|
description = "The windows to offset bufferline above, see `:help bufferline-offset`";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue