Add dressing.nvim, change nvim-tree highlights

This commit is contained in:
Amanda Graven 2022-06-15 10:29:26 +02:00
parent 67791bb163
commit da04b67bd4
Signed by: amanda
GPG key ID: F747582C5608F4CB

View file

@ -18,7 +18,6 @@ local function noremap(mode, key, mapping)
vim.api.nvim_set_keymap(mode, key, mapping, opts) vim.api.nvim_set_keymap(mode, key, mapping, opts)
end end
local function inoremap(key, mapping) noremap('i', key, mapping) end local function inoremap(key, mapping) noremap('i', key, mapping) end
function nnoremap(key, mapping) noremap('n', key, mapping) end
-- Set font -- Set font
if fn.hostname() == 'sharpy' then if fn.hostname() == 'sharpy' then
@ -241,6 +240,18 @@ require'packer'.startup(function(use)
use {'MattesGroeger/vim-bookmarks', config = function() use {'MattesGroeger/vim-bookmarks', config = function()
vim.g.bookmark_save_per_working_dir = 1 vim.g.bookmark_save_per_working_dir = 1
end} 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 'j-hui/fidget.nvim'
use 'tpope/vim-fugitive' use 'tpope/vim-fugitive'
use 'tpope/vim-rhubarb' use 'tpope/vim-rhubarb'
@ -291,7 +302,7 @@ require'packer'.startup(function(use)
full_path = true, full_path = true,
}, },
['ui-select'] = { ['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.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'}} require'which-key'.register{['<Leader>t'] = {'<Cmd>NvimTreeToggle<CR>', 'Nvim Tree'}}