package server func (s *Server) getEditorKeymap() string { v, err := s.store.GetConfig( "editor_keymap", ) if err != nil || v == "" { return "default" } switch v { case "default", "vim": return v default: return "default" } } func (s *Server) getEditorSyntaxHighlight() bool { v, err := s.store.GetConfig( "editor_syntax_highlight", ) if err != nil || v == "" { return true } return v != "false" } func (s *Server) getEditorAutocomplete() bool { v, err := s.store.GetConfig( "editor_autocomplete", ) if err != nil || v == "" { return true } return v != "false" }