This commit is contained in:
Oliver Hartmann 2022-10-17 09:43:50 +02:00
commit 837a273774
4 changed files with 13 additions and 36 deletions

View File

@ -243,7 +243,3 @@ command_center.add({
cmd = '<CMD>set guifont=JetBrainsMonoNL\\ NF:h9<CR>',
},
})

View File

@ -20,7 +20,7 @@ capabilities.textDocument.completion.completionItem.resolveSupport = {
'additionalTextEdits',
},
}
capabilities = require('cmp_nvim_lsp').update_capabilities(capabilities)
capabilities = require('cmp_nvim_lsp').default_capabilities(capabilities)
OpenDiagFloat = function()
for _, winid in pairs(vim.api.nvim_tabpage_list_wins(0)) do

View File

@ -18,6 +18,7 @@ require('neo-tree').setup({
-- you can also specify border here, if you want a different setting from
-- the global popup_border_style.
},
enable_git_status = false,
-- Mappings for tree window. See `:h nep-tree-mappings` for a list of built-in commands.
-- You can also create your own commands by providing a function instead of a string.
mappings = {

View File

@ -1,27 +1,7 @@
require('nvim-tree').setup({
auto_close = true,
update_cwd = true,
update_to_buf_dir = {
-- enable the feature
enable = true,
-- allow to open the tree if it was previously closed
auto_open = false,
},
update_focused_file = {
enable = true,
update_cwd = false,
ignore_list = {},
},
diagnostics = {
enable = true,
icons = {
hint = '',
info = '',
warning = '',
error = '',
},
},
})
vim.keymap.set('n', '<leader>tt', '<cmd>NvimTreeToggle<CR>')
vim.g.nvim_tree_highlight_opened_files = 1
vim.g.nvim_tree_respect_buf_cwd = 1
-- disable netrw at the very start of your init.lua (strongly advised)
vim.g.loaded = 1
vim.g.loaded_netrwPlugin = 1
-- empty setup using defaults
require('nvim-tree').setup()
vim.keymap.set('n', '\\', '<cmd>NvimTreeToggle<CR>')