Created
November 4, 2023 23:58
-
-
Save appblue/2f688a28e86ce5f5255737fac67c40d6 to your computer and use it in GitHub Desktop.
NeoVim LSP Setup
This file contains hidden or 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
vim.api.nvim_create_autocmd({'BufNewFile', 'BufRead'}, { | |
pattern = {'*.nim', }, | |
-- command = 'set shiftwidth=4', | |
callback = function () | |
vim.lsp.start({ | |
name='nimlsp', | |
cmd={'/Users/$USER/.nimble/bin/nimlsp.cmd'}, | |
root_dir='~' | |
}) | |
vim.lsp.buf_attach_client(0, 1) | |
end | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment