Skip to content

Commit

Permalink
feat(neovim): updated to support nvim v0.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroSuero committed May 20, 2024
1 parent 3f6c7d3 commit 4ca69d4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 19 deletions.
18 changes: 1 addition & 17 deletions roles/neovim/files/lua/aome/core/keymaps.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ local mappings = {
-- only use null-ls for formatting instead of lsp server
return client.name == "null-ls"
end,
bufnr = 0,
bufnr = vim.api.nvim_get_current_buf(),
}
end,
"Formats current buffer if lsp available",
Expand Down Expand Up @@ -142,22 +142,6 @@ local mappings = {
'"hy:s/<C-r>h/(<C-r>h)/',
"Surrounds with (",
},
["<leader>fm"] = {
function()
vim.lsp.buf.format {
filter = function(client)
-- only use null-ls for formatting instead of lsp server
return client.name == "null-ls"
end,
bufnr = 0,
range = {
["start"] = { vim.fn.line ".", 0 },
["end"] = { vim.fn.line "v", 0 },
},
}
end,
"[f]or[m]at in selected range",
},
},
x = { -- x mode
-- paste over and not delete and paste
Expand Down
2 changes: 1 addition & 1 deletion roles/neovim/files/lua/custom/plugins/ui/bufferline.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ return {
"nvim-tree/nvim-web-devicons",
},
event = { "VeryLazy" },
version = "*",
branch = "main",
opts = {
options = {
mode = "tabs",
Expand Down
2 changes: 1 addition & 1 deletion roles/neovim/files/lua/custom/plugins/ui/git_plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ return {
"LazyGitFilterCurrentFile",
},
keys = {
{ "<C-g>", "<cmd>LazyGit<CR>", desc = { "Open lazy[g]it" } },
{ "<C-g>", "<cmd>LazyGit<CR>", desc = "Open lazy[g]it" },
},
},
}

0 comments on commit 4ca69d4

Please sign in to comment.