Add ruby lsp
This commit is contained in:
parent
b8c32e14a2
commit
27c67d0a61
2 changed files with 14 additions and 0 deletions
11
init.lua
11
init.lua
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue