From e47f43226c9a7258ec16fbb2019a283a8d4a7255 Mon Sep 17 00:00:00 2001 From: Marcelo Jacobus Date: Tue, 4 Nov 2025 14:16:37 -0300 Subject: [PATCH] Towards better lsp Disable plugins: - blink-cmp - cmp - lsp --- init.lua | 1 + lsp/ruby.lua | 5 +++++ lua/plugins/blink-cmp.lua | 3 ++- lua/plugins/cmp.lua | 1 + lua/plugins/lsp.lua | 1 + 5 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 lsp/ruby.lua diff --git a/init.lua b/init.lua index 6a8985f..1e3096e 100644 --- a/init.lua +++ b/init.lua @@ -1,4 +1,5 @@ require("user.options") +require("user.options") require("user.keymaps") require("user.plugins") require("user.autocmds") diff --git a/lsp/ruby.lua b/lsp/ruby.lua new file mode 100644 index 0000000..4cc4d8e --- /dev/null +++ b/lsp/ruby.lua @@ -0,0 +1,5 @@ +return { + cmd = { 'ruby-lsp' }, + root_markers = { '.git', 'Gemfile' }, + filetypes = { 'Gemfile', 'ruby', 'rb', 'eruby', 'rake', 'thor', 'watchr' }, +} diff --git a/lua/plugins/blink-cmp.lua b/lua/plugins/blink-cmp.lua index c85a051..142ce4d 100644 --- a/lua/plugins/blink-cmp.lua +++ b/lua/plugins/blink-cmp.lua @@ -1,3 +1,4 @@ return { - 'Saghen/blink.cmp' + 'Saghen/blink.cmp', + enabled = false, } diff --git a/lua/plugins/cmp.lua b/lua/plugins/cmp.lua index fef3765..48155a4 100644 --- a/lua/plugins/cmp.lua +++ b/lua/plugins/cmp.lua @@ -31,6 +31,7 @@ return { { "hrsh7th/nvim-cmp", + enabled = false, -- last release is way too old version = false, -- last release is way too old event = "InsertEnter", dependencies = { diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua index 6435824..c425de8 100644 --- a/lua/plugins/lsp.lua +++ b/lua/plugins/lsp.lua @@ -41,6 +41,7 @@ end return { { "neovim/nvim-lspconfig", + enabled = false, dependencies = { "saghen/blink.cmp", { "williamboman/mason.nvim", build = ":MasonUpdate", config = true },