In this video I put together a basic setup for IDE-style features like code completion, linting, and code actions for languages that support the Language Server Protocol inside of Emacs. I also added which-key to help with keybindings and flycheck-mode to help with displaying the warnings and errors from lsp-mode. After this general configuration, I add my Go-specific configuration and test it out on a minimal example program. I also add some extra code analyzers to lsp-go and set up a global binding for compilation.
Now that we lsp-mode and company-mode ready to go, put your suggestions for future languages in the comments! I'm already planning to do Python and Rust, but I could try to figure out some others as well.
Time stamps:
00:00 Intro
01:00 Installing Go
01:34 Mapping Caps Lock to Control with xmodmap
02:47 lsp-mode
06:10 which-key
07:55 company-mode
11:10 Using company for emacs-lisp-mode
15:00 go-mode
27:00 Trying it out
28:27 Trying it out successfuly
32:40 Fixing lsp-command-map binding
34:24 Binding recompile to F5
Website: https://bwestbro.com/
20 Comments