removed deprecated funcs and formatting correction
This commit is contained in:
@@ -21,7 +21,7 @@ end
|
|||||||
|
|
||||||
local check_external_reqs = function()
|
local check_external_reqs = function()
|
||||||
-- Basic utils: `git`, `make`, `unzip`
|
-- Basic utils: `git`, `make`, `unzip`
|
||||||
for _, exe in ipairs({ "git", "make", "unzip", "rg" }) do
|
for _, exe in ipairs { "git", "make", "unzip", "rg" } do
|
||||||
local is_executable = vim.fn.executable(exe) == 1
|
local is_executable = vim.fn.executable(exe) == 1
|
||||||
if is_executable then
|
if is_executable then
|
||||||
vim.health.ok(string.format("Found executable: '%s'", exe))
|
vim.health.ok(string.format("Found executable: '%s'", exe))
|
||||||
@@ -35,13 +35,13 @@ end
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
check = function()
|
check = function()
|
||||||
vim.health.start("kickstart.nvim")
|
vim.health.start "kickstart.nvim"
|
||||||
|
|
||||||
vim.health.info([[NOTE: Not every warning is a 'must-fix' in `:checkhealth`
|
vim.health.info [[NOTE: Not every warning is a 'must-fix' in `:checkhealth`
|
||||||
|
|
||||||
Fix only warnings for plugins and languages you intend to use.
|
Fix only warnings for plugins and languages you intend to use.
|
||||||
Mason will give warnings for languages that are not installed.
|
Mason will give warnings for languages that are not installed.
|
||||||
You do not need to install, unless you want to use those languages!]])
|
You do not need to install, unless you want to use those languages!]]
|
||||||
|
|
||||||
local uv = vim.uv or vim.loop
|
local uv = vim.uv or vim.loop
|
||||||
vim.health.info("System Information: " .. vim.inspect(uv.os_uname()))
|
vim.health.info("System Information: " .. vim.inspect(uv.os_uname()))
|
||||||
|
|||||||
@@ -34,8 +34,14 @@ vim.opt.hlsearch = true
|
|||||||
set("n", "<Esc>", "<cmd>nohlsearch<CR>")
|
set("n", "<Esc>", "<cmd>nohlsearch<CR>")
|
||||||
|
|
||||||
-- Diagnostic keymaps
|
-- Diagnostic keymaps
|
||||||
set("n", "[d", vim.diagnostic.goto_prev, { desc = "Go to previous [D]iagnostic message" })
|
set("n", "[d", function()
|
||||||
set("n", "]d", vim.diagnostic.goto_next, { desc = "Go to next [D]iagnostic message" })
|
vim.diagnostic.jump { count = -1, float = true }
|
||||||
|
end, { desc = "Go to previous [D]iagnostic message" })
|
||||||
|
|
||||||
|
set("n", "]d", function()
|
||||||
|
vim.diagnostic.jump { count = 1, float = true }
|
||||||
|
end, { desc = "Go to next [D]iagnostic message" })
|
||||||
|
|
||||||
set("n", "<leader>q", vim.diagnostic.setloclist, { desc = "Open diagnostic [Q]uickfix list" })
|
set("n", "<leader>q", vim.diagnostic.setloclist, { desc = "Open diagnostic [Q]uickfix list" })
|
||||||
set("n", "<leader>e", vim.diagnostic.open_float, { desc = "Show diagnostic [E]rror messages" })
|
set("n", "<leader>e", vim.diagnostic.open_float, { desc = "Show diagnostic [E]rror messages" })
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user