Skip to content

Commit

Permalink
feat(plugins): add lsp-timeout to enhance lsp memory usage
Browse files Browse the repository at this point in the history
  • Loading branch information
cpea2506 committed Oct 16, 2023
1 parent af196c6 commit 662af36
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lua/pea/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@ local lsp = {
if vim.tbl_get(client.server_capabilities, "inlayHintProvider") then
vim.lsp.inlay_hint(bufnr, true)
end

-- TODO: remove in the future after null-ls is replaced
local status_ok, null_ls = pcall(require, "null-ls")

if status_ok then
null_ls.enable {}
end
end,
}

Expand Down
4 changes: 4 additions & 0 deletions lua/pea/plugins.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
local plugins = {
"cpea2506/one_monokai.nvim",
{
"hinell/lsp-timeout.nvim",
dependencies = "neovim/nvim-lspconfig",
},
{
"luckasRanarison/clear-action.nvim",
config = require "pea.config.clear_action",
Expand Down

0 comments on commit 662af36

Please sign in to comment.