Skip to content

Commit

Permalink
terminal/editors/neovim: switch from neo-tree to yazi
Browse files Browse the repository at this point in the history
  • Loading branch information
khaneliman committed Jun 4, 2024
1 parent 2941c59 commit eaa4688
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 19 deletions.
28 changes: 14 additions & 14 deletions modules/home/programs/terminal/editors/neovim/autocommands.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,20 @@ _: {
# }

# Open Neo-Tree on first buffer
{
event = "BufWinEnter";
callback = {
__raw = # lua
''
function(table)
if vim.api.nvim_buf_get_name(0) ~= "" and not vim.g.first_buffer_opened then
vim.g.first_buffer_opened = true
vim.api.nvim_exec('Neotree show filesystem left', true)
end
end
'';
};
}
# {
# event = "BufWinEnter";
# callback = {
# __raw = # lua
# ''
# function(table)
# if vim.api.nvim_buf_get_name(0) ~= "" and not vim.g.first_buffer_opened then
# vim.g.first_buffer_opened = true
# vim.api.nvim_exec('Neotree show filesystem left', true)
# end
# end
# '';
# };
# }

# Enable spellcheck for some filetypes
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
_: {
{ config, lib, ... }:
{
programs.nixvim = {
keymaps = [
keymaps = lib.mkIf config.programs.nixvim.plugins.neo-tree.enable [
{
mode = "n";
key = "<leader>e";
Expand All @@ -13,7 +14,7 @@ _: {
];

plugins.neo-tree = {
enable = true;
enable = false;

closeIfLastWindow = true;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
keymaps = [
{
mode = "n";
key = "<leader>ty";
key = "<leader>e";
action = ":Yazi<CR>";
options = {
desc = "Open Yazi";
desc = "Yazi toggle";
silent = true;
};
}
Expand Down

0 comments on commit eaa4688

Please sign in to comment.