Skip to content

Instantly share code, notes, and snippets.

@KonnorRogers
Created June 9, 2024 22:03
Show Gist options
  • Save KonnorRogers/217639188401532b2bebe9cd20e1d0d7 to your computer and use it in GitHub Desktop.
Save KonnorRogers/217639188401532b2bebe9cd20e1d0d7 to your computer and use it in GitHub Desktop.
StandardRB with lazyvim
-- ~/.config/nvim/config/autocmds.lua
-- https://github.com/standardrb/standard/wiki/IDE:-neovim
vim.api.nvim_create_autocmd("FileType", {
pattern = "ruby",
group = vim.api.nvim_create_augroup("StandardRB LSP", { clear = true }), -- also this is not /needed/ but it's good practice
callback = function()
vim.lsp.start {
name = "standard",
cmd = { "~/.asdf/shims/standardrb", "--lsp" },
}
end,
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment