(neovim) move coding related components to extra loaded configuration

This commit is contained in:
Bartek Stalewski 2025-07-26 18:40:23 +02:00
parent 1d969481df
commit 86cf2fa9d4
Signed by: ftpd
SSH key fingerprint: SHA256:vGQiaNJcfUMLt3wF58+Zx15C6SpRDA9spUeggjVY8Yo
21 changed files with 185 additions and 156 deletions

View file

@ -0,0 +1,7 @@
return {
"norcalli/nvim-colorizer.lua",
lazy = false,
config = function()
require("colorizer").setup()
end,
}

View file

@ -0,0 +1,23 @@
return {
"lewis6991/gitsigns.nvim",
lazy = false,
config = function()
require("gitsigns").setup({
signs = {
add = { text = "" },
change = { text = "" },
delete = { text = "" },
topdelete = { text = "" },
changedelete = { text = "" },
untracked = { text = "" },
},
signs_staged = {
add = { text = "" },
change = { text = "" },
delete = { text = "" },
topdelete = { text = "" },
changedelete = { text = "" },
},
})
end,
}

View file

@ -0,0 +1,64 @@
local lualine_sections = {
lualine_a = { "mode" },
lualine_b = {
{ "branch" },
{
"diff",
symbols = {
added = "",
modified = "",
removed = "",
},
},
},
lualine_c = {
{ "filename", file_status = true, path = 1 },
},
lualine_x = {},
lualine_y = {
{ "searchcount" },
{ "progress", padding = { left = 1, right = 0 }, separator = " " },
{ "location", padding = { left = 0, right = 1 } },
},
lualine_z = {},
}
if MainHost then
table.insert(lualine_sections.lualine_x, {
"diagnostics",
symbols = {
error = "",
warn = "",
info = "",
hint = "",
},
})
table.insert(lualine_sections.lualine_x, {
"lsp_status",
symbols = {
spinner = { "", "", "", "", "", "", "", "", "", "" },
done = "",
separator = " ",
},
})
end
return {
"nvim-lualine/lualine.nvim",
event = "VeryLazy",
config = function()
require("lualine").setup({
options = {
theme = "powerline",
section_separators = "",
component_separators = "",
globalstatus = false,
disabled_filetypes = { statusline = { "snacks_dashboard" } },
},
sections = lualine_sections,
tabline = {
lualine_a = { "buffers" },
},
})
end,
}

View file

@ -0,0 +1,20 @@
return {
"MeanderingProgrammer/render-markdown.nvim",
ft = { "markdown", "norg", "rmd", "org", "codecompanion" },
config = function()
require("render-markdown").setup({
code = {
sign = false,
width = "block",
right_pad = 1,
},
heading = {
sign = false,
icons = {},
},
checkbox = {
enabled = false,
},
})
end,
}

View file

@ -0,0 +1,31 @@
return {
{
"echasnovski/mini.pairs",
event = "VeryLazy",
config = function()
require("mini.pairs").setup({
modes = { insert = true, command = true, terminal = false },
skip_next = [=[[%w%%%'%[%"%.%`%$]]=],
skip_ts = { "string" },
skip_unbalanced = true,
markdown = true,
})
end,
},
{
"loctvl842/monokai-pro.nvim",
priority = 10000,
lazy = false,
dependencies = {
"echasnovski/mini.icons",
"echasnovski/mini.pairs",
},
config = function()
require("monokai-pro").setup({
filter = "classic",
})
vim.cmd.colorscheme("monokai-pro")
end,
}
}

View file

@ -0,0 +1,27 @@
return {
"folke/noice.nvim",
event = "VeryLazy",
dependencies = {
"MunifTanjim/nui.nvim",
},
config = function()
require("noice").setup({
lsp = {
override = {
["vim.lsp.util.convert_input_to_markdown_lines"] = true,
["vim.lsp.util.stylize_markdown"] = true,
["cmp.entry.get_documentation"] = true,
},
},
messages = {
view_search = false,
},
presets = {
bottom_search = true,
command_palette = true,
long_message_to_split = true,
lsp_doc_border = true,
},
})
end,
}

View file

@ -0,0 +1,53 @@
return {
"folke/snacks.nvim",
priority = 1000,
event = "UIEnter",
config = function()
require("snacks").setup({
animate = { enabled = false },
bigfile = { enabled = false },
bufdelete = { enabled = true },
dashboard = {
enabled = true,
preset = {
header = [[]],
keys = {},
},
},
debug = { enabled = false },
dim = { enabled = false },
explorer = { enabled = true, replace_netrw = true },
git = { enabled = false },
gitbrowse = { enabled = false },
image = { enabled = false },
indent = { enabled = true },
input = { enabled = true },
layout = { enabled = false },
lazygit = { enabled = false },
notifier = { enabled = true },
notify = { enabled = true },
picker = {
enabled = true,
files = {
hidden = true,
ignored = true,
},
hidden = true,
ignored = true,
},
profiler = { enabled = false },
quickfile = { enabled = true },
rename = { enabled = false },
scope = { enabled = true },
scratch = { enabled = false },
scroll = { enabled = true },
statuscolumn = { enabled = false },
terminal = { enabled = true },
toggle = { enabled = false },
util = { enabled = true },
win = { enabled = false },
words = { enabled = false },
zen = { enabled = false },
})
end,
}

View file

@ -0,0 +1,37 @@
local treesitter_modules = {
"bash",
"markdown_inline",
"markdown",
}
if MainHost then
vim.list_extend(treesitter_modules, {
"git_config",
"git_rebase",
"gitattributes",
"gitcommit",
"gitignore",
"gotmpl",
"hcl",
"helm",
"json",
"lua",
"python",
"regex",
"terraform",
"yaml",
})
end
return {
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
event = "VeryLazy",
config = function()
require("nvim-treesitter.configs").setup({
ensure_installed = treesitter_modules,
highlight = { enable = true },
indent = { enable = true },
})
end,
}

View file

@ -0,0 +1,52 @@
local whichkey_spec = {
mode = { "n", "v" },
{ "<leader>b", group = "buffer" },
{ "<leader>f", group = "find" },
{ "<leader>h", group = "history" },
{ "<leader>u", group = "ui" },
}
if MainHost then
vim.list_extend(whichkey_spec, {
{ "<leader>c", group = "code" },
{ "<leader>cd", vim.diagnostic.open_float, { desc = "diagnostics", remap = true } },
{
"<leader>cf",
function()
require("conform").format({
lsp_fallback = true,
async = false,
})
end,
{ desc = "format", remap = true },
},
})
end
return {
"folke/which-key.nvim",
event = "VeryLazy",
config = function()
require("which-key").setup({
preset = "helix",
delay = 300,
icons = {
rules = false,
breadcrumb = "",
separator = "󱦰 ",
group = "󰹍 ",
},
plugins = {
spelling = {
enabled = false,
},
},
win = {
height = {
max = math.huge,
},
},
spec = whichkey_spec,
})
end,
}