Merge branch 'master' of https://git.freiewildbahn.de/oli/nvim
This commit is contained in:
commit
837a273774
@ -6,8 +6,8 @@ local silent_noremap = { noremap = true, silent = true }
|
||||
|
||||
project_files = function()
|
||||
local opts = {} -- define here if you want to define something
|
||||
local ok = pcall(require"telescope.builtin".git_files, opts)
|
||||
if not ok then require"telescope.builtin".find_files(opts) end
|
||||
local ok = pcall(require "telescope.builtin".git_files, opts)
|
||||
if not ok then require "telescope.builtin".find_files(opts) end
|
||||
end
|
||||
|
||||
command_center.add({
|
||||
@ -243,7 +243,3 @@ command_center.add({
|
||||
cmd = '<CMD>set guifont=JetBrainsMonoNL\\ NF:h9<CR>',
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
@ -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 = {
|
||||
|
@ -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>')
|
||||
|
Loading…
x
Reference in New Issue
Block a user