Skip to content

Commit

Permalink
Add new nvim plugins for haskell & lsp report
Browse files Browse the repository at this point in the history
  • Loading branch information
Sigmanificient committed Jan 2, 2025
1 parent 9c9f951 commit dea960e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions home/nvim/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
xclip
ecsls-pkg
ehcsls-pkg
haskell-language-server
(pkgs.callPackage ./fzf-make.nix { })
];
};
Expand Down
1 change: 1 addition & 0 deletions home/nvim/lua/init.lua
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
require("lazy").setup("lazy_plugins")
vim.diagnostic.config({ virtual_text = false })
11 changes: 11 additions & 0 deletions home/nvim/lua/lazy_plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,15 @@ return apply_shortcut({
'folke/todo-comments.nvim',
dependencies = { 'nvim-lua/plenary.nvim' },
},
{
'mrcjkb/haskell-tools.nvim',
version = '^4', -- Recommended
lazy = false, -- This plugin is already lazy
},
{
"https://git.sr.ht/~whynothugo/lsp_lines.nvim",
config = function ()
require("lsp_lines").setup()
end
},
})
1 change: 1 addition & 0 deletions home/nvim/lua/plugins/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ lsp.on_attach(function(_, bufnr)
vim.keymap.set("n", "gd", function() vim.lsp.buf.definition() end, opts)
vim.keymap.set("n", "gr", function() vim.lsp.buf.rename() end, opts)
vim.keymap.set("n", "ga", function() vim.lsp.buf.code_action() end, opts)
vim.keymap.set("n", "gf", function() vim.diagnostic.open_float() end, opts)
vim.keymap.set("i", "<C-h>", function() vim.lsp.buf.signature_help() end, opts)

lsp.default_keymaps({buffer = bufnr})
Expand Down

0 comments on commit dea960e

Please sign in to comment.