chore: format + mason fix

This commit is contained in:
Ward Truyen
2025-07-20 14:40:45 +02:00
parent 3250e086e5
commit 2ea28a4253
4 changed files with 20 additions and 1 deletions

View File

@@ -13,4 +13,7 @@ if vim.g.neovide then
vim.g.neovide_opacity = 0.7
vim.g.neovide_window_blurred = true
vim.o.guifont = "Source Code Pro:h14"
-- vim.keymap.set({ "i", "c" }, "<C-S-V>", '<C-R>+', { desc = "Paste system clipboard" })
-- vim.keymap.set({ "n", "x" }, "<C-S-C>", '"+y', { desc = "Copy system clipboard" })
-- vim.keymap.set({ "n", "x" }, "<C-S-V>", '"+p', { desc = "Paste system clipboard" })
end

View File

@@ -140,6 +140,7 @@ return {
require("telescope.builtin").lsp_dynamic_workspace_symbols,
"[W]orkspace symbols"
)
map("<leader>li", vim.cmd.LspInfo, "Show lsp info")
map("<leader>lp", vim.diagnostic.goto_prev, "Go to [P]revious diagnostic message")
map("<leader>ln", vim.diagnostic.goto_next, "Go to [N]ext diagnostic message")

View File

@@ -7,7 +7,7 @@ return {
opts = {},
dependencies = {
{
"williamboman/mason.nvim",
"mason-org/mason.nvim",
config = function()
require("mason").setup()
end,

View File

@@ -19,6 +19,21 @@ return {
filters = {
git_ignored = false,
},
on_attach = function(bufnr)
local api = require "nvim-tree.api"
local function opts(desc)
return { desc = "nvim-tree: " .. desc, buffer = bufnr, noremap = true, silent = true, nowait = true }
end
-- default mappings
api.config.mappings.default_on_attach(bufnr)
-- custom mappings
vim.keymap.set('n', '<Esc>', vim.cmd.NvimTreeClose, opts('Close Explorer'))
-- vim.keymap.set('n', '<C-t>', api.tree.change_root_to_parent, opts('Up'))
vim.keymap.set('n', '?', api.tree.toggle_help, opts('Help'))
end,
})
vim.keymap.set("n", "<leader>e", vim.cmd.NvimTreeToggle)
vim.api.nvim_create_autocmd({ "QuitPre" }, { callback = function() vim.cmd("NvimTreeClose") end, })