diff options
| author | srdusr <trevorgray@srdusr.com> | 2023-09-04 23:15:59 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2023-09-04 23:15:59 +0200 |
| commit | b606b2eac7b1942ca7a60dace432e829998758eb (patch) | |
| tree | fd99454c6d10c5cc0aa39c519ccc2cc38a7273fa | |
| parent | 87b24862af2bae49e12549e624739ae200a90cbd (diff) | |
| download | dotfiles-b606b2eac7b1942ca7a60dace432e829998758eb.tar.gz dotfiles-b606b2eac7b1942ca7a60dace432e829998758eb.zip | |
Allow cursorline = true
| -rw-r--r-- | lua/plugins/nvim-tree.lua | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lua/plugins/nvim-tree.lua b/lua/plugins/nvim-tree.lua index 1e9eca1..c6bec35 100644 --- a/lua/plugins/nvim-tree.lua +++ b/lua/plugins/nvim-tree.lua @@ -100,10 +100,10 @@ local float = { } local view = { - cursorline = false, + cursorline = true, hide_root_folder = false, float = float, - signcolumn = 'no', + --signcolumn = 'no', width = function() return math.floor(vim.opt.columns:get() * WIDTH_RATIO) end, @@ -182,9 +182,9 @@ local function on_attach(bufnr) vim.keymap.set('n', keys, mapping[1], opts(mapping[2])) end end -api.events.subscribe(api.events.Event.FileCreated, function(file) - vim.cmd('edit' .. file.fname) -end) +--api.events.subscribe(api.events.Event.FileCreated, function(file) +-- vim.cmd('edit' .. file.fname) +--end) require('nvim-tree').setup({ auto_reload_on_write = true, @@ -348,6 +348,7 @@ vim.api.nvim_create_autocmd({ 'BufLeave', 'WinClosed', 'WinLeave' }, { vim.opt.guicursor = 'n-v-c-sm:block,i-ci-ve:ver25,r-cr-o:hor20' end, }) + -- Highlight Groups vim.api.nvim_command('highlight NvimTreeNormal guibg=none') vim.api.nvim_command('highlight NvimTreeCursorLine guibg=#50fa7b guifg=#000000') |
