Skip to content

Commit

Permalink
fix(nvim): deprecated api call
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Apr 17, 2024
1 parent b0ccefe commit 2a114d7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion modules/neovim/config/after/ftplugin/go.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ local function restart(name)
local configs = require("lspconfig.configs")
local bufnr = vim.api.nvim_get_current_buf()
for _, client in
ipairs(vim.lsp.get_active_clients({
ipairs(vim.lsp.get_clients({
bufnr = bufnr,
name = name,
}))
Expand Down
5 changes: 5 additions & 0 deletions modules/neovim/config/after/ftplugin/help.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
vim.keymap.set("n", "<leader>q", ":bdelete!<cr>", {
noremap = true,
silent = true,
buffer = vim.api.nvim_get_current_buf(),
})

0 comments on commit 2a114d7

Please sign in to comment.