Add ruby lsp

This commit is contained in:
Evan Yip 2024-01-31 16:33:59 -08:00
parent b8c32e14a2
commit 27c67d0a61
No known key found for this signature in database
GPG key ID: 05021B1F132466E1
2 changed files with 14 additions and 0 deletions

View file

@ -253,6 +253,7 @@ require('lazy').setup({
},
build = ':TSUpdate',
},
{ 'ThePrimeagen/vim-be-good' },
-- NOTE: Next Step on Your Neovim Journey: Add/Configure additional "plugins" for kickstart
@ -368,6 +369,11 @@ vim.api.nvim_create_autocmd('TextYankPost', {
-- [[ Configure Telescope ]]
-- See `:help telescope` and `:help telescope.setup()`
require('telescope').setup {
pickers = {
find_files = {
previewer = false
}
},
defaults = {
mappings = {
i = {
@ -380,6 +386,7 @@ require('telescope').setup {
-- Enable telescope fzf native, if installed
pcall(require('telescope').load_extension, 'fzf')
pcall(require('telescope').load_extension, 'file_browser')
-- Telescope live_grep in git root
-- Function to find the git root directory based on the current buffer's path
@ -690,5 +697,9 @@ cmp.setup {
},
}
require('lspconfig').ruby_ls.setup {
on_attach = on_attach,
}
-- The line beneath this is called `modeline`. See `:help modeline`
-- vim: ts=2 sts=2 sw=2 et