Skip to content

Commit

Permalink
feat(nvim): add lsp_lines
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
  • Loading branch information
caarlos0 committed Jan 10, 2024
1 parent a3811a7 commit 0215429
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/neovim/config/lua/lsp_keymaps.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ M.on_attach = function(bufnr)
keymap("<leader>cl", vim.lsp.codelens.run, bufnr)
keymap("<leader>rn", vim.lsp.buf.rename, bufnr)
keymap("<leader>ca", vim.lsp.buf.code_action, bufnr)
keymap("<leader>gl", vim.diagnostic.open_float, bufnr)
keymap("<leader>gl", function()
require("lsp_lines").toggle()
end, bufnr)
keymap("[d", function()
vim.diagnostic.goto_prev({ float = false })
vim.cmd("norm zz")
Expand Down
1 change: 1 addition & 0 deletions modules/neovim/config/lua/user/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ local on_attach = function(client, bufnr)
keymaps.on_attach(bufnr)
end

require("lsp_lines").setup()
local lspconfig = require("lspconfig")
lspconfig.gopls.setup({
capabilities = capabilities,
Expand Down
1 change: 1 addition & 0 deletions modules/neovim/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ in
nvim-surround
comment-nvim
treesj
lsp_lines-nvim
(pkgs.vimPlugins.nvim-treesitter.withPlugins (plugins:
with plugins; [
bash
Expand Down

0 comments on commit 0215429

Please sign in to comment.