chore: format + mason fix
This commit is contained in:
@@ -13,4 +13,7 @@ if vim.g.neovide then
|
|||||||
vim.g.neovide_opacity = 0.7
|
vim.g.neovide_opacity = 0.7
|
||||||
vim.g.neovide_window_blurred = true
|
vim.g.neovide_window_blurred = true
|
||||||
vim.o.guifont = "Source Code Pro:h14"
|
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
|
end
|
||||||
|
|||||||
@@ -140,6 +140,7 @@ return {
|
|||||||
require("telescope.builtin").lsp_dynamic_workspace_symbols,
|
require("telescope.builtin").lsp_dynamic_workspace_symbols,
|
||||||
"[W]orkspace 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>lp", vim.diagnostic.goto_prev, "Go to [P]revious diagnostic message")
|
||||||
|
|
||||||
map("<leader>ln", vim.diagnostic.goto_next, "Go to [N]ext diagnostic message")
|
map("<leader>ln", vim.diagnostic.goto_next, "Go to [N]ext diagnostic message")
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ return {
|
|||||||
opts = {},
|
opts = {},
|
||||||
dependencies = {
|
dependencies = {
|
||||||
{
|
{
|
||||||
"williamboman/mason.nvim",
|
"mason-org/mason.nvim",
|
||||||
config = function()
|
config = function()
|
||||||
require("mason").setup()
|
require("mason").setup()
|
||||||
end,
|
end,
|
||||||
|
|||||||
@@ -19,6 +19,21 @@ return {
|
|||||||
filters = {
|
filters = {
|
||||||
git_ignored = false,
|
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.keymap.set("n", "<leader>e", vim.cmd.NvimTreeToggle)
|
||||||
vim.api.nvim_create_autocmd({ "QuitPre" }, { callback = function() vim.cmd("NvimTreeClose") end, })
|
vim.api.nvim_create_autocmd({ "QuitPre" }, { callback = function() vim.cmd("NvimTreeClose") end, })
|
||||||
|
|||||||
Reference in New Issue
Block a user