mirror of
https://github.com/Superredstone/nixvim.git
synced 2026-10-11 19:08:51 +02:00
fix(plugin): neotree conflicting with lualine
This commit is contained in:
@@ -18,7 +18,7 @@ in
|
|||||||
}
|
}
|
||||||
{
|
{
|
||||||
key = "<S-q>";
|
key = "<S-q>";
|
||||||
action = ":bdelete<CR>";
|
action = ":Bdelete<CR>";
|
||||||
options = defaultOptions;
|
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
|
./lsp.nix
|
||||||
./lualine.nix
|
./lualine.nix
|
||||||
./which-key.nix
|
./which-key.nix
|
||||||
|
./bufferline.nix
|
||||||
|
./neo-tree.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
plugins = {
|
plugins = {
|
||||||
neo-tree.enable = true;
|
bufdelete.enable = true;
|
||||||
web-devicons.enable = true;
|
web-devicons.enable = true;
|
||||||
bufferline.enable = true;
|
|
||||||
notify.enable = true;
|
notify.enable = true;
|
||||||
toggleterm.enable = true;
|
toggleterm.enable = true;
|
||||||
treesitter = {
|
treesitter = {
|
||||||
|
|||||||
@@ -2,9 +2,7 @@
|
|||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
mkMap =
|
mkMap = action: desc: {
|
||||||
action: desc:
|
|
||||||
{
|
|
||||||
inherit action;
|
inherit action;
|
||||||
options = {
|
options = {
|
||||||
silent = true;
|
silent = 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