Comments (3)
Thanks for the report.
Can you give me a minimal vimrc and steps to reproduce?
from lir.nvim.
Hello, I experience the same problem. I just have this settings for nvim_tree:
nvim_tree.setup({
tree_follow = true,
auto_close = true,
update_cwd = true,
tree_respect_buf_cwd = true,
filters = {
custom = {
".git",
"node_modules",
".cache",
"__pycache__",
".vscode",
".mypy_cache",
".idea",
},
},
diagnostics = {
enable = true,
icons = {
hint = "",
info = "",
warning = "",
error = "",
},
},
view = {
width = 50,
height = 50,
side = "left",
auto_resize = true,
},
follow_update_path = true,
update_focused_file = {
enable = false,
update_cwd = true,
ignore_list = {},
},
})
-- for lir
local actions = require("lir.actions")
local mark_actions = require("lir.mark.actions")
local clipboard_actions = require("lir.clipboard.actions")
require("lir").setup({
show_hidden_files = true,
devicons_enable = true,
mappings = {
["o"] = actions.edit,
["<Cr>"] = actions.edit,
["<C-s>"] = actions.split,
["<C-v>"] = actions.vsplit,
["<C-t>"] = actions.tabedit,
["u"] = actions.up,
["q"] = actions.quit,
["<Esc>"] = actions.quit,
["K"] = actions.mkdir,
["n"] = actions.newfile,
["r"] = actions.rename,
["@"] = actions.cd,
["Y"] = actions.yank_path,
["."] = actions.toggle_show_hidden,
["d"] = actions.delete,
["J"] = function()
mark_actions.toggle_mark()
vim.cmd("normal! j")
end,
["c"] = clipboard_actions.copy,
["x"] = clipboard_actions.cut,
["p"] = clipboard_actions.paste,
},
float = {
winblend = 0,
curdir_window = {
enable = true,
highlight_dirname = true,
},
-- -- You can define a function that returns a table to be passed as the third
-- -- argument of nvim_open_win().
-- win_opts = function()
-- local width = math.floor(vim.o.columns * 0.8)
-- local height = math.floor(vim.o.lines * 0.8)
-- return {
-- border = require("lir.float.helper").make_border_opts({
-- "+", "─", "+", "│", "+", "─", "+", "│",
-- }, "Normal"),
-- width = width,
-- height = height,
-- row = 1,
-- col = math.floor((vim.o.columns - width) / 2),
-- }
-- end,
},
hide_cursor = false,
on_init = function()
-- use visual mode
vim.api.nvim_buf_set_keymap(
0,
"x",
"J",
':<C-u>lua require"lir.mark.actions".toggle_mark("v")<CR>',
{ noremap = true, silent = true }
)
-- echo cwd
vim.api.nvim_echo({ { vim.fn.expand("%:p"), "Normal" } }, false, {})
end,
})
require("lir.git_status").setup({
show_ignored = false,
})
If I commented out nvim-tree from packer file lir becomes to work.
from lir.nvim.
Set update_to_buf_dir.enable
to false
.
nvim_tree.setup({
update_to_buf_dir = {
enable = false
},
...
}
from lir.nvim.
Related Issues (20)
- Add completion for `rename` and move into directory if only a directory is specified.
- Don't show files set in `wildignore` HOT 2
- Make rename behave like linux `mv` HOT 1
- New lir buffer is opened and floating window remains on cd HOT 5
- Add LirCursorLine hightlight HOT 6
- Clipboard action picking up items from previous selection in visual mode (`v`) HOT 4
- `vim.opt.autochdir = true` causing lir to always go one directory up when being toggled in an empty window HOT 2
- Change behavior rename file HOT 1
- [Feature request] Add LSP support HOT 4
- Error using `nvim .` after disabling netrw HOT 3
- ignore option does not work with "dist-newstyle" HOT 1
- Error: Get Filter Error after #5d62e83 commit HOT 2
- Moving up or down directories should visually preserve marked items
- feat: add `../` and `./` to list
- bug: Error detected while processing BufEnter Autocommands for "*": HOT 7
- question: two instances of lir
- Can't use lir.nvim at the same time as oil.nvim HOT 1
- Fullpath contains double slash before filename
- Should be able to give mappings a description (for which-key)
- Devicon colors do not work HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lir.nvim.