if has('nvim') && !exists("g:vscode") lua << EOF vim.diagnostic.config({ virtual_text = false, signs = true, underline = true, update_in_insert = false, severity_sort = false, }) vim.o.updatetime = 300 -- Show all diagnostics on current line in floating window --vim.api.nvim_set_keymap( -- 'n', 'd', ':lua vim.diagnostic.open_float()', -- { noremap = true, silent = true } --) -- Go to next diagnostic (if there are multiple on the same line, only shows -- one at a time in the floating window) --vim.api.nvim_set_keymap( -- 'n', 'n', ':lua vim.diagnostic.goto_next()', -- { noremap = true, silent = true } --) -- Go to prev diagnostic (if there are multiple on the same line, only shows -- one at a time in the floating window) --vim.api.nvim_set_keymap( -- 'n', 'p', ':lua vim.diagnostic.goto_prev()', -- { noremap = true, silent = true } --) -- IMPORTANT!: this is only a showcase of how you can set default options! require("telescope").setup { extensions = { file_browser = { grouped = true, theme = "ivy", mappings = { ["i"] = { -- your custom insert mode mappings }, ["n"] = { -- your custom normal mode mappings }, }, }, }, } -- To get telescope-file-browser loaded and working with telescope, -- you need to call load_extension, somewhere after setup function: require("telescope").load_extension "file_browser" EOF endif