mirror of
https://github.com/Superredstone/nixvim.git
synced 2026-10-11 02:48:52 +02:00
fix(plugin): neotree conflicting with lualine
This commit is contained in:
@@ -18,7 +18,7 @@ in
|
||||
}
|
||||
{
|
||||
key = "<S-q>";
|
||||
action = ":bdelete<CR>";
|
||||
action = ":Bdelete<CR>";
|
||||
options = defaultOptions;
|
||||
}
|
||||
{
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
{ ... }:
|
||||
{
|
||||
plugins.bufferline = {
|
||||
enable = true;
|
||||
settings = {
|
||||
options = {
|
||||
close_command = "Bdelete! %d";
|
||||
right_mouse_command = "Bdelete! %d";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -10,12 +10,13 @@
|
||||
./lsp.nix
|
||||
./lualine.nix
|
||||
./which-key.nix
|
||||
./bufferline.nix
|
||||
./neo-tree.nix
|
||||
];
|
||||
|
||||
plugins = {
|
||||
neo-tree.enable = true;
|
||||
bufdelete.enable = true;
|
||||
web-devicons.enable = true;
|
||||
bufferline.enable = true;
|
||||
notify.enable = true;
|
||||
toggleterm.enable = true;
|
||||
treesitter = {
|
||||
|
||||
@@ -2,15 +2,13 @@
|
||||
...
|
||||
}:
|
||||
let
|
||||
mkMap =
|
||||
action: desc:
|
||||
{
|
||||
inherit action;
|
||||
options = {
|
||||
silent = true;
|
||||
inherit desc;
|
||||
};
|
||||
mkMap = action: desc: {
|
||||
inherit action;
|
||||
options = {
|
||||
silent = true;
|
||||
inherit desc;
|
||||
};
|
||||
};
|
||||
in
|
||||
{
|
||||
plugins.fzf-lua = {
|
||||
@@ -22,7 +20,7 @@ in
|
||||
width = 0.9;
|
||||
};
|
||||
# fzf_opts = {
|
||||
# "--layout" = "reverse";
|
||||
# "--layout" = "reverse";
|
||||
# };
|
||||
git_icons = true;
|
||||
defaults.file_icons = true;
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
{ ... }:
|
||||
{
|
||||
plugins.neo-tree = {
|
||||
enable = true;
|
||||
settings = {
|
||||
close_if_last_window = true;
|
||||
event_handlers = [
|
||||
{
|
||||
event = "neo_tree_window_after_close";
|
||||
handler.__raw = ''
|
||||
function(args)
|
||||
local loc = require("neo-tree.ui.windows").get_location(args.position)
|
||||
if loc and vim.api.nvim_win_is_valid(loc.winid) then
|
||||
loc.winid = 0
|
||||
end
|
||||
end
|
||||
'';
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user