This commit is contained in:
2022-07-28 00:13:09 +08:00
parent d07f8f78e1
commit eadc5b4c75
8 changed files with 957 additions and 67 deletions

View File

@@ -1,4 +1,4 @@
if has('nvim')
if has('nvim') && !exists("g:vscode")
lua << EOF
vim.diagnostic.config({
virtual_text = false,
@@ -8,7 +8,6 @@ lua << EOF
severity_sort = false,
})
vim.cmd('autocmd CursorHold * lua vim.diagnostic.open_float()')
vim.o.updatetime = 300
-- Show all diagnostics on current line in floating window
@@ -29,5 +28,27 @@ vim.o.updatetime = 300
-- { 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