feat(nvim): housekeeping

This commit is contained in:
2025-10-14 02:11:52 +01:00
parent 3f6eee04e6
commit 5cba2ba22b
8 changed files with 180 additions and 151 deletions

View File

@@ -8,9 +8,6 @@ return {
},
version = '*',
opts = {
enabled = function()
return not (string.find(vim.bo.filetype, "himalaya") or string.find(vim.bo.filetype, "mail"))
end,
keymap = {
preset = 'default',
['<Up>'] = {},

View File

@@ -19,28 +19,6 @@ return {
event = "VeryLazy",
opts = {}
},
-- {
-- "ray-x/go.nvim",
-- dependencies = {
-- "ray-x/guihua.lua",
-- "neovim/nvim-lspconfig",
-- "nvim-treesitter/nvim-treesitter",
-- },
-- config = function(lp, opts)
-- require("go").setup(opts)
-- local format_sync_grp = vim.api.nvim_create_augroup("GoFormat", {})
-- vim.api.nvim_create_autocmd("BufWritePre", {
-- pattern = "*.go",
-- callback = function()
-- require('go.format').goimports()
-- end,
-- group = format_sync_grp,
-- })
-- end,
-- event = { "CmdlineEnter" },
-- ft = { "go", 'gomod' },
-- build = ':lua require("go.install").update_all_sync()'
-- },
{
"neovim/nvim-lspconfig",
dependencies = {
@@ -169,48 +147,47 @@ return {
lspconfig["pyright"].setup({
capabilities = capabilities,
})
vim.lsp.config["tinymist"].capabilities = capabilities
vim.lsp.config["tinymist"] = {
capabilities = capabilities,
settings = {
-- exportPdf = "onType",
-- outputPath = "$root/$name",
formatterMode = "typstyle",
fontPaths = {
"./fonts"
}
},
on_attach = function(client, bufnr)
vim.keymap.set("n", "<leader>tp", function()
client:exec_cmd({
title = "pin",
command = "tinymist.pinMain",
arguments = { vim.api.nvim_buf_get_name(0) },
}, { bufnr = bufnr })
end, { desc = "[T]inymist [P]in", noremap = true })
vim.keymap.set("n", "<leader>tu", function()
client:exec_cmd({
title = "unpin",
command = "tinymist.pinMain",
arguments = { vim.v.null },
}, { bufnr = bufnr })
end, { desc = "[T]inymist [U]npin", noremap = true })
end,
}
vim.lsp.enable("tinymist")
vim.lsp.config['nil_ls'].capabilities = capabilities
vim.lsp.enable('nil_ls')
end,
},
{
'mrcjkb/rustaceanvim',
version = '^5',
lazy = false
},
{
'chomosuke/typst-preview.nvim',
ft = 'typst',
version = '1.*',
opts = {},
},
{
"leoluz/nvim-dap-go",
ft = "go",
dependencies = "mfussenegger/nvim-dap",
opts = {}
},
{
"rcarriga/nvim-dap-ui",
event = "VeryLazy",
dependencies = { "mfussenegger/nvim-dap", "nvim-neotest/nvim-nio" },
config = function()
local dap = require("dap")
local dapui = require("dapui")
dapui.setup()
dap.listeners.after.event_initialized["dapui_config"] = function()
dapui.open()
end
dap.listeners.before.event_terminated["dapui_config"] = function()
dapui.close()
end
dap.listeners.before.event_exited["dapui_config"] = function()
dapui.close()
end
end
},
{
"mfussenegger/nvim-dap",
opts = {
extra_args = {"--font-path=fonts"},
invert_colors = '{"rest": "auto","image": "never"}'
},
},
{
"stevearc/conform.nvim",

View File

@@ -25,7 +25,14 @@ return {
statuscolumn = { enabled = true },
dashboard = { enabled = true },
input = { enabled = true },
image = { enabled = true },
image = {
doc = {
inline = false,
float = true,
max_width = 10,
max_height = 5,
}
},
lazygit = {
vim.keymap.set('n', '<leader>lg', function()
Snacks.lazygit.open()
@@ -47,27 +54,9 @@ return {
end
},
"tpope/vim-fugitive",
{
'codethread/qmk.nvim',
config = function()
---@type qmk.UserConfig
local conf = {
name = 'LAYOUT_lily58_pro',
variant = 'zmk',
layout = {
'x x x x x x _ _ _ _ x x x x x x',
'x x x x x x _ _ _ _ x x x x x x',
'x x x x x x _ _ _ _ x x x x x x',
'x x x x x x x _ _ x x x x x x x',
'_ _ _ x x x x _ _ x x x x _ _ _',
}
}
require('qmk').setup(conf)
end
},
{
"afonsofrancof/worktrees.nvim",
dev = false,
dev = true,
event = "VeryLazy",
opts = {
mappings = {

View File

@@ -53,5 +53,4 @@ return {
})
end
},
"kyoh86/vim-jsonl"
}

View File

@@ -1,14 +1,5 @@
return {
-- {
-- "vimpostor/vim-tpipeline",
-- config = function()
-- vim.g.tpipeline_restore = 0
-- vim.g.tpipeline_autoembed = 0
-- vim.o.laststatus = 0
-- vim.g.tpipeline_statusline = '%=%l:%c'
-- end
-- },
{
"folke/noice.nvim",
event = "VeryLazy",
@@ -34,19 +25,6 @@ return {
"MunifTanjim/nui.nvim",
}
},
{
'kevinhwang91/nvim-ufo',
event = "VeryLazy",
dependencies = 'kevinhwang91/promise-async',
config = function()
vim.o.foldcolumn = '0'
vim.o.foldlevel = 99
vim.o.foldlevelstart = 99
vim.keymap.set('n', 'zR', require('ufo').openAllFolds)
vim.keymap.set('n', 'zM', require('ufo').closeAllFolds)
require('ufo').setup()
end
},
{
"OXY2DEV/markview.nvim",
ft = "markdown",
@@ -61,9 +39,4 @@ return {
require 'colorizer'.setup()
end
},
{
"echasnovski/mini.diff",
opts = {}
}
}