Created
June 9, 2024 22:03
-
-
Save KonnorRogers/217639188401532b2bebe9cd20e1d0d7 to your computer and use it in GitHub Desktop.
StandardRB with lazyvim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- ~/.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