added mini.diff and added a border to the mason window

This commit is contained in:
2024-04-10 13:21:50 +02:00
parent e22288fbf8
commit 87d6a0c97d
3 changed files with 28 additions and 17 deletions

View File

@@ -6,7 +6,12 @@ local lsp_default_capabilities = vim.lsp.protocol.make_client_capabilities()
local capabilities = vim.tbl_deep_extend("force", {}, lsp_default_capabilities, default_capabilities) local capabilities = vim.tbl_deep_extend("force", {}, lsp_default_capabilities, default_capabilities)
require("mason").setup() require("mason").setup({
ui = {
border = "single",
},
})
require("mason-lspconfig").setup({ require("mason-lspconfig").setup({
ensure_installed = { "tsserver", "rust_analyzer" }, ensure_installed = { "tsserver", "rust_analyzer" },
handlers = { handlers = {
@@ -106,11 +111,9 @@ vim.diagnostic.config({
}, },
}) })
vim.lsp.handlers["textDocument/hover"] = vim.lsp.with( vim.lsp.handlers["textDocument/hover"] = vim.lsp.with(vim.lsp.handlers.hover, {
vim.lsp.handlers.hover, { border = "single",
border = "single" })
}
)
require("lspconfig.ui.windows").default_options = { require("lspconfig.ui.windows").default_options = {
border = "single", border = "single",

View File

@@ -18,6 +18,7 @@
"lualine.nvim": { "branch": "master", "commit": "0a5a66803c7407767b799067986b4dc3036e1983" }, "lualine.nvim": { "branch": "master", "commit": "0a5a66803c7407767b799067986b4dc3036e1983" },
"mason-lspconfig.nvim": { "branch": "main", "commit": "44509689b9bf3984d729cc264aacb31cb7f41668" }, "mason-lspconfig.nvim": { "branch": "main", "commit": "44509689b9bf3984d729cc264aacb31cb7f41668" },
"mason.nvim": { "branch": "main", "commit": "751b1fcbf3d3b783fcf8d48865264a9bcd8f9b10" }, "mason.nvim": { "branch": "main", "commit": "751b1fcbf3d3b783fcf8d48865264a9bcd8f9b10" },
"mini.diff": { "branch": "main", "commit": "5600beba78cebd2790d679b531b6543fe2e91b12" },
"mini.surround": { "branch": "main", "commit": "a1b590cc3b676512de507328d6bbab5e43794720" }, "mini.surround": { "branch": "main", "commit": "a1b590cc3b676512de507328d6bbab5e43794720" },
"neogen": { "branch": "main", "commit": "0daffcec249bf42275e322361fe55b89a05ff278" }, "neogen": { "branch": "main", "commit": "0daffcec249bf42275e322361fe55b89a05ff278" },
"nvim-cmp": { "branch": "main", "commit": "ce16de5665c766f39c271705b17fff06f7bcb84f" }, "nvim-cmp": { "branch": "main", "commit": "ce16de5665c766f39c271705b17fff06f7bcb84f" },

View File

@@ -1,13 +1,20 @@
return { return {
{ {
"tpope/vim-fugitive", "tpope/vim-fugitive",
keys = { keys = {
{ {
"<leader>gs", "<leader>gs",
vim.cmd.Git, vim.cmd.Git,
mode = "n", mode = "n",
desc = "Open Fugitive" desc = "Open Fugitive",
} },
} },
}, },
{
"echasnovski/mini.diff",
version = false,
config = function()
require("mini.diff").setup()
end,
},
} }