1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

Compare commits

..

No commits in common. "fe9565831929d047f623e68c72173fb2f9624ecc" and "69643e143a72f7e98015f61faba2f2a428d9c79a" have entirely different histories.

4 changed files with 6 additions and 27 deletions

View File

@ -56,9 +56,6 @@ M.colorscheme_conf = {
vim.g.material_style = "oceanic" vim.g.material_style = "oceanic"
vim.cmd('colorscheme material') vim.cmd('colorscheme material')
end, end,
arctic = function ()
vim.cmd("colorscheme arctic")
end
} }
--- Use a random colorscheme from the pre-defined list of colorschemes. --- Use a random colorscheme from the pre-defined list of colorschemes.

View File

@ -35,28 +35,14 @@ keymap.set("n", "N", "", {
end, end,
}) })
local no_word_under_cursor = function()
local word_under_cursor = vim.fn.expand("<cword>")
local msg = "E348: No string under cursor"
api.nvim_err_writeln(msg)
return word_under_cursor == ""
end
keymap.set("n", "*", "", { keymap.set("n", "*", "", {
callback = function() callback = function()
if no_word_under_cursor() then
return
end
vim.fn.execute("normal! *N") vim.fn.execute("normal! *N")
hlslens.start() hlslens.start()
end, end,
}) })
keymap.set("n", "#", "", { keymap.set("n", "#", "", {
callback = function() callback = function()
if no_word_under_cursor() then
return
end
vim.fn.execute("normal! #N") vim.fn.execute("normal! #N")
hlslens.start() hlslens.start()
end, end,

View File

@ -40,7 +40,9 @@ vim.keymap.set("n", "zR", require("ufo").openAllFolds)
vim.keymap.set("n", "zM", require("ufo").closeAllFolds) vim.keymap.set("n", "zM", require("ufo").closeAllFolds)
vim.keymap.set("n", "zr", require("ufo").openFoldsExceptKinds) vim.keymap.set("n", "zr", require("ufo").openFoldsExceptKinds)
vim.keymap.set("n", "<leader>K", function() vim.keymap.set("n", "<leader>K", function()
local _ = require("ufo").peekFoldedLinesUnderCursor() local winid = require("ufo").peekFoldedLinesUnderCursor()
end, { if not winid then
desc = "Preview folded maps", -- vim.lsp.buf.hover()
}) vim.cmd([[ Lspsaga hover_doc ]])
end
end)

View File

@ -142,12 +142,6 @@ local plugin_specs = {
{ "catppuccin/nvim", name = "catppuccin", lazy = true }, { "catppuccin/nvim", name = "catppuccin", lazy = true },
{ "olimorris/onedarkpro.nvim", lazy = true }, { "olimorris/onedarkpro.nvim", lazy = true },
{ "marko-cerovac/material.nvim", lazy = true }, { "marko-cerovac/material.nvim", lazy = true },
{
"rockyzhang24/arctic.nvim",
dependencies = { "rktjmp/lush.nvim" },
name = "arctic",
branch = "v2",
},
{ "nvim-tree/nvim-web-devicons", event = "VeryLazy" }, { "nvim-tree/nvim-web-devicons", event = "VeryLazy" },