Merge branch 'main' into vscode-launch-json

This commit is contained in:
Miguel Palau 2024-07-23 08:31:26 -06:00 committed by GitHub
commit 231628b24e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 34 additions and 5 deletions

View file

@ -1,4 +1,4 @@
*LazyVim.txt* For Neovim Last change: 2024 July 22
*LazyVim.txt* For Neovim Last change: 2024 July 23
==============================================================================
Table of Contents *LazyVim-table-of-contents*

View file

@ -55,7 +55,6 @@ vim.api.nvim_create_autocmd("FileType", {
group = augroup("close_with_q"),
pattern = {
"PlenaryTestPopup",
"grug-far",
"help",
"lspinfo",
"notify",

View file

@ -177,7 +177,7 @@ map("t", "<c-_>", "<cmd>close<cr>", { desc = "which_key_ignore" })
map("n", "<leader>w", "<c-w>", { desc = "Windows", remap = true })
map("n", "<leader>-", "<C-W>s", { desc = "Split Window Below", remap = true })
map("n", "<leader>|", "<C-W>v", { desc = "Split Window Right", remap = true })
map("n", "<c-w>d", "<C-W>c", { desc = "Delete Window", remap = true })
map("n", "<leader>wd", "<C-W>c", { desc = "Delete Window", remap = true })
LazyVim.toggle.map("<c-w>m", LazyVim.toggle.maximize)
-- tabs

View file

@ -138,6 +138,7 @@ return {
local grug = require("grug-far")
local ext = vim.bo.buftype == "" and vim.fn.expand("%:e")
grug.grug_far({
transient = true,
prefills = {
filesFilter = ext and ext ~= "" and "*." .. ext or nil,
},

View file

@ -9,7 +9,32 @@ return {
"neovim/nvim-lspconfig",
opts = {
servers = {
elixirls = {},
elixirls = {
keys = {
{
"<leader>cp",
function()
local params = vim.lsp.util.make_position_params()
LazyVim.lsp.execute({
command = "manipulatePipes:serverid",
arguments = { "toPipe", params.textDocument.uri, params.position.line, params.position.character },
})
end,
desc = "To Pipe",
},
{
"<leader>cP",
function()
local params = vim.lsp.util.make_position_params()
LazyVim.lsp.execute({
command = "manipulatePipes:serverid",
arguments = { "fromPipe", params.textDocument.uri, params.position.line, params.position.character },
})
end,
desc = "From Pipe",
},
},
},
},
},
},

View file

@ -81,7 +81,11 @@ function M.open(file, opts)
vim.opt_local.signcolumn = "yes"
vim.opt_local.statuscolumn = " "
vim.opt_local.conceallevel = 3
vim.diagnostic.disable(float.buf)
if vim.diagnostic.enable then
vim.diagnostic.enable(false, { bufnr = float.buf })
else
vim.diagnostic.disable(float.buf)
end
end
return M