Add dressing.nvim, change nvim-tree highlights

main
Amanda Graven 2022-06-15 10:29:26 +02:00
parent 67791bb163
commit da04b67bd4
Signed by: amanda
GPG Key ID: F747582C5608F4CB
1 changed files with 18 additions and 2 deletions

View File

@ -18,7 +18,6 @@ local function noremap(mode, key, mapping)
vim.api.nvim_set_keymap(mode, key, mapping, opts)
end
local function inoremap(key, mapping) noremap('i', key, mapping) end
function nnoremap(key, mapping) noremap('n', key, mapping) end
-- Set font
if fn.hostname() == 'sharpy' then
@ -241,6 +240,18 @@ require'packer'.startup(function(use)
use {'MattesGroeger/vim-bookmarks', config = function()
vim.g.bookmark_save_per_working_dir = 1
end}
use {'stevearc/dressing.nvim', config = function()
vim.cmd'highlight link FloatTitle TelescopeBorder'
require'dressing'.setup {
input = {
winhighlight = 'NormalFloat:TelescopeNormal,FloatBorder:TelescopeBorder'
},
select = {
enabled = false,
telescope = require'telescope.themes'.get_cursor()
},
}
end}
use 'j-hui/fidget.nvim'
use 'tpope/vim-fugitive'
use 'tpope/vim-rhubarb'
@ -291,7 +302,7 @@ require'packer'.startup(function(use)
full_path = true,
},
['ui-select'] = {
require'telescope.themes'.get_dropdown({layout_strategy = 'cursor'})
require'telescope.themes'.get_cursor()
},
},
}
@ -715,6 +726,11 @@ require('nvim-tree').setup {
}
}
vim.cmd'highlight NvimTreeOpenedFile guifg=NONE gui=italic'
vim.api.nvim_create_autocmd('ColorScheme', {
group = 'vimrc',
desc = 'Change NvimTreeOpenedFile highlight',
command = 'highlight NvimTreeOpenedFile guifg=NONE gui=italic'
})
require'which-key'.register{['<Leader>t'] = {'<Cmd>NvimTreeToggle<CR>', 'Nvim Tree'}}