This commit is contained in:
sankalp committed 2024-03-30 05:40:38 +05:45
1 parent 066d143d54
commit c589152390
11 files changed
+54 -21

No files matched your search

@@ -1,7 +1,4 @@
return {
"kristijanhusak/vim-carbon-now-sh",
cmd = { "CarbonNowSh" },
keys = {
{ "<leader>cS", ":CarbonNowSh<cr>", mode = { "n", "v" }, desc = "Screenshot Code", silent = true },
},
cmd = "CarbonNowSh",
}
@@ -1,5 +1,5 @@
return {
{ -- better fold
{
"kevinhwang91/nvim-ufo",
event = { "LazyFile" },
dependencies = { "kevinhwang91/promise-async" },
@@ -27,7 +27,6 @@ return {
local hlGroup = chunk[2]
table.insert(newVirtText, { chunkText, hlGroup })
chunkWidth = vim.fn.strdisplaywidth(chunkText)
-- str width returned from truncate() may less than 2nd argument, need padding
if curWidth + chunkWidth < targetWidth then
suffix = suffix .. (" "):rep(targetWidth - curWidth - chunkWidth)
end
@@ -45,7 +44,7 @@ return {
return { "treesitter", "indent" }
end,
open_fold_hl_timeout = 400,
close_fold_kinds = { "imports", "comment" },
close_fold_kinds_for_ft = { "imports", "comment" },
preview = {
win_config = { border = { "", "─", "", "", "", "─", "", "" }, winblend = 0 },
mappings = {
@@ -57,9 +56,6 @@ return {
},
}
end,
config = function(_, opts)
require("ufo").setup(opts)
end,
keys = {
{
"zp",
@@ -69,7 +65,7 @@ return {
vim.lsp.buf.hover()
end
end,
desc = "Peek folded line",
desc = "Peek Folded Line",
},
},
},
@@ -48,6 +48,7 @@ return {
"emmet-language-server",
"html-lsp",
"cssmodules-language-server",
"css-variables-language-server",
"css-lsp",
"htmlhint",
"stylelint",
@@ -7,9 +7,42 @@ return {
find = "No information available",
},
opts = {
skip = true,
require("noice").setup({
views = {
cmdline_popup = {
position = {
row = 5,
col = "50%",
},
size = {
width = 60,
height = "auto",
},
},
popupmenu = {
relative = "editor",
position = {
row = 8,
col = "50%",
},
size = {
width = 60,
height = 10,
},
border = {
style = "rounded",
padding = { 0, 1 },
},
win_options = {
winhighlight = { Normal = "Normal", FloatBorder = "DiagnosticInfo" },
},
},
},
})
},
})
opts.presets.lsp_doc_border = true
opts.presets.bottom_search = false
end,
@@ -44,9 +44,9 @@ return {
{ "<leader>fh", LazyVim.telescope("find_files", { hidden = true }), desc = "Find Files (hidden)" },
{ "<leader><c-space>", LazyVim.telescope("find_files", { hidden = true }), desc = "Find Files (hidden)" },
{ "<leader>gf", "<cmd>Telescope git_bcommits<cr>", desc = "File History" },
{ "<leader>gS", "<cmd>Telescope git_stash<cr>", desc = "stash" },
{ "<leader>gb", "<cmd>Telescope git_branches<cr>", desc = "branches" },
{ "<leader>cs", "<cmd>Telescope spell_suggest<cr>", desc = "Spelling" },
{ "<leader>gS", "<cmd>Telescope git_stash<cr>", desc = "Stash" },
{ "<leader>gb", "<cmd>Telescope git_branches<cr>", desc = "Branches" },
{ "<leader>S", "<cmd>Telescope spell_suggest<cr>", desc = "Spelling" },
},
opts = {
defaults = {
@@ -115,8 +115,8 @@ return {
"folke/which-key.nvim",
opts = {
defaults = {
["<leader>sS"] = { name = "Goto Symbols (Workspace)" },
["<leader>ss"] = { name = "Goto Symbols" },
["<leader>sS"] = { name = "goto symbols (Workspace)" },
["<leader>ss"] = { name = "goto symbols" },
},
},
},
@@ -15,7 +15,7 @@ return {
executeCommandIfExists(":SatelliteDisable")
executeCommandIfExists(":ScrollViewDisable")
executeCommandIfExists(":LspLensOff")
executeCommandIfExists(":NvimContextVtDisable")
executeCommandIfExists(":NvimContextVtToggle")
executeCommandIfExists(":IBLDisable")
LazyVim.toggle.inlay_hints()
executeCommandIfExists(":Gitsigns toggle_current_line_blame")
@@ -26,7 +26,7 @@ return {
executeCommandIfExists(":SatelliteEnable")
executeCommandIfExists(":ScrollViewEnable")
executeCommandIfExists(":LspLensOn")
executeCommandIfExists(":NvimContextVtEnable")
executeCommandIfExists(":NvimContextVtToggle")
executeCommandIfExists(":IBLEnable")
LazyVim.toggle.inlay_hints()
executeCommandIfExists(":Gitsigns toggle_current_line_blame")